Home > lighttpd 500 > lighttpd 500 internal server error

Lighttpd 500 Internal Server Error

simultaneous connections open to the server Added by Devilicious almost 5 years ago My server info can be found from the end of the post. Problem:I'm doing a stress test to my server with some windows stress test tool. It's set to simulate ~2 000 page lighttpd debug log requests per minute. Those requests go to my PHP api which uses mysql and lighttpd error log facebook API to deliver the asked info to the user. API response time is from around 2 seconds to 40 seconds (due to the slowness of Facebook graph api mainly) so when doing 2000 page requests per minute, some of them will load about 40 seconds and therefor there are many open connections. The problem itself is, when about 400 (the number isn't exactly 400, but should be around it) users are sitting with open connection and waiting for the response from the API new users get Internal Server Error 500. When doing the same stresstest against a static php file (phpinfo() in it), no errors. But again, as the stresstester program doesn't open all the 1000 connections at the same time, there weren't so many open connections this time (compared with the API stresstest) Question:How can i resolve this? What should i change to make the server accept more concurrent requests so there could be more open connections.Also, the request go slower and slower as the open connection count rises (logical, i know), but i have the feeling that my server can do better than this (linode.com graphs show that during the stresstest server CPU useage is around 14%, i couldn't find mem useage graph tho) Side question:I can't find a log file that logs those errors. Is it just me or the system doesn't actually log them? I'm just thinking that maybe there's more info in the log file about why the users get error 500. I'm all new in this server managing stuff. Please describe every step as good as possible (i want to know what and why i'm doing it, so i can make stuff clearer to myself and come out of situations like this in the future), if you want to know something more about the server setup, feel free to ask (and possibly provide a way how to find out the answer). I'm using Debian 6 (squeezy) I'm using lighttpd/1.4.28 (ssl) (Build-Date: Nov 16 2010 14:53:43) I'm using PHP

October 24, 2006 in Apache, lighttpd, TroubleshootingYou get "500 - Internal server error" error message when a user tries to access your Apache or Lighttpd based dynamic php application (such as forum or blog software).

Generally, to solve this problem you need to take help of log files located at following location: => /var/log/message => /var/log/httpd/error_logs (/var/log/lighttpd/error_log or /var/log/httpd/error_log)So you may be wondering why your PHP script throws an Internal Server Error 500.This error only occurs because of web server software. However after http://redmine.lighttpd.net/boards/2/topics/4936 looking through logs you may not find many details. This problem may be caused by:A malformed php cgi scriptAn invalid directive in an .htaccess or other config fileLimitation imposed by file system and server software (for example php log file size set to 10Mb)Missing php.ini (or cannot read php.ini file)In most case it is an invalid .htaccess directive. http://www.cyberciti.biz/tips/http-error-500-internal-server-for-php-pages-and-solution.html However recently I came across a web server w/o /etc/php.ini file. A long time ago I setup this server )Apache chrooted jail). So you need to maintain two files one outside jail and another inside jail: => /etc/php.ini => /chroot/etc/php.ini <-- this file was missing Many scripts open this file on fly to get correct configuration directives. If this file not found you get error 500. It took some time to figure out this problem. Finally strace helped me out to debug this problem. For me it was another day with another interesting problem ;) Share this on:TwitterFacebookGoogle+Download PDF version Found an error/typo on this page?About the author: Vivek Gite is a seasoned sysadmin and a trainer for the Linux/Unix & shell scripting. Follow him on Twitter. OR read more like this:Test and Troubleshoot Chrooted Apache JailLighttpd php segfault at 0000000000000040 rip 0000003e30228278 rsp…Lighttpd web server setup custom PHP.INI file for each user or domainThe rise of bots, spammers, crack attacks and libwww-perlSetup sendmail php mail() support for chrooted Lighttpd or Apach

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and http://stackoverflow.com/questions/17896806/500-internal-server-error-with-lighttpd policies of this site About Us Learn more about Stack Overflow the http://raspberrypi.stackexchange.com/questions/10598/error-500-for-access-to-webserver-page company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes lighttpd 500 a minute: Sign up 500 - Internal Server Error with lighttpd up vote 0 down vote favorite I have a VPS with CentOS 5.8 (Final) and when I use lighttpd as my webserver instead of apache I get this error: "500 - Internal Server Error" (I'm trying to install WordPress and I get this error when I try to access my lighttpd 500 internal site; the error doesn't appear at all when I try to access other .html pages). If I switch back to apache then the error disappears and everything is fine. Why does this happen? I prefer use lighttpd because it uses less memory. I also created a file names "phpinfo.php" and uploaded it to my server. When I access it, I get the same "500 - Internal Server Error", so from what I know, this would mean that my lighttpd isn't working properly, right? How can I solved this problem? php apache lighttpd internal-server-error share|improve this question asked Jul 27 '13 at 10:35 Daniel Sarmas 2318 check the logfile of lighttpd (or use nginx :D) –Rufinus Jul 27 '13 at 10:39 This is what the lighttpd error.log file shows: pastebin.com/raw.php?i=ANiGz76a –Daniel Sarmas Jul 27 '13 at 10:51 1 the php integration in lighttpd seems to be broken. cant help you more, this will be a step to step debug. i would suggest using nginx with php-fpm its as fast (if not faster) then lighttpd and php integr

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Raspberry Pi Questions Tags Users Badges Unanswered Ask Question _ Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Error 500 for access to webserver page up vote 2 down vote favorite I have two files stored in /var/www/ pi@babaloo /var/www/test $ ls -l total 8 -rwxrwxrwx 1 pi pi 123 Nov 8 00:23 refresh.php -rwxrwxrwx 1 pi pi 989 Nov 5 17:41 share.php when i try to open refresh.php from my browser, I get a 500 response from refresh.php on share.php everything is ok. dont know why, whats the reason and how to solve it ??? Whats the meaning of the "8" and "5" ?? may that cause the error? EDIT: I just noticed, that all new files I create have the same problem. Old files are ok. I dont know what happend - any ideas what could be the reason and what can I do to fix this ? lighttpd user share|improve this question edited Nov 7 '13 at 23:43 asked Nov 7 '13 at 23:30 s3bi 11016 2 8 and 5 are Nov8 and Nov5 =) –lenik Nov 8 '13 at 0:16 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote After uninstalling lighttpd and installing it again the problem has been solved. But I still don't know why!? share|improve this answer edited Nov 8 '13 at 11:15 ppumkin 11.8k43577 answered Nov 7 '13 at 23:55 s3bi 11016 Did you log in as another user? maybe lighhtpd changed users for some reason. The permission look ok there but to whom do they belong? That is usually the problem relating to who created the files. ls -l filename –ppumk

 

Related content

lighttpd 500 error

Lighttpd Error table id toc tbody tr td div id toctitle Contents div ul li a href Lighttpd Debug Log a li ul td tr tbody table p simultaneous connections open to the server Added by Devilicious almost years ago My server info can be found from the end of the post Problem I'm relatedl doing a stress test to my server with p h id Lighttpd Debug Log p some windows stress test tool It's set to simulate page lighttpd error log requests per minute Those requests go to my PHP api which uses mysql and facebook API to