ispCP - Board - Support
[SOLVED] How to fix 500 errors - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [SOLVED] How to fix 500 errors (/thread-4864.html)

Pages: 1 2 3


RE: [SOLVED] How to fix 500 errors - cell - 04-02-2009 12:20 AM

When I try to compile the snapshot, I get the same error what weblivehelp has got:

Makefile:12: /usr/lib/apache2/build/special.mk: No such file or directory
make: *** No rule to make target `/usr/lib/apache2/build/special.mk'. Stop.

(Yes, as you see I have modified the apache2 path to the mentioned one)


RE: [SOLVED] How to fix 500 errors - weblivehelp - 04-02-2009 12:50 AM

(04-01-2009 09:18 PM)leha Wrote:  I solved this problem by increasing the memory limit to 256Mb

500 Error can show up for a lot of reasons, if your problem was solved like that, the 500 error was showing because the php script being executed needed more memory. If a php script needs so much memory, you should consider tweaking it, if possible.
(04-02-2009 12:20 AM)cell Wrote:  When I try to compile the snapshot, I get the same error what weblivehelp has got:

Makefile:12: /usr/lib/apache2/build/special.mk: No such file or directory
make: *** No rule to make target `/usr/lib/apache2/build/special.mk'. Stop.

(Yes, as you see I have modified the apache2 path to the mentioned one)

I suggest you use fcgid instead of fastcgi, it's much better, after a few tweaks I got it faster and consuming less memory & cpu.


RE: [SOLVED] How to fix 500 errors - cell - 04-02-2009 01:30 AM

Currently I use fcgid with 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 300
  IdleScanInterval 240
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 6
  ZombieScanInterval 3
  ProcessLifeTime 3600
  SpawnScoreUpLimit 10

  IPCConnectTimeout 300
  IPCCommTimeout 300
</IfModule>

But after 40sec run I get a 500 error and in the log: "[warn] mod_fcgid: read data timeout in 40 seconds".
I dont have any more idea for how to config fcgid, so I try to switch fastcgi, but it's give me the same result now :/


RE: [SOLVED] How to fix 500 errors - weblivehelp - 04-02-2009 01:39 AM

(04-02-2009 01:30 AM)cell Wrote:  Currently I use fcgid with 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 300
  IdleScanInterval 240
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 6
  ZombieScanInterval 3
  ProcessLifeTime 3600
  SpawnScoreUpLimit 10

  IPCConnectTimeout 300
  IPCCommTimeout 300
</IfModule>

But after 40sec run I get a 500 error and in the log: "[warn] mod_fcgid: read data timeout in 40 seconds".
I dont have any more idea for how to config fcgid, so I try to switch fastcgi, but it's give me the same result now :/

Here is mine, but of course you should adapt this to your server, the server with this file is a Core 2 Duo and has 2GB Ram:

Code:
<IfModule mod_fcgid.c>
  AddHandler fcgid-script .fcgi .php .php5
  SocketPath /var/lib/apache2/fcgid/sock
  IdleTimeout 300
  MaxProcessCount 200
  DefaultMinClassProcessCount 1
  DefaultMaxClassProcessCount 25
  IPCConnectTimeout 20
  IPCCommTimeout 120

  IdleScanInterval 120
  ProcessLifeTime 900
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 3
  ZombieScanInterval 3
</IfModule>



RE: [SOLVED] How to fix 500 errors - datashaman - 05-11-2009 09:11 PM

The mod_fcgid parameters are wiped out per VirtualHost, so your global settings are ignored.

See http://jay.vox.com/library/post/mod_fcgid-ignoring-fastcgi-config-settings.html

Either change the template which generates the domain inside /etc/apache2/sites-available/ispcp.conf

OR

Add your mod_fcgid parameters into the /etc/apache2/ispcp/<domain>.conf file.


RE: [SOLVED] How to fix 500 errors - marceloc - 07-19-2010 01:46 PM

Hi!

I installed IspCP 1.05 on the a cloud server with 512 MB of RAM. The SO is Ubuntu 9.10 64 bits.

My joomla websites show the error message:

Code:
Error 500!
/
Internal Server Error!


My static sites and the Panel IspCP works fine, but the joomla sites, don't work.


Apache2:

Code:
<IfModule mpm_worker_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients          150
    MaxRequestsPerChild   1
</IfModule>


<IfModule mpm_event_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxRequestsPerChild   1
</IfModule>

AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>


PHP.ini - Mysite.com:
Code:
max_execution_time = 60     ; Maximum execution time of each script, in seconds
max_input_time = 120 ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit = 256M      ; Maximum amount of memory a script may consume (128MB)


php5-fcgi-starter:
Code:
#!/bin/sh

umask 022

PHPRC="/var/www/fcgi/mysite.com/php5/"
export PHPRC

TMPDIR="/var/www/virtual/mysite.com/phptmp"
export TMPDIR

PHP_FCGI_CHILDREN=2
export PHP_FCGI_CHILDREN

exec /usr/bin/php5-cgi

I'm desperate! I've made several adjustments recommended in this forum and don't work.

sorry my english!

Regards,
Marcelo


RE: [SOLVED] How to fix 500 errors - weblivehelp - 07-19-2010 10:59 PM

Have you tried looking up the /var/log/apache2/error.log file? (or default_user.log in /var/log/apache2/users/ ,something like that)


RE: [SOLVED] How to fix 500 errors - jacksparrow - 03-14-2011 05:07 AM

i have debian installed and ispcp

i use the server for websites and also for forums vBulletin
i have on vBulletin the modification download installed and attachments enabled
both did not work and gave me the 500 internalserver error while uploading files

my friend who is a wizzard fxt it for me with the following modifications in /etc/apache2/mods-available with the edditing of the following files
fcgid_ispcp.conf and fcgid.conf
Code:
<IfModule mod_fcgid.c>
  AddHandler    fcgid-script .fcgi
  FcgidConnectTimeout 20
</IfModule>


<IfModule mod_fcgid.c>
  AddHandler    fcgid-script .fcgi
  FcgidConnectTimeout 20
  FcgidMaxRequestLen 1073741824
</IfModule>
FcgidMaxRequestLen 1073741824

and

Code:
<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php5
  SocketPath /var/lib/apache2/fcgid/sock
  IdleTimeout 600
  IdleScanInterval 120
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 3
  ZombieScanInterval 3
  ProcessLifeTime 900
  SpawnScoreUpLimit 10
  SpawnScore 1
  TerminationScore 2
  MaxProcessCount 200
  DefaultMaxClassProcessCount 10
  DefaultMinClassProcessCount 1
  IPCCommTimeout 900
  MaxRequestsPerProcess 500
</IfModule>

<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php5
  SocketPath /var/lib/apache2/fcgid/sock
  IdleTimeout 600
  IdleScanInterval 120
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 3
  ZombieScanInterval 3
  ProcessLifeTime 900
  SpawnScoreUpLimit 10
  SpawnScore 1
  TerminationScore 2
  MaxProcessCount 200
  DefaultMaxClassProcessCount 10
  DefaultMinClassProcessCount 1
  IPCCommTimeout 900
  MaxRequestsPerProcess 500
  FcgidMaxRequestLen 1073741824</IfModule>

FcgidMaxRequestLen 1073741824

i hope this is of some use for others


RE: [SOLVED] How to fix 500 errors - pearlcabrezos - 04-13-2011 04:44 PM

I think to fix this problem you must increase the memory to 256Mb.


RE: [SOLVED] How to fix 500 errors - avispa987 - 05-05-2011 10:18 AM

I would not recomend in any way to copy apache2.conf//httpd.conf settings..
i recommend all to follow or at least read this document from apache's web
http://httpd.apache.org/docs/2.0/misc/perf-tuning.html
and
http://httpd.apache.org/docs/2.2/mod/mpm_common.html