LinuxQuestions.org
Help answer threads with 0 replies.
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 07-12-2003, 02:11 PM   #1
Blaz
LQ Newbie
 
Registered: Jul 2003
Location: Slovenia
Distribution: RH9
Posts: 6

Rep: Reputation: 0
mySql in PHP 4.2.2


Hello!

I am useing RH8 and runing Apache on it. I have installed it with PHP 4.2.2 and mySql support. But when i want to conect to the mySql database in PHP, I get an error:

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/db.php on line 6

I tried also with mysql_pconect() but did not worked.
Both Apache and mySql are runing on the sistem.

A am also new to the Linux and I want to know if I have to edit any of the configuration files. And where are located.

Thank you for your help.

Best, Blaz
 
Old 07-12-2003, 02:13 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Did you install via rpms? if so you will need to install the "php-mysql" package as well as php and mysql.
 
Old 07-12-2003, 02:17 PM   #3
Blaz
LQ Newbie
 
Registered: Jul 2003
Location: Slovenia
Distribution: RH9
Posts: 6

Original Poster
Rep: Reputation: 0
I select all php and mysql packages during the installation of RH8.

Blaz
 
Old 07-12-2003, 02:35 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
What output do you get when you run:
rpm -qa | grep php
 
Old 07-13-2003, 10:41 AM   #5
Blaz
LQ Newbie
 
Registered: Jul 2003
Location: Slovenia
Distribution: RH9
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you david_ross, you were right. I have to manualy install php-mysql package. I did not know that.
Now it all works .
 
  


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


All times are GMT -5. The time now is 01:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration