Barbod

Registered
Jan 25, 2021
4
0
1
Nederland
cPanel Access Level
Website Owner
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:
Code:
[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-php73
Can anyone help?
 

vacancy

Well-Known Member
Sep 20, 2012
556
223
93
Turkey
cPanel Access Level
Root Administrator
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.
 

rscalover

Well-Known Member
Dec 16, 2010
101
12
68
cPanel Access Level
Root Administrator
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 .
 

Barbod

Registered
Jan 25, 2021
4
0
1
Nederland
cPanel Access Level
Website Owner
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 stands
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
820
340
363
cPanel Access Level
DataCenter Provider
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.