Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP & MySQL don't want to talk to each other

Status
Not open for further replies.

jezebel

MIS
Feb 6, 2001
4
US
I'm really new to Linux, so please bear with me. Also, the search function is down, so I'm hoping I'm not repeating a question that's already been answered.

I've just installed RedHat 6.2 on my machine. PHP's up, Apache's up, MySQL's up. I've uncommented the extension=mysql.so line from php3.ini. No dice. So I found the RPM file and read the notes, which say to uncomment a line in the RPM in order to get PHP to install with mysql capacity. But I can't find any info on how to do such a thing. Am I going the right direction with the RPM, or am I limited to downloading the tar ball and muddling through in the great hopes of not screwing anything up?
 
It's not that hard to do with a tar ball, and there's a command line switch when you run ./configure that will tell it to include mysql support. I'd give that a shot, rather than mucking with the tar ball. It's a pretty simple install, just read the README file to get the apache and mysql switches right. As always, I hope that helped!

Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 
Actually,

I have never found an RPM that turned on all the features required to do full PHP3, Mysql and Apache. The only way I know to how to do it is by using the source. In doing this you also get the benefit of turning on many features of your web server including SSL, Front Page extensions for you non-Techie Types etc. From my understanding Apache that comes native with Linux does not have full mysql/php support. If I remember correctly the database backend functions were turned off the php library that comes with the 3.12 release of Apache in 6.2.

has an excellent guide on installing. There's satisfaction in setting up your own custom server so take a shot. If your new to Linux you will be here sooner or later so you might as well do it on something fun.
 
Thanks! I'll give that a whirl. I may be back - I'm prone to making things go wrong that should never fail. It's a talent.

-j
 
jezebel,

Do a little homework, then go for it.

Where ever you see a configure script such as Apache, and PHP you can type

./configure --help to get a full list of the configure options. Don't get crazy at first.

war..
 
Thanks for the encouragement. After several hours of swearing followed by 15 minutes of my being calm, I managed to find that one little line that wasn't on the initial Installation guide page from PHP.net

--with-mysql=[DIR]

Oops. Days of beating my head against the wall for naught. At least I'll know quite well how to do this next time!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top