Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Sep 2010
    Posts
    60

    Default Issue with setting PHP version

    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?

  2. #2
    Member
    Join Date
    Sep 2010
    Posts
    60

    Default Re: Issue with setting PHP version

    Oh, by the way do not test this in a production environment. Once you have set a PHP version it cannot be un-set and thus you will have this issue until a resolution is found.

  3. #3
    cPanel Staff cPanelSalinas's Avatar
    Join Date
    Feb 2009
    Posts
    355

    Default Re: Issue with setting PHP version

    This issue came up recently in a customer ticket. I have submitted it to our Development team, and waiting for feedback.

    I will update this post when I found out something.

  4. #4
    Member
    Join Date
    Sep 2010
    Posts
    60

    Default Re: Issue with setting PHP version

    Thanks Salinas, I suspected something more than just mis-configuration.

Similar Threads & Tags
Similar threads

  1. CPanel/CentOS: Best way to go about setting up version control software
    By damainman in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-24-2010, 07:34 AM
  2. Question about PHP security, setting up multiple php.ini files?
    By sirbrent in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-01-2008, 10:58 AM
  3. Setting up Nameservers Issue
    By Ishtumba in forum cPanel and WHM Discussions
    Replies: 19
    Last Post: 03-20-2008, 11:46 AM
  4. Replies: 2
    Last Post: 02-17-2005, 04:40 PM
  5. Apache Security/Version Table not showing PHP version
    By jonMEGA in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-10-2004, 09:59 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube