LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-27-2005, 02:15 PM   #1
fireman949
Member
 
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:

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



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?


http://www.wallsfiredept.org/post/php.SlackBuild
http://www.wallsfiredept.org/post/apache.SlackBuild
http://www.wallsfiredept.org/post/mysql.SlackBuild
 
Old 02-28-2005, 03:35 AM   #2
camh
Member
 
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, 09:19 AM   #3
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
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 03-01-2005, 12:36 AM   #4
fireman949
Member
 
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.

/Eric
 
  


Reply


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 07:11 PM
apache _ php +mysql rmocius@auste.e Slackware 0 03-02-2004 10:49 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM
Apache+Mysql+php c0c0deuz Linux - Software 0 08-14-2003 03:14 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:28 AM.

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