LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-03-2005, 01:07 PM   #1
yayalasee
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
MySQL and PHP 5


I installed Fedora Core 4 which comes with PHP (I also installed the MySQL package), but I don't know how to configure PHP 5 to include MySQL functions (they are clearly not enabled as I get function undefined error messages). The PHP manual doesn't really help me on this issue.
 
Old 08-03-2005, 03:07 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
If you make a page with

Code:
<?
phpinfo();
?>
, you should see a section with "Configure Command" in it (it's near the top). Look in the grey box, do you see '--with-mysql=/path/to/mysql'? If not, then I think you'll have to rebuild PHP to include support for MySQL (edit: unless you can find an RPM for PHP 5 that's built with it). Unfortunately it isn't enabled by default in PHP 5 (but I guess you've seen this already) . HTH.

Last edited by Nylex; 08-03-2005 at 03:11 PM.
 
  


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
mysql-server4.1 and mod php-mysql conflig kernelvn *BSD 0 06-18-2005 11:52 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
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0 Neha Linux - Software 13 12-29-2003 12:06 AM
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 - Newbie

All times are GMT -5. The time now is 06:19 PM.

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