SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I've been trying to load my phpMyAdmin for the past few hours but failed because it says "Cannot load mysql extension". I'm using packages from linuxpackages.net (php-4.4.4-i486-3.tgz and mysql-4.1.14-i486-1.tgz).
I've been searching from this forum and tried various things, but still failed. I've even tried compiling php myself, but it gets weirder. Could anyone please help ?
I have no experience with this, but the message suggests that the problem lies with communication with MySQL. Have you configured your system to start the MySQL daemon?
I see you have PHP configured to work with MySQL, but have you got MySQL installed/activated in your Apache installation?
Hopefully yes, but if not, make sure you have uncommented the MySQL (and) MySQLi Apache modules, and have set the port (default=3306), and restart Apache to re-read the httpd.conf.
It's been a couple months since I dealt with MySQL config, but I hope this helps a bit.
SV
PS- Check the Apache.org website and MySQL.net for further details.
I just tried reinstalling all those packages.. this time using packages from slackware website. Still not working.
Quote:
Originally Posted by allend
I have no experience with this, but the message suggests that the problem lies with communication with MySQL. Have you configured your system to start the MySQL daemon?
I can assure you that I've started the daemon. I can query the database. I just can't load the extension for PHP. I can't find mysql section in phpinfo even though the configure command did put --with-mysql.
Quote:
Originally Posted by GrapefruiTgirl
I see you have PHP configured to work with MySQL, but have you got MySQL installed/activated in your Apache installation?
Hopefully yes, but if not, make sure you have uncommented the MySQL (and) MySQLi Apache modules, and have set the port (default=3306), and restart Apache to re-read the httpd.conf.
It's been a couple months since I dealt with MySQL config, but I hope this helps a bit.
SV
PS- Check the Apache.org website and MySQL.net for further details.
I don't think my PHP has been configured to work with MySQL because there's no MySQL section in my phpinfo(); I thought Apache has nothing to do with MySQL (at least for this case) ? But I'll check the docs.
Yeah, apache does have 'something' to do with MySQL, more-so perhaps than PHP does. Basically, PHP is the go-between between MySQL and Apache, in the majority of server applications. It will be you or your users accessing the MySQL data, either directly or indirectly. Directly,as an example, is with a website which uses a database; and indirectly is where something behind the scenes, like a user/password database with which the server (Apache) verifies users' identities.
MySQL is like a large extension of the Apache server in these cases.
You need the MySQL modules in the PHP setup, you are correct. But also, MySQL/MySQLi has to be enabled in Apache in order to interact with the database.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.