Enable PHP in Apache userdir in Lucid Lynx (Ubuntu 10.04)

If you’re using php + apache in Lucid Lynx (Ubuntu 10.04), you’ll notice that the php is disabled when you’re using userdir module (http://localhost/~yourusername). To enable it, open /etc/apache2/mods-enabled/php5.conf (alt+F2, then type gksudo gedit /etc/apache2/mods-enabled/php5.conf) and comment this part (add ‘#’ character in every line):


    
        php_admin_value engine Off
    

The result should be like this:

#
#    
#        php_admin_value engine Off
#    
#

Save the file, then restart the apache by typing sudo /etc/init.d/apache2 restart in terminal.

(taken from http://ubuntu-virginia.ubuntuforums.org/showthread.php?t=1478721)

Tagged , , , ,

3 thoughts on “Enable PHP in Apache userdir in Lucid Lynx (Ubuntu 10.04)

  1. Aisensiy says:

    thanks a lot, it  helps me!

  2. pexus says:

    So I am not sure why my PHP stopped working after an upgrade. However I did notice, that commenting the above line seem to help PHP being processed by apache and the site seems to be working. However I am trying to understand why the above is required, because I have another server where the above is not commented out and PHP is still working ok.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: