Khamis, 15 Mac 2012

enable mod userdir under apache2

Apache2 mod userdir give each user in Ubuntu system have access their home folder under public_html. All web files, web system, etc must be put under this public_html. User or anybody can access that files/web system in any web browser using http://localhost/~username (locally) or http://ip-address/~username (in the network/intranet). Below is the command to enable the userdir mod.

1. sudo a2enmod userdir
2. service apache2 restart

To enable php you need to comment out ifModule userdir in php5.conf

Tiada ulasan: