I am entering my server and I see a 500 error that leaves me understand what is happening. Apparently the 500 error is a bug in PHP. My hosting is PHP and these pages should be running on this server , because I have working correctly on my local server.
Is there any way to make the server to display PHP errors instead of error 500 shows ? Because I used to when I was in my PHP error page , the error out own page and then could understand what was happening.
Answer by Miguel Angel Alvarez We'll see . The theme that you can go through multiple issues.
One of them, most likely , is simple , because you just have to configure PHP.ini to display PHP errors . This is done in PHP.ini display_errors directive .
Most likely you will have in your php.ini the variable this way:
display_errors = Off
This would be right for a production server ( the server on which users enter to view the page ) , it should work properly. In a production environment can be a good idea not to show PHP errors so that users do not see critical or sensitive information . Of course, if you do not see errors , it may be difficult to know what is happening. Then, you can place the php.ini :
display_errors = On
However, you would also have access to php.ini. If you do not have access to modify that file , ask the service technician to your accommodation to be told how to display errors. Perhaps they will provide , through the control panel of your hosting , an option to view the PHP error log .
Well ... and another thing that can happen is that you have an error in your. Htaccess . If you have a file of these on your server , try to remove it temporarily to see if the error persists . If you no longer gives you that error , then check the htaccess to see what may be happening .