Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Two PHP Handler Configuration (or 2 PHP Installs with Different Handlers)?

Discussion in 'General Discussion' started by Avalon, Apr 27, 2015.

  1. Avalon

    Avalon Member

    Joined:
    Apr 27, 2015
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    United States
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I've come across a bit of a snafu recently with one of our older sites: the PHP scripts from them don't run under suPHP (but run under everything else) and I didn't feel a legacy site justified the need to move away from one handler yet I ironically felt that it was okay to put two PHPs on the system or have two handlers.

    So that's my question: is there a way to configure a cPanel system to either:

    a) run a single instance of PHP with two handlers (the normal suPHP for everything except one account/site)
    b) run two instances of PHP, each with its own handler (one suPHP for everything except one account/site).

    And yes, before anyone asks: I have chmod, chownd, and ran many scripts galore without getting this one particular site to run which only leaves this last solution since I know from recompiling through EasyApache 3 that it will run on anything other than suPHP.

    This issue appears to be a holdover from the fact that FastCGI was where the site last resided and was configured and built on.

    Server OS: CentOS 6.6 x64
    cPanel/WHM Version: 11.48.3
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,672
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Avalon

    Avalon Member

    Joined:
    Apr 27, 2015
    Messages:
    19
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    United States
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Shortly after posting this I went ahead and switched over to Cloud Linux through my NOC provider which has a PHP selector integrated among many other things.

    I've seen a lot of added benefits with Cloud Linux + cPanel versus CentOS and for $12/mo the integration is something you can't beat.

    Onto the issue at hand; we went with a compromise of FastCGI with suEXEC although we did note an uptake in the PHP process CPU usage compared to suPHP. I'm not certain if this is related to memcached or FastCGI however.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,672
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I am happy to see that you were able to address the issue by using Cloud Linux. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice