Error 500 (internal server error) for all .php files (not .html)

PH-Gabriel

Administrator
Membre du personnel
#2
Hello said_dev,

Error 500 is often related to a PHP error.

To debug this issue, I recommend you to enable display_errors for your code.

To do this, you can add the following code at the beginning of your PHP :
Code:
error_reporting( E_ALL );
ini_set( 'display_errors', 1 );
After that, you should have a PHP error instead of the error 500.
 

said_dev

New Member
#3
Thank you for your answer :).
I have this :
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/aixezjvz/public_html/checker/usercheker.php:9 Stack trace: #0 {main} thrown in /home/aixezjvz/public_html/checker/usercheker.php on line 9
 
Haut