How to check for internal error 500 Apache?

How to check for internal error 500 Apache?

Do what you did to cause the 500 Internal Server error again, and check the log: Check your php error log which might be a separate file from your apache error log. Find it by going to phpinfo () and check for error_log attribute. If it is not set. Set it: https://stackoverflow.com/a/12835262/445131

Why do I get error 500 on my Web server?

The server error 500 probably happens because an error has occurred in the configuration of the web server. Here is a selection of typical error sources: Permission error : The permissions of the main files and folders are not set correctly.

What to do if there is 500 error in PHP?

If you still have 500 error and no logs you can try to execute from command line: it will not work exactly like in a browser (from server) but if there is syntax error in your code, you will see error message in console. Btw, other frameworks or CMS share this kind of behaviour. I had the same issue.

How to enable internal error logging in Apache?

These instructions to enable Internal Server Error Logging are for Ubuntu 12.10 with PHP 5.3.10 and Apache/2.2.22. The semicolons are comments, that means the lines don’t take effect. Change those lines so they look like this:

What happens when I get a 500 server error?

More information about this error may be available in the server error log. Other times, you might simply see a blank white screen. When dealing with 500 internal server errors, this is actually quite common in browsers like Firefox and Safari.

Why do I get error 500 in PHP?

It’s worth noting that if your error is due to .htaccess, for example a missing rewrite_module, you’ll still see the 500 internal server error. is active (not a comment) somewhere else in the ini file.

What to do if you have an internal server error?

The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.