Apache 500 Error Log Empty
Contents |
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
Apache 500 Error No Log
Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation apache 500 error not logged Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like
Apache Internal Server Error 500
you, helping each other. Join them; it only takes a minute: Sign up Internal Error 500 Apache, but nothing in the logs? up vote 45 down vote favorite 7 I'm getting 500 Internal Server errors when I try apache 500 error troubleshooting to make an HTTP POST to a specific address in my app. I've looked into the server logs in the custom log directory specified in the virtual hosts file, but the error doesn't show up there so debugging this has been a pain in the ass. How do I cause Apache to log Internal 500 errors into the error log? apache error-logging share|improve this question edited Dec 11 '13 at 6:05 Eric Leschinski 45.9k23219189 asked apache 500 error page Jan 19 '11 at 3:04 wcolbert 5402821 I had same issue using PHP with virtual hosts....no errors (Apache2, Ubuntu). Ended up being missing PHP modules (mysql, json, etc.) –user484474 Aug 7 '11 at 19:57 On ours, it was sending them to the access log (presumably because from Apache's point of view, it was working correctly and merely passing them along, from a deeper layer -- in our case, Passenger/Rails). Just putting this note here in case somebody is scratching their head. –Tom Hundt Jul 8 at 18:29 add a comment| 7 Answers 7 active oldest votes up vote 4 down vote accepted The error log usually has the (more) specific error. often it will be permissions denied or even an interpreter that can't be found. This means the fault almost always lies with your script. e.g you uploaded a perl script but didnt give it execute permissions? or perhaps it was corrupted in a linux environment if you write the script in windows and then upload it to the server without the line endings being converted you will get this error. in perl if you forget print "content-type: text/html\r\n\r\n"; you will get this error There are many reasons for it. so please first check your error log and then provide some more information. The default error log is often in /var/log/httpd/error_
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
Http 500 Error Apache
more about Stack Overflow the company Business Learn more about hiring developers or posting apache 404 error ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack
Apache 400 Error
Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Apache 500 server error- logs showing nothing [closed] up vote 6 http://stackoverflow.com/questions/4731364/internal-error-500-apache-but-nothing-in-the-logs down vote favorite Just after some help with a new installation of PHP. I've setup a new Centos 6.2 server with apache PHP and am having trouble getting errors to show. I've copied all the website application files from a different as well as the folder structure and everything in /etc/httpd/. When I access my site, I get a 500 error, or a blank page. The logs are http://stackoverflow.com/questions/9429616/apache-500-server-error-logs-showing-nothing showing nothing at all, apart form logging the 500 error: [24/Feb/2012:17:33:25 +1100] "GET / HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20100101 Firefox/6.0.1" 405 229 7176 My htaccess looks like this: ErrorDocument 404 /error.php php_flag display_errors on php_flag display_startup_errors on php_flag file_uploads on php_value error_reporting 6143 php_value max_input_time 60 php_value post_max_size 8M php_value upload_max_filesize 2M ~ So errors are turned on... Start of PHP file has: error_reporting(-1); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); and php.ini has error_reporting set to E_ALL. ... yet I am getting errors on the screen for some things (such as not closing a string), but my issues are a bit bigger than i think and i have no idea where to start debugging! So i guess my question is- how do I start debugging a 500 server error? php apache share|improve this question asked Feb 24 '12 at 11:02 Lock 3,00863165 closed as off topic by bahrep, hjpotter92, sylvanaar, rorra, Neolisk Apr 14 '13 at 14:35 Questions on Stack Overflow are expected to relate to programming within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopenin
Help Here Network/Internet HTTP Error 500 with browser, but nothing in Apache logs... Welcome! If this is your first visit, be sure to check out the FAQ. You will have to register before you can post in the forums. https://forums.opensuse.org/showthread.php/487587-HTTP-Error-500-with-browser-but-nothing-in-Apache-logs (Be aware the forums do not accept user names with a dash "-") Also, https://bugs.php.net/bug.php?id=64924 logging in lets you avoid the CAPTCHA verification when searching . Select Articles, Forum, or Blog. Posting in the Forums implies acceptance of the Terms and Conditions. Page 1 of 2 12 Last Jump to page: Results 1 to 10 of 12 Thread: HTTP Error 500 with browser, but nothing in Apache logs... Thread Tools Show Printable Version Subscribe 500 error to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 03-Jun-2013,12:41 #1 brasto1972 View Profile View Forum Posts View Blog Entries View Articles Newcomer Join Date Nov 2009 Location Magna, UT Posts 48 HTTP Error 500 with browser, but nothing in Apache logs... I've migrated a couple sites to a new server now, and they are now working fine. I've moved all the files and have the database loaded apache 500 error for a third site, and I get "HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request" when I visit the domain with a web browser, but there is nothing in /var/log/apache2/error_log and although the vhost config file says to use the /var/log/apache2/[domain]/error_log for error logging for this domain, there is nothing there either. The other two sites were drupal installs. This one is a wordpress install. Any ideas? Thank you, Brandon Reply With Quote 03-Jun-2013,12:54 #2 Knurpht View Profile View Forum Posts View Blog Entries Visit Homepage View Articles Global Moderator Join Date Jun 2008 Location Groningen, Netherlands Posts 15,892 Re: HTTP Error 500 with browser, but nothing in Apache logs... Error 500 most of the time is the result of incorrect databast connection / permissions. Make sure database name, database user and permissions are OK. - Athlon X6 3.6 GHz, 16 GB DDR3, 64 GB SSD, 3 TB of disks, GT540, openSUSE Leap 42.1 - ASUS A73SD, Intel + GT610M Optimus, 6 GB, 2 x 120 GB SSD, openSUSE Tumbleweed+Leap Anything that can go wrong.... will teach us http://en.opensuse.org/User:Knurpht http://nl.opensuse.org/Gebruiker:Knurpht Reply With Quote 03-Jun-2013,13:41 #3 brasto1972 View Profile View Forum Posts View Blog Entries View Articles Newcomer Join Date Nov 2009 Location Magna, UT
01:47 UTC Modified: 2013-05-27 15:07 UTC From: matteosistisette at gmail dot com Assigned: Status: Not a bug Package: *Web Server problem PHP Version: 5.4.15 OS: ubuntu 12.10 Private report: No CVE-ID: View Add Comment Developer Edit [2013-05-27 01:47 UTC] matteosistisette at gmail dot com Description: ------------ I have no idea what's triggering this, certainly some error of mine in my php code, however, in very rare cases I'm getting 500 internal server errors which are logged as such in apache's access_log, but don't log ABSOLUTELY ANYTHING in PHP's error log, not even a fatal error or parse error. I only get an empty 500 response from the server. Such a thing must never, ever, ever happen, no matter what, if the error is caused by php code. Patches Add a PatchPull Requests Add a Pull RequestHistoryAllCommentsChangesGit/SVN commitsRelated reports [2013-05-27 01:52 UTC] matteosistisette at gmail dot com And this is even at runtime!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Part of my code gets executed, and then the 500 error is produced. I even have an error handler that prints a stact trace, and doesn't work in this case, so the error is fatal or anyway unhandable. However it should ALWAYS show up on error log with an error message. This is unbelievable. [2013-05-27 06:19 UTC] pajoye@php.net -Status: Open +Status: Feedback [2013-05-27 06:19 UTC] pajoye@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. [2013-05-27 10:37 UTC] matteosistisette at gmail dot com Apparently my php is configured with --disable-debug. How do I ge