The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP selector not taking effect without apache restart.

Discussion in 'CloudLinux' started by alainjforrester, Mar 22, 2013.

  1. alainjforrester

    alainjforrester Registered

    Joined:
    Mar 22, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Currently looking at running CageFS with PHP Selector but really need PHP running as FCGI (with APC) to avoid the heavy performance impact of suPHP.

    One issue I'm having at the the moment though is when running as FCGI, PHP version changes don't take effect until apache is restarted. This isn't he case when running suPHP.

    I presume it's down to how FCGI keeps the continuous process running as opposed to suPHP's generating a new process for each request. Restarting apache is killing the process that was hanging onto the previous PHP version.

    Is that the way it's supposed to happen or is there maybe something in my config somewhere that's preventing it from changing straight away? If not, is there any other way I can get round it while sticking with FCGI?

    Thanks in advance,
    Al.
     
  2. Jeff Shotnik

    Jeff Shotnik Well-Known Member

    Joined:
    Oct 10, 2012
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Denver, Colorado, United States
    cPanel Access Level:
    DataCenter Provider
    You should also be able to gracefully restart Apache - what's wrong with Apache having to restart after PHP changes?
     
  3. alainjforrester

    alainjforrester Registered

    Joined:
    Mar 22, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    CL have added a bug fix to the latest version of LVE for this.

    Graceful restart is fine if you have permissions to do that. cPanel end-users can't restart apache, so they would have needed to wait until the next time a restart is triggered before their changes would take effect.

    Regardless, the bug fix in LVE makes the users' changes happen instantly, as they should. They're most likely triggering a graceful restart when the users confirm the change.
     
  4. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I hope cloudlinux will fix this bug in their incoming release of LVE
     
Loading...

Share This Page