Skip to content

Instantly share code, notes, and snippets.

@atishgoswami
Created July 3, 2013 09:58
Show Gist options
  • Save atishgoswami/5916756 to your computer and use it in GitHub Desktop.
Save atishgoswami/5916756 to your computer and use it in GitHub Desktop.
Apache setup Userdir
//run command
sudo a2enmod userdir
//open file
sudo nano /etc/apache2/mods-available/php5.conf
//change
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>
//to
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine On
</Directory>
</IfModule>
--or--
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
# php_admin_value engine Off
</Directory>
</IfModule>
//restart apache
sudo /etc/init.d/apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment