LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-03-2004, 08:21 PM   #1
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Rep: Reputation: 30
php, mysql, apache not working together like expected


I've downloaded and installed apache, php and mysql via apt.

apache works with php and mysql works.

mysql, however, does not work with php.

Whenever I try and use one of the mysql functions I get something like this:
Code:
Call to undefined function: mysql_connect() in...
Do I need to tweak something? I thought it would simply work since no configuration was required for php to work...

Thanks
 
Old 09-04-2004, 12:07 PM   #2
atheist
Member
 
Registered: Sep 2003
Location: Iceland
Distribution: Debian Lenny - Kernel 2.6.22.8
Posts: 331

Original Poster
Rep: Reputation: 30
Fixed, after reviewing for the third time or so which packages I had installed I tried installing... uhh, I can't remember it's name, and it worked.
 
Old 09-06-2004, 11:48 AM   #3
ivancho_b
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Yeah, you need php module for myslq!
When you compile php from source it is with ./configure --with-mysql ...
But that's debian and you need only from php4-myslq deb packet (if you use php4!)
so just type:
apt-get install php4-mysql
...
 
  


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
Setting Up LAMP: Getting Linux, Apache, MySQL, and PHP Working Together rhythmking Slackware 2 06-08-2005 04:05 AM
Apache not working after installing mysql and php alaateb Linux - Networking 6 04-22-2005 09:24 AM
[9.1 pro] Apache, MySQL & PHP ... not working! Dannyarr SUSE / openSUSE 5 10-17-2004 02:42 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
PHP not working with Apache, nor mysql wldkos Linux - Software 18 05-16-2003 12:23 PM

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

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