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!

/usr/local/cpanel/cgi-sys/php5 is no longer editable

Discussion in 'EasyApache' started by SherifBuzz, Jan 7, 2018.

  1. SherifBuzz

    SherifBuzz Member

    Joined:
    Dec 2, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    51
    previously we used to be able to edit /usr/local/cpanel/cgi-sys/php5 - however now it seems that it's a binary file. Specifically I used to add :

    export PHP_FCGI_CHILDREN=1
    export PHP_FCGI_MAX_REQUESTS=10000

    to optimize php+fcgi.

    Where is the recommended place to put environment variables now? These must be visible by php.
     
  2. SherifBuzz

    SherifBuzz Member

    Joined:
    Dec 2, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    51
    Solution found : create a wrapper script around php5

    and call that instead of php5 in :

    /usr/local/apache/conf/php.conf
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Keep in mind that manual edits of this file will be lost when Apache is updated.

    Thank you.
     
    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