Web Hosting Talk







View Full Version : Php.ini per hosted account problem


SupaDucta
11-28-2004, 08:15 AM
RedHat 7.3, Virtuozzo-based VPS
Apache 1.3x

I have PHP running as an Apache module.

I can set values in .htaccess - php_value.

I can modify php_value settings, but I can't modify php_admin_value nor php_admin_flag values, I am getting 500 Internal server error.

How come and how to fix it? I have a hosted account running a script that requires some specific setting, and can't seem to set them.

I am not really comfortable with this, so please guys... help!

net
11-28-2004, 10:19 PM
You will experience this error if you are running phpsuexec. atleast in my experience.

SupaDucta
11-29-2004, 04:13 PM
Yes, that's EXACTLY it. I am switching to suPHP a bit earlier than I planned - AT ONCE ;)

Net, if you were close now a few pizzas and six-packs would be in order... THANKS ;)

net
11-29-2004, 07:31 PM
No problem :-)

Haze
11-29-2004, 08:34 PM
If you are running phpsuexec, just move the values to a php.ini file within the users web directory ( where the files are being served from ) and that should resolve your problem ( make sure to remove / comment them out from .htaccess first of all ).

SupaDucta
11-29-2004, 09:11 PM
Erm, running PHP as a module, not CGI.

Haze
11-29-2004, 09:19 PM
phpSuExec requires php to be run as CGI