500 Internal Server Error - UOL Host Hosting

Asked

Viewed 373 times

-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.

  • 1

    Activates DEBUG mode in your website log if there is and PHP. Error 500 is pretty boring and can be several things.

  • Look at the apache error log

1 answer

0


I will share with you the solution I found for the problem, and it is certainly not the best, but it is what I was able to do, considering that the support of 'UOL Host' is terrible.. the analysts there look like robots that only answer a few sentences ready and hardly help us efficiently to solve the problems.

Well, from what I researched in the forums, including here in Stack Overflow, everything indicates that the problem involves permissions to access linux directories. But UOL Host support was unable to help me change the privileges of my hosting folders.

So, considering that the provider offers the option to migrate the files from the linux hosting environment to the Windows environment, I requested this migration and after that, the problem was solved. I used the logic that Windows operating system is much less demanding with regards to access permissions to directories.

Anyway, it was a drastic but functional solution, and can help other users of the UOL Host provider or similar.

Browser other questions tagged

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