php not working after apache security updates

Please help some sites stoped after apache2.2-common apache2-mpm-worker apache2
im on GPL ,on lenny

Thanks
Solved php5 reinstalled and is ok

Apache wasnt starting for me after the update. I edited some of the site files with the php stuff in it and they worked but some sites didnt work at all. But I did

$ apt-get install --reinstall php5

and seemed to have made everything work for now.

I was wrong I guess its not working still fully. If I have a .htaccess file there with this in it:

php_value upload_max_filesize 75M
php_value post_max_size 75M

then the site gives this error:


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

The log says this:

[Tue Nov 17 12:10:03 2009] [alert] [client xxx.xxx.xxx.xxx] /home/DOMAIN1/domains/SITE.com/public_html/.htaccess: Invalid command ‘php_value’, perhaps misspelled or defined by a module not included in the server configuration

Any one know what might be the problem.

TIA

Invalid command ‘php_value’, perhaps misspelled or defined by a module not included in the server configuration

That error means it’s trying to use mod_php functions when mod_php isn’t being loaded.

So the problem is the php_value command you saw in your .htaccess file there – that won’t work :slight_smile: My recommendation is to comment that out, and set those parameters another way, such as via the php.ini file.

-Eric

is that better to comment it out then try and load mod_php?

Both will work; however, I’m of the opinion that if you aren’t using mod_php, there’s no use in loading it… it wastes resources, and the more things that are running, the higher the chances of something breaking :slight_smile:

-Eric

Apache wasn’t starting for me after the update. I edited some of the site files with the php stuff in it and they worked but some sites didn’t work at all.