Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 500 in FastCGI on PHP

I recently changed server. This my new server using FastCGI to interpret PHP. However, much that I brought from the old server is giving this error again, and the problem is that FastCGI does not return the error to debug, it just returns a "500 internal server error".

With that I'm not exactly sure what line to correct the error occurred. I have scripts immense, which makes unfeasible review the entire a Code.

Already tried using

try {.. }

in known errors, but still FastCGI returns the 500 error.

I'm not a server administrator to power on mecher environment variables, is there any way to work around these errors from within PHP?

like image 432
Walter Gandarella Avatar asked Jul 05 '13 13:07

Walter Gandarella


1 Answers

This error may be cause because you didn't set the proper permissions for the directory.

You should set the proper permissions and then try run the script. It should work.

Try running simple php file to see if it shows this error. If so then change permissions. If not then check the logs because the problem may be in your script.

You can also set display_errors to 1 in php.ini, htaccess or inside script

in php.ini look for error_reporting and display_errors

error_reporting  =  E_ALL
display_errors = 1
like image 131
Robert Avatar answered Oct 28 '22 15:10

Robert