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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Thank you.
     
Loading...

Share This Page