Posts

Showing posts from June, 2010

Ubuntu 10.04 dont serve PHP script problem

After upgrading to Ubuntu 10.04 all my php script not working. this is because new stupid feature new configuration in apache2 which disable php in user directories. To fix:

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

Remark all user dir related config, change to:

<IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
#<IfModule mod_userdir.c>
# <Directory /home/*/public_html>
# php_admin_value engine Off
# </Directory>
#</IfModule>
</IfModule>


Then restart apache. You may need to clear firefox cache.

_