-1
I have developed a simple website to store registration information using PHP code and Mysql database.
The system works perfectly in the test environment (XAMPP for Windows 7.2.0 running PHP 7.2.1), but when running in the production environment (UOL Host Hosting with PHP 7.1), I occasionally get the "500 Internal Server Error" server error in the browser, and not on any specific page, it happens apparently randomly.
I talked to UOL Host support and they said it might be some problem in my PHP code, but I don’t even know where to start investigating, and in all the tests I do in my test environment, the error never occurs. It seems to me that there may be some configuration problem in the shared UOL PHP installation.
I checked the PHP log in production, but did not locate anything that might be indicating the cause of the error.
Activates DEBUG mode in your website log if there is and PHP. Error 500 is pretty boring and can be several things.
– Diego
Look at the apache error log
– rray