LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-01-2005, 09:29 AM   #1
randyesq
LQ Newbie
 
Registered: Oct 2005
Distribution: Ubuntu, CentOS, Fedora
Posts: 1

Rep: Reputation: 0
PHP and Mysql


Hey Everyone,

I have two boxes that that are both running Hoary, one at home and another at work. I was testing drupal (www dot drupal dot org) on my box at home to see how the web interface looked and set up apache2, php4, php4-mysql, mysql, and a few others through apt. Everything works great.

So, I went to do the same with my server at work and when I get the famed:
Fatal error: Call to undefined function: mysql_connect() when loading up the first web page.

I looked at the output from phpinfo() on both machines and noticed that php (PHP Version 4.3.10-10ubuntu4.1) was not compiled with mysql (config option --without-mysql).

However, my box at home has a section that says that mysql is enabled and a table listing the various directives whereas the machine at work does not. So far I can tell no difference in the install packages and in php.ini.

Does anyone have any ideas that can help me get php4 to recognize mysql? Where should I start looking?

Thanks,
randyesq
 
Old 10-01-2005, 09:37 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Make sure that you have an option in php.ini saying "extension=mysql.so". If that is there then it just sounds like you haven't restarted apache.
 
  


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 - Distributions > Ubuntu

All times are GMT -5. The time now is 06:29 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