500 error - Internal Server Error
Hello friends I had a backup from three years ago and restored it
I have error 500- Internal Server Error
Latest web server error log messages:
Can anyone help?
[Mon Jan 25 20:22:32.390651 2021] [cgi:error] [pid 4132836] [client 62.250.204.140:58118] AH01215: thrown in /home/*********/public_html/inc/table.php on line 74: /usr/local/cpanel/cgi-sys/ea-php73
[Mon Jan 25 20:22:32.390570 2021] [cgi:error] [pid 4132836] [client 62.250.204.140:58118] AH01215: #1 /home/*********/public_html/index.php(84): Table->Table('settings'): /usr/local/cpanel/cgi-sys/ea-php73
[Mon Jan 25 20:22:32.390494 2021] [cgi:error] [pid 4132836] [client 62.250.204.140:58118] AH01215: #0 /home/*********/public_html/inc/table.php(60): Table->connect(): /usr/local/cpanel/cgi-sys/ea-php73
[Mon Jan 25 20:22:32.390369 2021] [cgi:error] [pid 4132836] [client 62.250.204.140:58118] AH01215: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/*********/public_html/inc/table.php:74: /usr/local/cpanel/cgi-sys/ea-php73Can anyone help?
-
Uncaught Error: Call to undefined function mysql_connect () Your site is using mysql_connect function, mysql_connect function is not supported in php 7 versions, try changing your php version to 5.6. 0 -
Hello, 500 internal server error is 99% a permissions related issue however "call to undefined function mysql_connect()" that indicates your php build is not compiled with mysql support.I would open an ssh shell go to the public_html directory and type "ls -la" and carefully look at the permissions php files need at least chmod 644 to run. Regarding the mysql issue you can recompile php with mysql support via easyapache in whm . 0 -
@vacancy nailed it - you likely need to change the PHP version on that account as it doesn't work well with the newer versions. Can you try that? 0 -
Uncaught Error: Call to undefined function mysql_connect () Your site is using mysql_connect function, mysql_connect function is not supported in php 7 versions, try changing your php version to 5.6.
I tried all the versions but got no results 500 error - Internal Server Error It still stands0 -
If you move to PHP 7.0 or higher, do you still see the same errors when you check the logs on the system? 0 -
If you move to PHP 7.0 or higher, do you still see the same errors when you check the logs on the system?
php changed to version 5.6, but there is no error in the log, but I still have an internal server error0 -
You may need to speak with your hosting provider if you aren't seeing any new logs after switching to PHP 5.6, as I would expect there to be data logged for a 500 error. 0 -
You may need to speak with your hosting provider if you aren't seeing any new logs after switching to PHP 5.6, as I would expect there to be data logged for a 500 error.
I use Cloud myself I have access to the VPS0 -
Hello, If you have root access to the VPS, then just run through EasyApace and enable MySQL for the version(s) where you need it. You just seem to be missing that module. 0
Please sign in to leave a comment.
Comments
9 comments