Jump to content

Override php.ini directives in CGI mode + suexec


Recommended Posts

Hello. We run PHP scripts in CGI mode and under suexec (each site has its own user). We want to override certain directives like session.save_path in a separate php.ini for each site. Then there's a wrapper script for PHP which sets PHPRC to the folder with the customized php.ini and call pgp-cgi.

 

However, directives in the global php.ini are overridden, it forgets about include_dirs for example. Is it possible to let PHP use the global php.ini, except for the few directives we specify in separate files? To me it looks like it's either the local php.ini file or the global one, but not both.

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.