Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Has anybody seen, encounter, and was able to solve this error message i had when i try to access a website with php scripts connecting to a mysql database?
Fatal error: Call to undefined function: mysql_connect() in /var/www/rivet85.com/phpbb2/db/mysql4.php on line 48
That could be anything unless your willing to give us line 48 of your script that its stating the error is on, etc. Probably best to give a few lines before and after just in case.
My first guess would be, its not connecting to your db for some reason, maybe mysql isn't running, the username and password is wrong that its trying to connect with, or could just be a single syntax in your line that is preventing it from connecting.
Well looking at my line 48 in my mysql4.php file I have for my phpbb forum, I see no difference in what you have in yours. This would lead me to believe mysql is not even running perhaps? Have you checked that? Check with ps -aux or top
Also on a side note, has this ever worked before or is this a initial install of phpbb, etc? If its new install, did you make sure to include mysql support with php, etc?
I have seen this before, check your phpinfo() and make sure php is built with mysql support then check your php.ini file and make sure the your loading the mysql extensions. Should look something like this
Did you post this in another forum already because I responded to that thread..
Anyway, your problem is that perl5 DOES NOT include MySQL support, nor is it bundled with the MySQL PHP library. You'll need to download the MySQL library and then recompile php using the configure option:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.