#required packages (inclusive mod_rewrite) sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get install -y apache2 php5 && sudo a2enmod rewrite #OBSOLETE (works with WHEEZY): in '/etc/apache2/sites-available/default' replace all AllowOverride None with: #NEW (works since JESSY): in '/etc/apache2/apache2.conf' replace all AllowOverride None with: #>>CHANGE '/var/www/' TO 'AllowOverride all'Options Indexes FollowSymLinks AllowOverride all Require all granted #paste index.php with any PHP content in /var/www/ #works after a restart of apache2 sudo service apache2 restart
Schreibe einen Kommentar