Hello,
After a lot of tests, I decided myself that the best way to handle PHP was through Fast Cgi (mod fcgi).
Unfortunally, cPanel/WHM doesn't help a lot with configurating/customizing the way it works. The first problem, is that if a PHP script takes more than 40 seconds to execute, a 500 Error is thrown to user (but the php script continues running).
Ok, so I had a little research and found that it can be customized with some MOD_FCGI directives. I found to add these directives to /usr/local/apache/conf/php.conf.
But I believe that, everytime I update apache or make any kind of configuration, the PHP.CONF will be replaced by the default and I'll lose my custom settings.
So, the question is:
- How to make permanent changes to PHP.CONF while using php_fcgi?
The directives I added to php.conf were:
I searched a lot and found nothing. Hope you guys can help me.Code:IdleTimeout 300 MaxProcessCount 200 DefaultMinClassProcessCount 1 DefaultMaxClassProcessCount 25 IPCConnectTimeout 20 IPCCommTimeout 600 (This is the line that solved my problem) IdleScanInterval 120 ProcessLifeTime 900 BusyTimeout 300 BusyScanInterval 120 ErrorScanInterval 3 ZombieScanInterval 3
Thanks!



LinkBack URL
About LinkBacks
Reply With Quote





