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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.