I've run into a problem with my Apache 2.2.16 configuration, running on Debian Squeeze. The problem is that it stopped serving PHP5-scripts completely. When I try to access the sites with Google Chrome, it instead downloads a file called "download", which contains the contents of the script. This is of course not a good thing. It does serve common html-files perfectly...
I've been at this for quite a while now, and after all the googling and troubleshooting, I thought it would be a good time to ask you guys. Here's what I've got:
- The php5 and libapache2-mod-php5 packages are installed
- /etc/apache2/mods-available contains both php5.load and php5.conf, and these are symlinked from the mods-enabled directory
- The /etc/php5/ directory is left untouched since the installation.
Here's the contents of /etc/apache2/mods-available/php.load:
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
<IfModule mod_php5.c> <FilesMatch "\.ph(p3?|tml)$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.phps$"> SetHandler application/x-httpd-php-source </FilesMatch> <IfModule mod_userdir.c> <Directory /home/*/public_html> php_admin_value engine Off </Directory> </IfModule> </IfModule>
What am I missing? This is a server with modified virtual hosts and the like, so I might have changed some settings which causes this problem, but simply purging and reinstalling is not an option so far, since the configuration is quite extensive. Any help would be great. Thanks.
Edit: I'm trying to access the scripts running in virtual apache hosts, under /var/www/. The configuration for those look like this:
<VirtualHost 184.108.40.206:80> ServerAdmin firstname.lastname@example.org ServerName domain.com ServerAlias www.domain.com DocumentRoot /var/www/domain.com/public_html/ ErrorLog /var/www/domain.com/logs/error.log CustomLog /var/www/domain.com/logs/access.log combined Options -indexes </VirtualHost>