We are having an issue with setting a specific version of PHP on our websites. I was wondering if anyone else is experiencing the same issue or could suggest a fix.
Enkompass enables the execution of PHP scripts by using a Fast-CGI application in IIS pointing to the PHP executable selected as the default in the Enkompass Admin. This Fast-CGI application is then used as a handler for .php files in all of the websites on the server.
When a user wants a different version of PHP than the one selected by default, they can go to their WSO and choose the version they want. Apparently this creates a new Fast-CGI application in IIS just for that specific site with the "open_basedir" setting as an argument to the php executable. The IIS website then uses this personalized Fast-CGI executable for it's PHP handler.
Here is where the problem we are experiencing is. The "open_basedir" setting is set to the website's home directory thereby limiting all file access to their home directory. This is a problem if they want to use Session variables which are set by default in the php.ini to store as files in the C:\Windows\tmp directory. We can't change the Fast-CGI handler argument to change the location of saved files (i.e. move the session files directory to their home directory) and we can't change the php.ini to save the session files in their home directory.
Does anyone see a way (beyond setting the save directory by php function every time session_start() is called) to fix this or is it going to have to be something Enkompass includes in a future update?



LinkBack URL
About LinkBacks
Reply With Quote





