Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 05-07-2003, 10:03 PM   #1
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,285
Question PHP & linux

Does Mandrake 9.1 or Red Hat 8 come with PHP? If not, where can I get it?

[edit]: Also, what about MySQL? Does that come installed or do I have do download it?
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.

Last edited by Force Flow; 05-07-2003 at 10:41 PM.
Force Flow is offline   Reply With Quote
Old 05-07-2003, 11:27 PM   #2
Member (11 bit)
 
Join Date: Apr 2003
Posts: 1,505
I beleive both are on the installation CDs.
kilgoretrout is offline   Reply With Quote
Old 05-08-2003, 12:56 PM   #3
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,285
How would I check to see if they were installed?
Can they be installed after the O/S has been installed?
Force Flow is offline   Reply With Quote
Old 05-08-2003, 01:43 PM   #4
Member (11 bit)
 
Join Date: Apr 2003
Posts: 1,505
To see if packages are installed you can run the following from the command line:

# rpm -qa | grep mysql

or

# rpm -qa | grep php

In Mandrake, go to Mandrake Control Center(mcc)>Software Management. If you want to find out what's installed ticking the remove software button will will bring up an interface where you can search for installed packages, eg type php or mysql in the search field. If you want to install php or mysql packages, tick on the install packages button and again type mysql or php in the search field. I just did this for mysql and see a lot of packages including MySQL 4.0. I also see a lot of packages for php. Not that familiar with either one so I can't offer a lot of advice. When you select a package a description appears on the right for the highlighted package. If you see a package you want to install check it and tick the install button. Frequently, a window will pop up and inform you that other packages have to be installed with the one selected and ask you for permission to install the additional packages. Say yes and you will be prompted to insert the appropriate install CD(s). It's really pretty simple in Mandrake. Quick tip: if you want to launch mcc and are having trouble finding it, open a console and as root run:

# mcc

It will fire right up. Newbies often get confused between KDE Control Center and mcc.

Red Hat has a less sophisticated gui software management tool which I beleive brings up a screen that looks like the package selection screen during the install. Haven't used it in a long time and I don't recall what kind of search functions it has. I beleive you'll find pretty much the same type of packages available on both red hat and mandrake.

Once you install the packages you want you might want to check out the Linux Documentation Project for how tos:

http://www.tldp.org/

Just type in mysql or php in the search field. It looks like they have a lot of good info on both. Good Luck.

Last edited by kilgoretrout; 05-08-2003 at 01:55 PM.
kilgoretrout is offline   Reply With Quote
Old 05-08-2003, 06:47 PM   #5
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,285
Great! I'll give it a try. Thanks, kilgoretrout!

Last edited by Force Flow; 05-08-2003 at 06:50 PM.
Force Flow is offline   Reply With Quote
Old 05-08-2003, 09:10 PM   #6
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,285
Hmm... I think I installed them, but I'm not sure. A PHP installation file I'm trying to run isn't working.

I read in the manal for this installation file (which is a web forum, btw) that the default directory that PHP is located in is user/local/bin/php, but there's nothing in the bin folder. Huh?
Force Flow is offline   Reply With Quote
Old 05-09-2003, 11:59 AM   #7
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
To see if php is running, type php -v at the command line. This will tell you if it is running and what version. You will then need to make sure that the apache php module is activated. Here is how to compile apache with the new module.

It doesn't matter about the default directory. The only thing that you have to worry about is where the php.ini file is. Usually in /usr/local/lib.
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:41 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0