Fatal error: Call to undefined function: mysql_connect() in /var/www/html/index.php on line 14
Is an error that I am receiving when trying to connect... I figure that I have not configured PHP with MySQL, but I am not sure at all of how to configure the php.ini file!!! If someone could direct me on how to fix this problem I would appreciate it!!!
Thanks, Donald😕
What OS are you using? Red Hat 8.0 has an issue with recognizing mySQL straight out of the box. Make sure you dowload the latest RPMs if that is the case. We have the PHP-mySQL fix at our web site for RH 8.0.
I cannot seem to find the file from your site, is this some service that I must have?
It's Free. On our site, from the front page under Customer Service: "RedHat 8.0 PHP-MYSQL Bug Fix"; it will take you to a page that allows the download.
I already went there, but I only see that it begins with Now that you have downloaded the tar file...
Scroll down the page and you will see an RPM filename. It is under the question: "After I run "First Time Setup" it returns me to a blank screen, what's wrong?"
Do you have any idea how I am to install this rpm file? I really appreciate your help!
save it to your server and use:
rpm -i filename .rpm
If you get an error, it could already be installed. Un-install the prior RPM or use the update command.
-u : update -e : removes previous rpm
I installed the rpm, but I still get that error? Could I have done something wrong? Could have another problem?
make sure the line with mysql.so is NOT commented out in the PHP.INI file. You may also have to re-install mysql or PHP.
I do not see the line with mysql.so in the php.ini file, if I were to reinstall php, do I get those files from php.com (or .org, whatever the extension may be)???
extension=mysql.so is a line that I just found....and there was no ; in front of it... does that mean that I definately need to reinstall php and/or mysql?