When accessing the site I get 500 Internal Server Error, white page or PHP errors. How can I find out details about the problem?

Frequently Asked Questions Tehnic | 500 | error | internal server
Known error 500. For many users it presents a major problem. In this article you will find all the information you need.
by Mihai BobriucViews 25Updated now 2 monthsPublished 18/08/2022

There may be situations in which, when accessing the site, 500 Internal Server Error, a white page or other messages containing details about the encountered error (PHP errors as an example) are displayed.
Generally these errors can be caused by:
- syntax errors PHP.
- syntax errors .htaccess.

To find out details about these errors, if the browser does not display them, we will have to check the logs manually.
Error logs can be accessed in the following ways:
-in the case of the cPanel control panel, details about the errors will be present in the module, Errors in the Metrix section.
-in the case of the Webuzo control panel, error details will be present in the Error Log module in the Server Info section.

If the above options do not provide enough information about the errors encountered, we will have to consult the error_log file, in the root directory of the site or the executed script .
error_log can be accessed using the control panel's File Manager or using FTP. We may encounter situations where the error log is not named error_log , but has another name set by the application, such as : errors ,  exception_log , etc.

There may be situations where no error is written to the error logs. In this case, we'll need to make sure we have PHP directives enabled log_errors și display_errors.
In the case of cPanel the PHP directives can be checked by following the tutorials:
Edit shared hosting directives
Edit VPS hosting directives
At the same time, we will have to make sure that the application also has the error display and logging functions activated. This setting differs from application to application.

Similar Articles

When I acces my WordPress site I get the error: Error establishing a database connection. What can I do ?Frequently Asked Questions Applications | wordpress | database | error
Discover why when accessing your WordPress site you get the error: Error establishing a database connection, and what should you do in this sittuation.
by Ana RednicViews 76Updated now 2 monthsPublished 25/10/2018
When accessing the site, I receive the error We're having trouble finding that site, This site can't be reached, ERR_NAME_NOT_RESOLVED. What is the cause ?Frequently Asked Questions Tehnic | error | browser | access
O eroare caAn error that can have multiple causes. If a factor presented in the article has been identified, the problem will be solved.re poate avea multiple cauze. Dacă un factor prezentat în articol a fost identificat, problema va fi rezolvată.
by Mihai BobriucViews 25Updated now 2 monthsPublished 18/08/2022
How can we solve the white page error when accessing the Prestashop administration?Frequently Asked Questions Aplicații | prestashop | white screen | white page
In this article we will explain how you can solve the white page error when accessing the Prestashop administration
by Mihai BobriucViews 23Updated now 2 monthsPublished 18/08/2022