Home » Php » php – The server encountered an internal error or misconfiguration and was unable to complete your request

php – The server encountered an internal error or misconfiguration and was unable to complete your request

Posted by: admin April 23, 2020 Leave a comment

Questions:
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.
Apache/2.2.0 (Fedora) Server at bbt.com Port 80

This works fine in my local system but it is not working in the server. Can anyone help to figure out why it is?
Thanks in advance!

How to&Answers:

Check your servers error log, typically /var/log/apache2/error.log.

Answer:

You should look for the error in the file error_log in the log directory. Maybe there are differences between your local and server configuration (db user/password etc.etc.)

usually the log file is in

/var/log/apache2/error.log

or

/var/log/httpd/error.log