LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-10-2006, 01:23 AM   #1
lovalixir
LQ Newbie
 
Registered: Apr 2004
Location: Singapore
Posts: 15

Rep: Reputation: 0
PHP 5 and MySQL on Fedora 5


Hi,

I installed Fedora 5 and it comes together with PHP 5 and MySQL. From what I've read on the www.php.net I understand that PHP 5 doesn't come preloaded with mysql functions and libraries. Now when I run PHP 5 on Apache, it doesn't recognize all the mysql functions that I've written. How can I make the PHP5 recognize mysql functions?

Regards,

Leo
 
Old 08-10-2006, 01:31 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You need to install a package called php-mysql (or something similar).
 
Old 08-10-2006, 01:34 AM   #3
lovalixir
LQ Newbie
 
Registered: Apr 2004
Location: Singapore
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by reddazz
You need to install a package called php-mysql (or something similar).
php-mysql package? How do I install that? Is it come together with Fedora Core 5? I am kinda newbie to fedora core 5 actually. Mind telling me a bit more detail?
 
Old 08-10-2006, 01:45 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Quote:
Originally Posted by lovalixir
php-mysql package? How do I install that? Is it come together with Fedora Core 5? I am kinda newbie to fedora core 5 actually. Mind telling me a bit more detail?
Yes its shipped as part of Fedora Core. If your system is connected to the internet, just switch to root by entering the "su -" command in the command line and then enter "yum install php-mysql". If you use a GUI like yumex for package management, search for php-mysql and select it for installation.
 
Old 08-10-2006, 01:46 AM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,563

Rep: Reputation: 140Reputation: 140
in case of doubt you can find a lot at rpmfind.net for fedora:

http://rpmfind.net/linux/rpm2html/se...&system=fedora

if the link doesnt work enter php-mysql in the search form. there are rpms available anyway...

cheers, j.

Last edited by j-ray; 08-10-2006 at 01:48 AM.
 
Old 08-10-2006, 01:52 AM   #6
lovalixir
LQ Newbie
 
Registered: Apr 2004
Location: Singapore
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by j-ray
in case of doubt you can find a lot at rpmfind.net for fedora:

http://rpmfind.net/linux/rpm2html/se...&system=fedora

if the link doesnt work enter php-mysql in the search form. there are rpms available anyway...

cheers, j.
Thanks alot J. I will give a try!!!
 
Old 08-10-2006, 02:12 AM   #7
lovalixir
LQ Newbie
 
Registered: Apr 2004
Location: Singapore
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lovalixir
Thanks alot J. I will give a try!!!
I tried just now. Sadly can't install RPMs
 
Old 08-10-2006, 02:36 AM   #8
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Rep: Reputation: 42
You will need root access to install RPMs . . .
 
Old 08-10-2006, 02:39 AM   #9
lovalixir
LQ Newbie
 
Registered: Apr 2004
Location: Singapore
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rhoekstra
You will need root access to install RPMs . . .
I am installing as root.
 
Old 08-11-2006, 03:53 AM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
How about just using yum like I described above?
 
Old 08-11-2006, 04:07 AM   #11
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 372

Rep: Reputation: 42
If you can't install rpms, will yum help out? Try that and report whether that works.. if not, could you report the errors / issues arising when you try to install? Then perhaps we can get through this together . . .
 
Old 08-11-2006, 04:28 AM   #12
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Quote:
Originally Posted by rhoekstra
If you can't install rpms, will yum help out? Try that and report whether that works.. if not, could you report the errors / issues arising when you try to install? Then perhaps we can get through this together . . .
The optimal method for installing software should be via a package manager such as yum because this fetches the right packages from the official Fedora Core repos and automates the process of installing dependencies. Installing rpms manually should be kind of a last resort and if the package has many dependencies this can lead to many headaches. This is why I tend to avoid suggesting to people that they should download packages from sites like pbone or rpmfind.
 
  


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
php and mysql on fedora core 5 tjgadu Linux - Software 1 07-09-2006 06:54 PM
PHP 5 wont connect to MySql (fedora spacy2003 Linux - Software 0 02-07-2005 09:31 AM
php 438 and mysql 41 fedora 2 wont talk phoebebright Linux - Software 0 11-02-2004 04:49 PM
MySQL 4 on Fedora can't install php-mysql kennyg Linux - Software 8 09-21-2004 07:54 PM
PHP is not talking to Mysql in Fedora mahugl Linux - Software 4 02-03-2004 04:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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