Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-27-2005, 01:15 PM   #1
Registered: Dec 2003
Location: Walls
Distribution: Slackware 10.1;CentOS 4
Posts: 51

Rep: Reputation: 15
Apache, MySql, PHP work on 10.0 but not 10.1

I have 2 Slackware servers (dev and production) running Slack 10.0. I built my own packages for apache2, MySql 4.1, and php5 using the *.SlackBuild scripts with minor modifications for apache2 and mysql and the php.SlackBuild is from the 2nd CD.

Everything works correctly on those boxes.

I just setup a 3rd Slackware server running Slack 10.1. I compiled the three packages on that box (as I think some things with GCC have changed), and I also loaded a fresh 10.1 install on my laptop. Both machines experience the same problem.

Everything works except php with mysql. I loaded phpmyadmin on both boxes and now I get this message when trying to view phpmyadmin:

cannot load mysql extension,
please check PHP Configuration
Running php from the command line on my laptop returns :
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/' - cannot open shared object file: No such file or directory in Unknown on line 0 is in /usr/lib/php/extensions and "locate" returns:

Running php from command on the new server doesn't return any errors but still the same message when trying to view phpmyadmin

Since this appears to be broken on the two 10.1 boxes and works on the 10.0 boxes, I assume there is something I've missed with the change to 10.1.

What am I missing?
Old 02-28-2005, 02:35 AM   #2
Registered: Feb 2005
Distribution: Slack/Debian
Posts: 163
Blog Entries: 2

Rep: Reputation: 33
a quick fix might be to try adding /usr/lib/mysql to your path
Old 02-28-2005, 08:19 AM   #3
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
I'm not sure if that'll work, cam... it's worth trying, though.

I'd be tempted to download the latest php source and reinstall php directly, though. if you run "nmap localhost", what ports show open? If it shows mysql as open, you know mysql is running properly, and probably just have to reinstall php.
Old 02-28-2005, 11:36 PM   #4
Registered: Dec 2003
Location: Walls
Distribution: Slackware 10.1;CentOS 4
Posts: 51

Original Poster
Rep: Reputation: 15
I'm sorry I fogot to clairfy. I can run "mysql -uroot -p" and use everybodys favorite the mysql command line. MySql works, php and apache2 work ( used phpinfo() for this). I'll do some more messing around and possibly reinstall php, but I don't see that being a fix.

I did the following on both boxes:

compile -> package apache2
install apache2

compile -> package mysql
install mysql

compile -> package php5
install php5

I'll report back with what I find. Any more suggestions?

Thank you for your replies.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
downloaded apache +RH mysql + RH php would it work? Red Squirrel Linux - Software 1 03-07-2004 06:11 PM
apache _ php +mysql rmocius@auste.e Slackware 0 03-02-2004 09:49 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
Apache+Mysql+php c0c0deuz Linux - Software 0 08-14-2003 02:14 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration