LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-23-2004, 04:10 PM   #1
Linix
LQ Newbie
 
Registered: Aug 2003
Location: Wisconsin
Posts: 8

Rep: Reputation: 0
PHP does not show mysql as an extension


I configured php with my sql option. But when i go to my phpinfo page there is no mention of mysql. Any ideas on what could be wrong?
 
Old 01-24-2004, 11:30 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
During the configure process did it detect mysql ok?
 
Old 01-26-2004, 09:50 AM   #3
Linix
LQ Newbie
 
Registered: Aug 2003
Location: Wisconsin
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by david_ross
During the configure process did it detect mysql ok?
This is what I get when I do ./configure --MySQL....

checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... (cached) yes
checking for MySQLi support... no
 
Old 01-26-2004, 01:05 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Did you restart apache?

Are you using the module you just compiled or is it perhaps an old one that apache is using?
 
Old 01-26-2004, 02:37 PM   #5
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
do you have mod_php with apache. i found that is best to recompile everything in this order (even if you had some stuff installed before):
MySQL
PHP
Apache & Mod_php (<-- important)
Then restart all services (as in mysql and apache, php does not now what restart is ) and you SHOULD be good. Oh, do not forget mysql options when compiling php.
 
Old 01-30-2004, 03:50 PM   #6
Linix
LQ Newbie
 
Registered: Aug 2003
Location: Wisconsin
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by david_ross
Did you restart apache?

Are you using the module you just compiled or is it perhaps an old one that apache is using?
yes I did restart apache. Well I didn't compile any modules.. I only configured PHP with MySQL
 
Old 01-30-2004, 03:51 PM   #7
Linix
LQ Newbie
 
Registered: Aug 2003
Location: Wisconsin
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Mikhail_16
do you have mod_php with apache. i found that is best to recompile everything in this order (even if you had some stuff installed before):
MySQL
PHP
Apache & Mod_php (<-- important)
Then restart all services (as in mysql and apache, php does not now what restart is ) and you SHOULD be good. Oh, do not forget mysql options when compiling php.
How do I compile mod_php?
 
Old 01-31-2004, 09:13 AM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
There is a good LAMPs tutorial here:
http://lamps.efactory.de/e-index.shtml
 
  


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
php extension for postgresql xrado Slackware 3 12-06-2005 09:31 AM
php cannot load mysql extension no_names_left Linux - Software 4 03-02-2005 07:31 PM
PHP difference between --without-mysql and extension=mysql.so progressdll Linux - Software 0 10-14-2004 07:44 AM
Mysql Php Extension SilentK Linux - Newbie 11 06-11-2004 08:47 AM
Build PHP extension. ugenn Linux - Software 1 11-05-2003 05:34 AM


All times are GMT -5. The time now is 07:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration