Lighttpd 500 Internal Server Error
Jul 19, 2009I have useing lighttpd for my website,my site Only picture.
but if access peak , There are often 500 Internal Server Error,
I have useing lighttpd for my website,my site Only picture.
but if access peak , There are often 500 Internal Server Error,
lighttpd crash with 500 internal error.
connection is about 1000. the load average is only 0.78.
Is lighttpd good for dynamic site?
Maybe I need to switch back to apache.
Here is the log file.
Quote:
2008-03-06 10:45:00: (mod_fastcgi.c.2855) backend is overloaded; we'll disable it for 2 seconds and send the request to another backend instead: reconnects: 1 load: 545
2008-03-06 10:45:00: (mod_fastcgi.c.2855) backend is overloaded; we'll disable it for 2 seconds and send the request to another backend instead: reconnects: 0 load: 546
2008-03-06 10:45:00: (mod_fastcgi.c.2855) backend is overloaded; we'll disable it for 2 seconds and send the request to another backend instead: reconnects: 1 load: 546
2008-03-06 10:45:00: (mod_fastcgi.c.3496) all handlers for /view_video.php on .php are down.
2008-03-06 10:45:03: (mod_fastcgi.c.2633) fcgi-server re-enabled: 0 /var/run/lighttpd/php-fastcgi.socket
2008-03-06 10:45:03: (mod_fastcgi.c.2633) fcgi-server re-enabled: 0 /var/run/lighttpd/php-fastcgi.socket
2008-03-06 10:45:03: (mod_fastcgi.c.2633) fcgi-server re-enabled: 0 /var/run/lighttpd/php-fastcgi.socket
2008-03-06 10:45:03: (mod_fastcgi.c.2633) fcgi-server re-enabled: 0 /var/run/lighttpd/php-fastcgi.socket
Here is part of the conf file
Quote:
####################
server.max-keep-alive-requests = 0
server.max-keep-alive-idle = 4
server.max-read-idle = 60
server.max-write-idle = 1024
server.max-fds = 8192
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/var/run/lighttpd/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi",
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "8",
"PHP_FCGI_MAX_REQUESTS" => "8000"
)
)
)
)
- Apache version : 2.2.21
- operating system : MAC OS Lion Server
- mod_ssl : 2.2.21
I have a certain area on a homepage which is protected by an .htaccess file. The code of the .htaccess file is the following:
Code:
AuthType Digest
AuthName "Password Required"
Options +Indexes
# code for HTTPS
RewriteEngine On
RewriteCond
%{SERVER_PORT} !^443$
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI}
Require valid-user
Usually everything has been working fine with this .htaccess-file until today. There hasn't been any change on the system.
If you click on the hyperlink to the restricted area the login window appears where you need to type in your username and a password. After typing in these data the following message appears in the browser:
500 Internal Server Error
The server encountered an internal error or
misconfigruation and was unable to complete your request. (…)
The apache error log file contains the following message:
Request exceeded the limit of 10 sub request nesting levels due to probable configuration error.
Use 'LimitInternalRecursion' to increase the limit if necessary.
Use 'LogLevel debug' to get a backtrace.
The increase of the LimitInternalRecursion does not solve the problem. So I switched the LogLevel in the httpd.conf file from warn to debug and looked again on the entries of the error log.
The following appeared (I have replaced ip addresses, usernames and URL by xyz or <URL>) :
Code:
[error] [client xyz]
mod_digest_apple: Client is using a nonce not issued by this server for this context:/rb/Vorlesung/WS12/Downloads/, referer:
http:<URL>
[Code] ....
I am getting 500 Internal server error.What may be the reason ?
The site was running fine till yesterday.
I run a proxy. First, I was on shared hosting. Worked for 2 months. then, bam! 500 internal server error.
I moved to a smaller VPS with 128 MB RAM. Worked for 30 min, then 500 internal server error again...
So now I moved to a larger VPS with 512 MB RAM, 1 GB burstable. Worked for 2 days, and now the 500's is back...
Rebooting the VPS usually fixes it, but I can not be sure I can continue rebooting it, as I expect it getting worse later.
It usually starts with lighttpd goes insane. One minute it's using 30 mb RAM, ok that's good. Then suddenly it uses 300 mb. then 500 mb. Then the 500 internal server error occur.
So any ideas of how I should configure this so it would work in a better way?
This is filled in the error log:
2009-06-02 13:21:16: (mod_indexfile.c.182) file not found ... or so: Too many open files / -> /home/admin/datashelf.net/
I just assume my files in the server of my website has some virus.
so i just delete all the files and upload it again.
But after i upload it website doesnt open.
Why?It shows the message 500 Internal server error.
How can I fix an internal server error?
View 7 Replies View RelatedI have been trying to create my own web gallery using Adobe's Web Photo Gallery (as it seem to be so easy to use). I have created my gallery and it all seems to work fine when testing on my desktop. However, once I upload the files I get the error "internal Server Error"
View 5 Replies View Relatedwhat is a 500 internal server error? i was uploading things to my site and all the sudden on one of the pages where i submit a form it gives me a 500 internal server error. i contacted support and they said they were working on it. i have tried to upload an old version of the file that worked before but it still gave me the same error. they said they would get back to me within 24 hours, its been three days and i still have the problem and no notes/email from them . does internal sever error mean its not a problem on my side or could it be some of my code causing the problem?
View 5 Replies View Relatedmy friend is getting frequently 500 - Internal Error on his sites when ever he starts to get good amount of traffic at a moment, and by the time it resets to normal more than half the traffic is lost, he is using wordpress blog, some other applications not of any traffic, an IPB forum, and some other image hosting script
in total he has 3 databases used, he's not running to outage of RAM, he is using max.
70% of RAM at the pt. when this occurs, checked once long way back..
he usually gets lots of traffic to blog and image host as he posts some real good stuff..
Here is the log when I got 500 Internal Server Error
GET /webmail/ HTTP/1.1
Host: www.domain-name.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.7) Gecko/2009021906 Firefox/3.0.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
--172dce78-F--
HTTP/1.0 500 Internal Server Error
X-Powered-By: PHP/5.2.9
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Content-Length: 20
Connection: close
Content-Type: text/html
--172dce78-H--
Apache-Handler: application/x-httpd-php
Stopwatch: 1237885301072213 12079 (504 908 11749)
Producer: ModSecurity for Apache/2.5.7 [url] ; core ruleset/1.6.0.
Server: Apache
--172dce78-K--
--172dce78-Z--
None of security rules is listed in that error log, so I am totally lost. It's working once when I restart apache, but after that, it's not working anymore.
I installed new apache (2.2.6) and mod_security 2. I wish to block some file globally by:
SecRule REQUEST_URI ".*(some_file).php?.*"
but how to NOT BLOCL for some folder / account? I tried to add to .htaccess:
<Files some_file.php>SecFilterInheritance Off</Files>
or
<Files some_file.php>SecRule Off</Files>
or
<IfModule mod_security2.c>SecRule Off</IfModule>
or
<IfModule mod_security2.c> SecRuleEngine Off</IfModule>
but always I have Internal Server Error
My web host provider uses suPHP and I'm having a lot of trouble installing a php script correctly. Even something as simple as <?php phpinfo(); ?> seems to give me an internal server error.
View 10 Replies View RelatedI switched over a new host and everything was working perfectly. I then uploaded one last directory but it had a weird internal server error when trying to access the index.php file. I then googled it and changed directory permissions to 755, and I am not sure if it is a coincidence but now every site on my server with php files displays that error but html pages are fine.
View 5 Replies View Relatedeach web sites hosted on my server which use phpflag in .htaccess show the Internal Server Error, when I comment the phpflag line by # , the website work correctly.
View 3 Replies View RelatedI'm using IIS v5.1 on WinXP SP1 and I encountered this error (Page cannot be displayed.....HTTP 500 - internal server error) all of a sudden. now, i've been using my Web server with no hitches, but now I can't open any pages on the server that run server side scripts so i reinstalled it and still get the same "Page cannot be displayed" or I get part of the source code for the server side script. Pinging the server shows that its ok, it replies. and regular pages with no scripts still run with the http protocol in the address. Any ideas on how to get past this problem?
View 2 Replies View RelatedOn my VPS SUPHP with PHP 5.2.9 and MySQL 5.0.77 is running absolutely fine.
Suddenly without making any change on the server today i got a 500 internal server error. I don't think there is any permission problem.
Now i change the PHP5 Handler to "cgi" so everything is normal but if i change that to suphp then showing "500 internal server error" anyone can tell the reason of the problem.... Apache suexec is "on" but off also doesn't make any change?
There is any cache/temp file folder for suphp which is filled or some other problem?
My friend got a new vps as he had been experiencing ram issues with older host, now he has 1gb RAM, so there should be no trouble with the RAM
He is getting 500 Internal Server error, he is using wordpress and some other image hosting script, the traffic is pretty high and he is using lighthttpd, fastcgi probably turned on
I am not sure, if turning of lighthttpd and activating apache would solve any problem, as I am scared his scripts might get screwed up by doing this move and his main sites could totally go down
Today when I try to access lxadmin, lxadmin give me the big 500 - Internal Server Error. The weird thing is my website stll works fine :p but of course I can't do anything like add domain and create database.
Also I try to update lxadmin via SSH and I get this:
Code:
-bash-3.1# /script/upcp
/script/upcp: line 3: lphp.exe: command not found
I need help with fixing lxadmin panel.
I already post this question in lxadmin forum but the chance they answering my question is somewhat low..
In the forum [url]suddenly we got Internal Server Error. Our host claims it is because of corrupted database accorind the logs:
081128 11:44:38 [ERROR] Got error 126 when reading table './lykman_clubcento/lykman11_members'
Repairing the database from cpanel didnt work. Old available backups are not available.
When some jobs done via php scripts which use file get contents , page gives internal server error without waiting.
View 3 Replies View RelatedZen optimizer is installed my server, when I try to intall ioncube, all php sites goes down and I get Internal server error, Ioncube and zend dont work together?
and if it s possible to intall ioncube for single site in shared host?
I've been on vacation w/ no internet for only 2 days, just got back today, and my website now has an internal server error. It worked right before I left and now it doesn't, and nothing was added....
View 12 Replies View RelatedI'm moving a site (Windows XP) from Apache 2.2 to the Apache Lounge server 2.4.9 under Windows 7.I exchanged httpd.exe and all modules and the server runs fine when I type localhost into the URL field of Firefox.But as soon as I type in the site name which I have assigned a VirtualHost to, I'm getting an Error 500 (Internal Server Error).
View 1 Replies View RelatedI've been running my website for years and now yesterday I update 2 files, the same way I always do, and when I try to load them in a browser I get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
The log says this:
[my ip] - - [17/Jan/2015:00:07:55 -0500] "GET /site/index.php HTTP/1.1" 404 - "-" [my agent string]
Permissions are 644, same as for the other files. I haven't encountered anything like this before and am totally stumped.