LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-10-2005, 07:00 AM   #1
StarLion
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
PHP - MySQL link


For some reason, even though i elected to install mysql and PHP at time of install (FC4), PHP was configured with the --without-mysql flag. I've installed php-mysql RPM, but PHP still refuses to forge a mysql database link. Because i wasnt the one doing the installing, i have no idea where PHP (or for that matter, apache or mysql)'s binaries are hiding. Any suggestions on my next move?
 
Old 09-10-2005, 07:17 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

If you have the mysql.so php extension installed then make sure the line is not commented out in php.ini

If you are using php as an apache module then you will need to restart apache for the changes to take effect. Creating a phpinfo script will let you see if the mysql extensions have been loaded.
 
Old 09-10-2005, 07:48 AM   #3
StarLion
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Original Poster
Rep: Reputation: 0
There wasnt a line in php.ini at all... i added 'extension=mysql.so' to the file, saved and rebooted the machine (cant find the apache binaries at all...)

SOMETHING changed on the info page, but i honestly have no clue what, because i was watching the --without-mysql flag. That flag is still there.
 
Old 09-10-2005, 09:03 AM   #4
StarLion
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Ok... a curiousity.

PHP's Info (phpinfo() page shows --without-mysql . What i'm getting confused by now is:

I can declare a mysql_connect statement and actually get a Resource Id back, but whenever i try to reference something from it, the page dies. Doesnt throw an error, doesnt skip the instruction and continue with no data, it just *dies*, stopping all html output.
 
Old 09-10-2005, 11:05 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Check your error_log for errors.

php can be compiled without mysql but have mysql loaded as a module.
 
  


Reply



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 & MYSQL => session object using db link resource ldp Programming 2 03-19-2005 02:38 AM
Updating MySQL DB when a link is clicked with PHP Erik Thorsson Programming 2 12-03-2004 07:35 AM
Problem getting PHP to recognize MySQL, Using PHP 4.0 and MySQL 4.0.20 d2army Programming 4 06-27-2004 08:54 PM
php4 mysql, installation, php-pages with mysql info stay empty dnla Linux - Software 2 03-14-2004 02:54 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM

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

All times are GMT -5. The time now is 09:53 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
Open Source Consulting | Domain Registration