Current time: 11-23-2024, 07:46 AM Hello There, Guest! (LoginRegister)


Post Reply 
500 Error
Author Message
elsimultimedia Offline


Posts: 4
Joined: Mar 2009
Reputation: 0
Post: #1
500 Error
Hello.
I am having some problems with ispCP
I have a Ubuntu 8.04 distributions installed on a powerfull server
2 x Xeon 3,06 Ghz
4 GB RAM
...
I installed ispCP Omega 1.0.0 Stable Release
All was fine ( except for a small problem with proftpd users and passwords which i resolved by using the config file provided in the nightly build)
Yesterday i installed some new extensions and updated old ones
* PDO_MySQL
* simplexml
* mcrypt
* hash
* GD
* DOM
* iconv
* SOAP
This morning i noticed tha in ispcp i get a lot of 500 internal server errors

[Tue Mar 31 14:51:37 2009] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Tue Mar 31 14:51:37 2009] [error] [client 192.168.0.2] Premature end of script headers: change_user_interface.php, referer: http://admin.srv1.elsimultimedia.ro/client/index.php
[Tue Mar 31 14:51:39 2009] [notice] mod_fcgid: call /var/www/ispcp/gui/admin/manage_users.php with wrapper /var/www/fcgi/master/php5-fcgi-starter
[Tue Mar 31 14:51:42 2009] [notice] mod_fcgid: process 6848 going graceful shutdown, sending SIGTERM
[Tue Mar 31 14:51:48 2009] [notice] mod_fcgid: process /var/www/ispcp/gui/admin/system_info.php(6848) exit(communication error), terminated by calling exit(), return code: 0

Has anyone encountered this problem?
Any tips?
The server hosts 5 websites with an average of 50 visitors daily so i suppose server load is not a problem.
03-31-2009 10:18 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: 500 Error
Do you use FastCGI or fcgid ?

Greez BeNe
03-31-2009 10:29 PM
Visit this user's website Find all posts by this user Quote this message in a reply
elsimultimedia Offline


Posts: 4
Joined: Mar 2009
Reputation: 0
Post: #3
RE: 500 Error
fgcid

I forgot to say that scripts work - if i refresh the page after the 500 error it does what it's supposed to do
(This post was last modified: 03-31-2009 10:52 PM by elsimultimedia.)
03-31-2009 10:39 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: 500 Error
You could try this config:

/etc/apache2/mods-enabled/fcgid_ispcp.conf
Code:
<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php5
  SocketPath /var/lib/apache2/fcgid/sock
  IdleTimeout 600
  IdleScanInterval 240
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 6
  ZombieScanInterval 3
  ProcessLifeTime 3600
  SpawnScoreUpLimit 10
  SpawnScore 1
  TerminationScore 2
  MaxProcessCount 250
  DefaultMaxClassProcessCount 10
  DefaultMinClassProcessCount 0
  IPCConnectTimeout 20
  IPCCommTimeout 60
</IfModule>

Greez BeNe
03-31-2009 11:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
elsimultimedia Offline


Posts: 4
Joined: Mar 2009
Reputation: 0
Post: #5
RE: 500 Error
I tried and it did not work... I am still getting the exact same error and the same error_log output
03-31-2009 11:13 PM
Find all posts by this user Quote this message in a reply
elsimultimedia Offline


Posts: 4
Joined: Mar 2009
Reputation: 0
Post: #6
RE: 500 Error
nvm... i reinstalled the entire server as i also wanted to enable raid... and now it works
04-01-2009 04:05 AM
Find all posts by this user Quote this message in a reply
cell Offline


Posts: 4
Joined: Apr 2009
Reputation: 0
Post: #7
RE: 500 Error
But I have almost the same error :S

Environment: debian lenny, ISPCP 1.0, mod_fcgid (+awstats, +munin installed)

I have a php script what should run more than 2 mins, but after 40 secs I get a 500 error page. Sad

In /var/log/apache2/users/default-error.log:
Code:
[warn] mod_fcgid: read data timeout in 40 seconds
[error] [client xxx.xxx.xxx.xxx] mod_fcgid: Premature end of script headers: runtimetest.php
[notice] mod_fcgid: process 32482 going graceful shutdown, sending SIGTERM

I use set_time_limit(300) in the testfile (It works fine on my local comp.)
I have tried to add these config settings, but it did not work. Sad
04-01-2009 07:19 AM
Find all posts by this user Quote this message in a reply
k3rmit Offline


Posts: 3
Joined: Apr 2009
Reputation: 0
Post: #8
RE: 500 Error
I'm quite a beginner with ispcp, so my advices might not be of much use, but have you tried to set an appropriate max_execution_time directly in the php.ini for your vhost located at /var/www/fcgi/[youraccountsdomainname]/php5/php.ini ?
04-01-2009 10:50 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #9
RE: 500 Error
You have to change the BusyTimeout (see docs) directive of fcgid's config to the new maximum number of seconds allowed for scripts.
04-01-2009 06:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
cell Offline


Posts: 4
Joined: Apr 2009
Reputation: 0
Post: #10
RE: 500 Error
I have already set the max_execution_time in php.ini and the BusyTimeout also. Sad
If I check the cpu usage on the server, looks like the script is run for ~3 mins as it should be, but the browser get the 500 error page after 40 secs. Sad
I made an another testfile, what is put a character to the output in every loop. Thats ok, its running for 3 mins and then give the output to the browser.

(After the config change, only need to restart apache, nothing else, right?)
04-01-2009 07:15 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)