12 October 2010

apache module userdir ubuntu 10

install Apache module userdir

$ sudo apt-get install libapache2-mod-ldap-userdir
$ sudo a2enmod userdir
$ mkdir public_html
$ chmod 775 public_html
$ sudo service apache2 force-reload

then try for access http://localhost/~user/

if work then set php5 userdir for apache


$ sudo apt-get install php5 libapache2-mod-php5
$ sudo a2enmod php5
$ vim /etc/apache2/mods-available/php5.conf

you will be found text

# To re-enable php in user directories comment the following lines
# (from to .) Do NOT set it to On as it
# prevents .htaccess files from disabling it.

just do it and save.then restart apache

$ sudo service apache2 force-reload

0 komentar:

powered by irvian