Monday, 25 October 2010

Enable public_html on user accounts (Ubuntu)

1. a2enmod userdir
2. /etc/init.d/apache2 force-reload
3. Open /etc/apache2/apache2.conf and add "UserDir /home/*/public_html" at the end
4. /etc/init.d/apache restart

To enable php under user account, remove,
< IfModule mod_userdir.c >
< Directory /home/*/public_html >
php_admin_value engine Off
< /Directory >
< /IfModule >

from /etc/apache2/mods-available/php5.conf

No comments: