Documents pour enseignement NSI
apt install apache2
En root
:
''' a2enmod userdir systemctl restart apache2 '''
UserDir public_html
<Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec </Directory>
apt install php php-mbstring
/etc/apache2/mods-enabled/php5.conf
il faut commenter :
<IfModule mod_userdir.c> <Directory /home/*/public_html> php_admin_value engine Off </Directory> </IfModule>