Originally Posted by
peredur
Hmm. I don't have a file called /etc/apache2/mods-available/php5.conf. Should I have?
I realised that I didn't have the files because I'd given up and uninstalled the module. So I reinstalled it and tried again. The contents of the php5.conf file after the installion were:
Code:
<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>
I had no luck with that, so I commented out the condition and restarted apache. Still no luck.
Back to XAMPP on Windows for developing in PHP, then. Annoying.
Cheers
Peter
Bookmarks