Welcome,
One of my users get trouble with his application using ispCPOmega.
He run some external programs using shell_exec, but execution of that commands took about 4 - 10 minutes.
In this time, application have to be working, with established database connection, after fetching result decide what to do next...
My first step like sys admin was configure in php.ini of his file right amount of resources (ram) and allocate additional time limit for executing his application.
Thats how it looks:
Code:
max_execution_time = 2200;
max_input_time = 2200;
memory_limit = 2512M;
But he still got errors about Internal Server Error 500.
So i check log files and found that reason is too short time of execution fcgi.
So i made little changes in file called
Code:
/etc/apache2/ispcp/DOMAIN_NAME.conf
That's how it looks after my changes:
Code:
# Any changes made to this file will be preserved.
# ispCP doesn't and won't verify the contents of this file.
#
# This file should NOT be deleted, otherwise apache will fail to start
#
<IfModule mod_fcgid.c>
AddHandler fcgid-script .php .php5
SocketPath /var/lib/apache2/fcgid/sock
IdleTimeout 36000
IdleScanInterval 32400
BusyTimeout 33000
BusyScanInterval 320
ErrorScanInterval 6
ZombieScanInterval 30
ProcessLifeTime 7200
SpawnScoreUpLimit 100
SpawnScore 1
TerminationScore 2
MaxProcessCount 250
DefaultMaxClassProcessCount 1000
DefaultMinClassProcessCount 0
IPCConnectTimeout 3600
IPCCommTimeout 72000
MaxRequestsPerProcess 5000
</IfModule>
I had rebooted server several times.
But my user still getting Internal Server Error 500...
And log files says:
Code:
[Tue Feb 23 22:30:35 2010] [notice] mod_fcgid: process /var/www/virtual/domain_name/htdocs/converter.php(7401) exit(communication error), terminated by calling exit(), return code: 0
[Tue Feb 23 22:31:23 2010] [notice] mod_fcgid: process /var/www/virtual/domain_name/htdocs/converter.php(7302) exit(idle timeout), terminated by calling exit(), return code: 0
[Tue Feb 23 22:33:23 2010] [notice] mod_fcgid: process /var/www/virtual/domain_name/htdocs/converter.php(7337) exit(idle timeout), terminated by calling exit(), return code: 0
[Tue Feb 23 22:41:02 2010] [notice] mod_fcgid: call /var/www/virtual/domain_name/htdocs/converter.php with wrapper /var/www/fcgi/domain_name/php5-fcgi-starter
[Tue Feb 23 22:41:35 2010] [notice] mod_fcgid: process /var/www/virtual/domain_name/htdocs/converter.php(7394) exit(communication error), terminated by calling exit(), return code: 0
[Tue Feb 23 22:41:35 2010] [notice] mod_fcgid: process /var/www/virtual/domain_name/htdocs/converter.php(7342) exit(communication error), terminated by calling exit(), return code: 0
[Tue Feb 23 22:42:02 2010] [notice] mod_fcgid: call /var/www/virtual/domain_name/htdocs/converter.php with wrapper /var/www/fcgi/domain_name/php5-fcgi-starter
[Tue Feb 23 22:42:17 2010] [notice] mod_fcgid: process /var/www/virtual/domain_name/htdocs/converter.php(7721) exit(communication error), terminated by calling exit(), return code: 0
exit(idle timeout)
If someone have any idea... i'm open, i will listen to anything...
Regards :-(