Jump to content

PHP not being parsed in apache virtual hosts (except default one)


Recommended Posts

Hi all,

 

I have 3 websites running php (5.0.4) configured as Apache (2.0.54) virtual hosts on one Red Hat (4.0.2) linux server.

 

All was working fine until...... I upgraded Plesk from 8.1.1 to 9.2.2.  This automatically overwrote my /etc/httpd/conf.d/zz010_psa_httpd.conf file (which unfortunately was not backed up) and made all 3 websites fail.

 

I did some configuration to get the main website back up and it is now running fine with all the php being parsed. This runs under /var/www/vhosts/default/htdocs.  So Apache is loading the php module ok.

 

However, the php is not being parsed in the other 2 websites.  They run under /var/www/vhosts/XXX/htdocs and /var/www/vhosts/YYY/htdocs. If you 'View Page Source' on a webpage, it just shows the raw php code.

 

The master open_basedir is set to /var/www/vhosts/default/htdocs in php.ini.  I have safe_mode on.

 

Open_basedir is set to /var/www/vhosts/XXX/htdocs and /var/www/vhosts/YYY/htdocs in the 2 respective VirtualHost sections in zz010_psa_httpd.conf.

 

Any ideas why the php is being ignored? All input would be greatly appreciated!

 

Many thanks, digigirl  :'(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.