Jump to content

[Solved] 500 Errors On My Site


Byron

Recommended Posts

Apache is setup to limit each user to a maximum of 5 forked processes at a time. However, you were running fives copies of a PHP script (tools/phonify/index.php)... and so SuExec was unable to fork off a new process for your CGI script. I killed your phonify scripts and your CGI scripts are working fine now.

Link to comment
Share on other sites

I guess you could create a CGI script that ran a bash command that counted the number of processes already running (ie. `ps aux | grep phonify | grep -vc grep`) and prevented the PHP script from running otherwise. You could have the CGI script run as a cronjob and touch a file when there are spare spots, and the PHP script would read that file to make sure there were spots.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...