500 Internal Server Error - Hosting UOL Host

-1

I 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 with PHP 7.1), I occasionally get the server error "500 Internal Server Error "in the browser, and is not on any specific page, happens randomly.

I talked to UOL Host support and they said that it might be a problem in my PHP code, but I do not even know where to start investigating, since in all the tests I do in my test environment, the error never occurs. It looks like it might be some configuration problem in UOL's shared PHP installation.

I checked the PHP log in production, but I did not find anything that might indicate the cause of the error.

    
asked by anonymous 19.04.2018 / 15:51

1 answer

0

I will share with you the solution I found for the problem, which is certainly not the best, but that's what I was able to do, considering that the support of the hosting 'UOL Host' is very bad .. the analysts there they look like robots that just answer a few ready-made phrases and hardly help us efficiently solve the problems.

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

So, considering that the provider offers the option to migrate Linux hosting files to the Windows environment, I requested this migration and after that the problem is solved. I've used the logic that the Windows operating system is much less demanding with regard to directory access permissions.

At last, it was a drastic yet functional solution, and could help other users of the UOL Host provider or the like.

    
20.04.2018 / 13:05