Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-09-2007, 04:59 AM
|
#1
|
|
LQ Newbie
Registered: Feb 2007
Posts: 20
Rep:
|
MySQL Extension for PHP4
Hello everyone..
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).
Configure commands from phpinfo
Quote:
|
./configure' '--prefix=/usr' '--disable-static' '--with-apxs=/usr/sbin/apxs' '--enable-discard-path' '--sysconfdir=/etc' '--with-config-file-path=/etc/apache' '--enable-safe-mode' '--with-openssl' '--with-ldap' '--with-mhash' '--enable-bcmath' '--with-bz2' '--with-pic' '--enable-calendar' '--enable-ctype' '--with-gdbm' '--with-db4' '--with-imap-ssl=/usr/local/lib/c-client' '--with-imap=/usr/local/lib/c-client' '--enable-dbase' '--enable-ftp' '--with-iconv' '--with-dom' '--with-exif' '--enable-exif' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png' '--with-ttf' '--with-freetype-dir=/usr' '--with-gmp' '--enable-mbstring' '--with-curl=/usr' '--with-pcre-regex=/usr' '--with-mysql=shared,/usr' '--with-gettext=shared,/usr' '--with-expat-dir=/usr' '--with-xml' '--enable-wddx' '--with-mm=/usr' '--enable-trans-sid' '--enable-shmop' '--enable-sockets' '--with-regex=php' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp' '--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared' '--disable-debug' '--with-zlib=/usr'
|
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 ?
|
|
|
|
02-09-2007, 07:26 AM
|
#2
|
|
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,750
|
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?
|
|
|
|
02-09-2007, 08:25 AM
|
#3
|
|
Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
|
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.
|
|
|
|
02-09-2007, 08:35 AM
|
#4
|
|
LQ Newbie
Registered: Feb 2007
Posts: 20
Original Poster
Rep:
|
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.
Last edited by Aurorius; 02-09-2007 at 08:39 AM.
|
|
|
|
02-09-2007, 12:48 PM
|
#5
|
|
Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:54 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|