Created
July 3, 2013 09:58
-
-
Save atishgoswami/5916756 to your computer and use it in GitHub Desktop.
Apache setup Userdir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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