Php Debugging 500 Error
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 Learn debug 500 internal server error apache more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users
Debug 500 Internal Server Error Iis
Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping debug 500 internal server error php each other. Join them; it only takes a minute: Sign up How can I make PHP display the error instead of giving me 500 Internal Server Error up vote 64 down vote favorite 16 This has never happened
Apache 500 Error No Log
before. Usually it displays the error, but now it just gives me a 500 internal server error. Of course before, when it displayed the error, it was different servers. Now I'm on a new server (I have full root, so if I need to configure it somewhere in the php.ini, I can.) Or perhaps its something with Apache? I've been putting up with it by just transferring the file to my other server and running it how to debug internal server error 500 there to find the error, but that's become too tedious. Is there a way to fix this? apache php share|improve this question asked Apr 22 '10 at 1:45 Rob 2,375154890 2 That sounds like an apache problem, not a PHP problem. Apache will throw a 500 any time it has configuration issues (like bad syntax in .htaccess). Check your apache error log for an error message. –Frank Farmer Apr 22 '10 at 1:48 add a comment| 5 Answers 5 active oldest votes up vote 107 down vote accepted Check the error_reporting, display_errors and display_startup_errors settings in your php.ini file. They should be set to E_ALL and "On" respectively (though you should not use display_errors on a production server, so disable this and use log_errors instead if/when you deploy it). You can also change these settings (except display_startup_errors) at the very beginning of your script to set them at runtime (though you may not catch all errors this way): error_reporting(E_ALL); ini_set('display_errors', 'On'); After that, restart server. share|improve this answer edited Jan 7 '13 at 15:01 Davide Palmieri 4891519 answered Apr 22 '10 at 1:49 awgy 6,47821617 1 Thanks, solved the problem –Rob Apr 22 '10 at 2:44 Helped me too.. –hairynuggets May 25 '12 at 13:50 How do we turn off display_errors, yet have PHP display 200 or 404 instead of 500? &nda
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 Stack
Debug 500 Error
Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack
Php 500 Error Log
Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to debug php internal server error “internal server error”? up vote 4 down vote favorite When you do changes to .htaccess files and something is wrong with it you get "Internal server error". That doesn't help me. How can I find out what's the actual error? php apache http://stackoverflow.com/questions/2687730/how-can-i-make-php-display-the-error-instead-of-giving-me-500-internal-server-er apache2 internal-server-error share|improve this question asked Oct 18 '13 at 17:10 thelolcat 1,14992766 1 Check your webserver logs. –Amal Murali Oct 18 '13 at 17:11 I did and there's nothing in them. r u talking about /var/log/apache2? –thelolcat Oct 18 '13 at 17:11 check your web server log. double check you are looking at the correct logs. –bansi Oct 18 '13 at 17:13 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted Error cause should http://stackoverflow.com/questions/19455322/how-to-debug-internal-server-error be saved in server logs. Where it's exactly depends on your server and settings. Eg. in apache2 log file is defined in ErrorLog in your config or in virtual host. share|improve this answer answered Oct 18 '13 at 17:12 Elon Than 6,74521332 ErrorLog is set to ${APACHE_LOG_DIR}/error_log. How can I find out what value has ${APACHE_LOG_DIR} lol? –thelolcat Oct 18 '13 at 17:15 2 @thelolcat lol? Is it funny that you don't know how to find that value? Check lines before that and check where is it set. –Elon Than Oct 18 '13 at 17:17 k i found it thx –thelolcat Oct 18 '13 at 17:23 add a comment| up vote 1 down vote In the case it is a syntax error, enabling debug may not help you. If you can, run built-in php syntax checker to ensure your file is free from errors: >> php -l path/to/your/file.php share|improve this answer answered Dec 8 '14 at 22:15 Francis Brosnan Blázquez 192 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged php apache apache2 internal-server-error or ask your own question. asked 3 years ago viewed 11560 times active 1 year ago Get the weekly news
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 http://stackoverflow.com/questions/7149030/php-return-500-error-but-no-error-log 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 a minute: Sign up php return 500 error but no error log up vote 30 down vote favorite 6 I am having an issue when I have a php application that is returning an internal server error (500) however internal server nothing is showing up in the error log. Now I know there are error with what I am trying to run, I know I have missing some files and what not but something should show in the apache error log (otherwise how are I supposed to know exactly what I am missing). I created a test script is errors it in under the same vhost configuration and those error show up fine so everything seems configured right as far as php/apache. internal server error Are there certain php errors that does show up in the error log (php is configure to display any type of notice, warning, , error, fatal error, etc...)? This is running on ubunut 10.04 with the standard apache and php from the ubuntu repo with apt-get. php apache logging error-handling share|improve this question edited Aug 22 '11 at 17:36 Charles 40.2k1069107 asked Aug 22 '11 at 14:30 ryanzec 7,7172281134 this is with windows and IIS, correct? –Neal Aug 22 '11 at 14:33 sorry, should have included: ubuntu 10.04 –ryanzec Aug 22 '11 at 14:35 Apache and PHP both from the standard ubuntu repo with apt-get –ryanzec Aug 22 '11 at 14:38 add a comment| 6 Answers 6 active oldest votes up vote 33 down vote accepted Scan your source files to find @. From php documentation site Currently the "@" error-control operator prefix will even disable error reporting for critical errors that will terminate script execution. Among other things, this means that if you use "@" to suppress errors from a certain function and either it isn't available or has been mistyped, the script will die right there with no indication as to why. share|improve this answer edited Jul 14 '12 at 19:10 answered Aug 22 '11 at 14:37 Luc M 8,587104469 16 It was that. CodeIgniter apparently loves to use these in there framework, chalk up another reason I dislike CodeIgniter. &n