LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-27-2007, 12:21 PM   #1
jlukensow
Member
 
Registered: Mar 2007
Posts: 33

Rep: Reputation: 15
Red Hat Server 5 / PHP / Mysql Extension


Hello, I am a fairly new to Linux, so please bare with me.

I just installed Red Hat Linux Server, ver 5. I am trying to configure php to use Mysql. I can run a test script, that shows all the info on PHP, so that works. But, my mysql extension is not loaded. I have done some reading, and found out that by default, it is not set up for mysql.

When I uploaded "phymyadmin" and ran it, it said "no extensions to mysql".

How do I go about and allow connections to mysql.

I looked at the php.ini file, under the module settings.
And then I looked at the modules directory, but i cannot find mysql.so anywhere.

Any help would be greatly appreciated.

James
 
Old 03-29-2007, 09:07 PM   #2
moenterprise
Member
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 94

Rep: Reputation: 15
Did you install PHP using a program like yum (or the GUI, pirut)? If you did, just use yum (or pirut) to install mysql and the mysql module for PHP. I'm sure RedHat has yum, so use it. If you do not know how to use yum, there are plenty of tutorials on the web.
 
Old 03-30-2007, 08:00 AM   #3
jlukensow
Member
 
Registered: Mar 2007
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks man for your help, Im a total noooob at this. I found out, that when installing from the CD, you have the option to select php-mysql module under the Mysql DB options, I guess I need to pap better attention to detal. But thanks for you help.

Do you know much about apache server, how to set it up and configure it?
 
Old 03-30-2007, 11:31 PM   #4
moenterprise
Member
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 94

Rep: Reputation: 15
No problem.

Ummmmm....I know how to install modules and do stuff like making virtual hosts, using options, using .htaccess files and some other random stuff. I think my knowledge is between the intermediate level and the expert level. I'm pretty good at this stuff! And yes, I know how to set it up.
 
Old 03-30-2007, 11:47 PM   #5
moenterprise
Member
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 94

Rep: Reputation: 15
Quote:
Originally Posted by jlukensow
Thanks man for your help, Im a total noooob at this. I found out, that when installing from the CD, you have the option to select php-mysql module under the Mysql DB options, I guess I need to pap better attention to detal. But thanks for you help.
The same thing that was on the CD should be on RedHat too. Just run (from the terminal) "pirut" for adding/removing software and run "pup" for updating software!
 
Old 04-01-2007, 10:13 AM   #6
jlukensow
Member
 
Registered: Mar 2007
Posts: 33

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by moenterprise
No problem.

Ummmmm....I know how to install modules and do stuff like making virtual hosts, using options, using .htaccess files and some other random stuff. I think my knowledge is between the intermediate level and the expert level. I'm pretty good at this stuff! And yes, I know how to set it up.
Do you know how to administer apache with the GUI tool that ships with Red hat linux? I've tried using it, but anytime I make a change, then restart apache, i get an error saying it cannot load a module. Then to fix it, all I do is rewrite over the config file with the default, then restart, and then I am back to the beginning. Any ideas to what might be causing this?

Thanks for all your help,

James
 
Old 04-02-2007, 07:25 PM   #7
moenterprise
Member
 
Registered: Mar 2007
Distribution: Fedora Core 6
Posts: 94

Rep: Reputation: 15
When I first started, I tried using the GUI too, but it didn't work for some reason. I checked the RedHat forums and I think they are trying to fix it. Use the httpd.conf file for now
 
  


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
Open source IDE for PHP, MySQL, Apache, Red Hat 9 lothario Red Hat 2 06-02-2010 02:27 AM
How to start php,mysql, appache, after installing Red Hat 9 metoome Slackware - Installation 1 03-06-2004 08:38 AM
How to start PHP, MySQL,Appache on just installed Red Hat ( metoome Slackware - Installation 0 03-05-2004 11:26 PM
Red Hat 9 just installed. how to http+php+mysql makkintosh Linux - Networking 9 11-30-2003 01:20 PM
Red Hat 8 : PHP/MySQL/Apache jefx Linux - Newbie 10 05-28-2003 02:17 PM


All times are GMT -5. The time now is 08:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration