Upgrading Debian Squeeze to Debian Wheezy :: No PHP any more !!

6 posts / 0 new
Last post
#1 Fri, 08/02/2013 - 18:45
snoopy987

Upgrading Debian Squeeze to Debian Wheezy :: No PHP any more !!

Hey guys,

it's pretty urgent for me:

after an upgrade from squeeze to wheezy my php sources are shown on websites. normal html website are working fine.

any idea ?

apache-mpm-worker is installed.

Thanks.

Fri, 08/02/2013 - 22:10
andreychek

Howdy,

Hmm, I'm wondering if some PHP config file in Apache is causing the problem you're seeing.

Is mod_php installed? In theory, it shouldn't be when using apache-mpm-worker -- but if it is, you may want to try removing it (since it's not compatible with apache-mpm-worker).

Also, are there any PHP related config files residing in /etc/apache2/mods-enabled?

-Eric

Sat, 08/03/2013 - 01:57
snoopy987

Hello,

with installing "apache-mpm-prefork" the php websites are "running" ... but not with their virtualserver name - they are running as www-data:www-data

Installing the apache-mpm-worker again, php is not running ... ?

I compared the php.ini files etc with the backed up files. No differences found (by software).

What has changed during that upgrade ?

Thanks.

Sat, 08/03/2013 - 02:32
snoopy987

I found the following error in the suexec log:

target uid/gid (1027/1014) mismatch with directory (1027/1014) or program (0/0)

checked in user/groups settings in virtualmin. everythings fine: user "test" = 1027 grp "test" = 1014

alle files and dirs of the virtual server are owned by test:test.

why ? I "only" upgraded that f.. server.

Sat, 08/03/2013 - 23:49
andreychek

Hmm, I'm not sure you answered the second question I was asked in my reply above... are there any PHP related config files residing in /etc/apache2/mods-enabled?

That may be the source of your problem -- especially when mod_php is enabled.

If so, it may just be a matter of disabling the SetHandler lines in it and restarting Apache.

-Eric

Sat, 09/07/2013 - 14:39
csecsi

On my server there are dozens of websites. What is really strange that about half of them working well after the upgrade. The other half shows the php code only.

Any idea?

Topic locked