LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-29-2007, 06:26 AM   #1
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Rep: Reputation: 17
lamp setup question about php extension for mysql


Hi,

I've downloaded all the lastest release of each

apache2, mysql, and php

and configured-them properly,(i think...sigh*)

and installed.

They all work fine seperately,

but when I tried to look and phpinfo()

it doens't show me the mysql setup configureation even though
I've configured php with

--with-mysql-dir=/usr/local/mysql

What I've done so far is I've compiled apache2 first

and then mysql

and then php.

I heard that php does not include mysql extension by default but
I read something before it said the extension should be installed when i put that --with-mysql-dir

Can someone let me know what' I've done wrong?

Cheers
 
Old 03-29-2007, 10:40 AM   #2
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
In your php.ini file do you see a line that says:
extension=php_mysql.dll

If there is a semicolon in front of it that means it is commented out.

If it isn't there at all maybe you could try adding it.
 
Old 03-29-2007, 07:42 PM   #3
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Original Poster
Rep: Reputation: 17
Errr... I thought that was just for Windows. I am currently using FC6
correct me if not.

Thanks for the reply.

Cheers
 
Old 03-29-2007, 08:06 PM   #4
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
OOPS!! Sorry, I wasn't thinking. I had wamp installed on my work laptop and didn't even consider the windows/linux diff.

Anyway, here's a thread that may help you out...
http://www.phpbuilder.com/board/show...php?t=10302059
 
Old 03-29-2007, 09:08 PM   #5
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Also, I was curious if there was a reason you were compiling them from source instead of installing the pre-built RPMs.
 
Old 03-29-2007, 09:32 PM   #6
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Original Poster
Rep: Reputation: 17
Thanks for the speedy reply.

It's because I am going to do lamp setup on a different machine that is not mine for the company and I do not know which linux we are going to put on.

So I should know the distro-independent setup for the time being, since they might put something that's non-popular.

Cheers
 
Old 03-29-2007, 10:20 PM   #7
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Original Poster
Rep: Reputation: 17
Hmm. Looks like this thread is about problems when you do configure.

I have no problems with configuration itself(now, that is. I had problem before because I did not know that the option for the configuration is --with-mysql-dir not --with-mysql).

The problem I am having is that I cannot call any mysql functions and I don't see the configuration of mysql on the phpinfo() even though I did put --with-mysql-dir.(In other words, I cannot connect to db with php script)

I did see mysqlclient.so or something while I was doing configuration of php.

I am currently at work so I can't try to reconfigure php at the moment(FC6 is on my laptop), but I'll let you know once I get home and try as shown on the link.

Cheers

Last edited by rlee923; 03-29-2007 at 10:24 PM.
 
Old 04-01-2007, 11:13 PM   #8
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Original Poster
Rep: Reputation: 17
This problem is resolved by setting the path on the include section of php.ini
 
  


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
no LAMP subdivision in LQ (LInux,Apache,PHP,MYSQL) sailu_mvn LQ Suggestions & Feedback 2 02-28-2007 08:55 AM
connecting PHP to MySQL in a LAMP server rickyglucas_143 Linux - Newbie 2 02-06-2006 04:02 AM
LAMP(Linux,Apache,MySql,PHP) and other info hamtavs General 1 01-25-2005 03:54 AM
PHP difference between --without-mysql and extension=mysql.so progressdll Linux - Software 0 10-14-2004 07:44 AM
LAMP(Linux, Apache, MySQL, PHP) Problem gamehack Slackware 7 08-17-2004 02:52 PM


All times are GMT -5. The time now is 09:06 AM.

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