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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-29-2005, 05:49 PM
|
#1
|
LQ Newbie
Registered: May 2005
Location: san jose, ca
Distribution: fedora 2.4
Posts: 4
Rep:
|
can I use yum to install mysql and php
I'm trying to set up apache / php/ mysql on a dual boot dell latitude {XP and Fedora 2.4} so I can learn about creating data driven websites. This is my first time using linux and I was unable to determine if these things were already installed, which I thought they would be.
I installed apache and it seemed to go fine, but then had problems with mysql and an error saying it couldn't find Perl DBI.
After more reading I used yum for the first time to update just about everything, then tried a yum install mysql and yum install php. There were no errors, but now I don't know how to check if either of these installed, or test them.
Thank you for your time.
|
|
|
05-29-2005, 06:03 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
If apache is up and running try accessing http://localhost/ or 127.0.0.1 It should bring up the default apache page.
Usually Apache webpages are in /var/www/ you can alter them there.
For php try creating a simply php file say store a file called index.php with something like
Code:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
put it into /var/www and try http://localhost/index.php and see if php parses the file.
|
|
|
05-29-2005, 06:18 PM
|
#3
|
LQ Newbie
Registered: May 2005
Location: san jose, ca
Distribution: fedora 2.4
Posts: 4
Original Poster
Rep:
|
Thank you for the reply.
I was able to get to the apache default page, so it looks like that is working. When I put together thet index.php script, I was not able to get that to display through http://localhost/index.php
Any more advice?
|
|
|
05-29-2005, 06:28 PM
|
#4
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
Have you installed the php modules for apache?
|
|
|
05-29-2005, 06:41 PM
|
#5
|
LQ Newbie
Registered: May 2005
Location: san jose, ca
Distribution: fedora 2.4
Posts: 4
Original Poster
Rep:
|
no, I haven't done anything else to apache.
Would that be editing the httpd.conf file? or is there something else as well?
|
|
|
05-29-2005, 06:45 PM
|
#6
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
Yes you may have to add a LoadModule directive, and a IfModule addtype. Its hard to be more specific as distributions setup Apache diffrently plus theres diffrent versions of apache, and of php. Plus you may have some more packages to install.
|
|
|
05-29-2005, 07:15 PM
|
#7
|
LQ Newbie
Registered: May 2005
Location: san jose, ca
Distribution: fedora 2.4
Posts: 4
Original Poster
Rep:
|
understandable.
Can I scrap this and start again? Is there a better way them me sitting here with books and browser windows open wasting the time of somebody half way across the world? It seems that there should be a resaonsalbe way to get this up and running, and that I've done something wrong.
Everything I read gets me about 80% there then says "ok, now that it's working . . ."
With this and the ridiculous time I had getting the ethernet to work {I stopped trying for the wireless long ago}, I've banked a few too many hours. I dont' mind doing the searches or reading the books, but now I don't even know what to search for.
|
|
|
05-29-2005, 07:29 PM
|
#8
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
Your probably very close, its probably either just a missing apache-module, or a slight alteration to your configuration, look in /etc/apache2/ and see what files are available.
On Debian it was simply a command to activate the module a2enmod php theres probably a similar command on fedora.
|
|
|
All times are GMT -5. The time now is 12:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|