Hostinger error 500 - How to detect the problem

Asked

Viewed 41 times

0

I am using Hostinger’s hosting to host my application, however, it is not working and returns me the error below:

inserir a descrição da imagem aqui

How can I know what’s happening to my site?

1 answer

0


In researches I did, this can be a problem in some PHP code, and to detect a precise log of the errors that are occurring.

To solve, I followed the tutorial on this page: https://www.hostinger.com.br/tutorials/comorverifica-os-logs-de-erro-php-do-seu-site/#1o-Passo-Habilitar-os-Logs-de-Erro

To enable error logs you will have to add the following line to file:

php_flag log_errors on

Then we will have to determine a location for the logs to be stored. For our example we created the error_log.txt file on public_html directory. For logs to be stored in the file created, insert the following line into . htaccess:

php_value error_log /home/usuario_FTP/public_html/error_log.txt

NOTE: Don’t forget to change user_FTP for your user. At Hostinger the default is the letter "u" followed by 9 numeral digits. Example: u497135640.

With these settings the error logs will be stored in the error_log.txt file located in the public_html folder.

With that the log presented me the problem:

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.