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

SherifBuzz

Member
Dec 2, 2010
20
0
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.
 

SherifBuzz

Member
Dec 2, 2010
20
0
51
Solution found : create a wrapper script around php5

and call that instead of php5 in :

/usr/local/apache/conf/php.conf