LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 05-29-2005, 06:49 PM   #1
rscott
LQ Newbie
 
Registered: May 2005
Location: san jose, ca
Distribution: fedora 2.4
Posts: 4

Rep: Reputation: 0
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.
 
Old 05-29-2005, 07:03 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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.
 
Old 05-29-2005, 07:18 PM   #3
rscott
LQ Newbie
 
Registered: May 2005
Location: san jose, ca
Distribution: fedora 2.4
Posts: 4

Original Poster
Rep: Reputation: 0
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?
 
Old 05-29-2005, 07:28 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Have you installed the php modules for apache?
 
Old 05-29-2005, 07:41 PM   #5
rscott
LQ Newbie
 
Registered: May 2005
Location: san jose, ca
Distribution: fedora 2.4
Posts: 4

Original Poster
Rep: Reputation: 0
no, I haven't done anything else to apache.

Would that be editing the httpd.conf file? or is there something else as well?
 
Old 05-29-2005, 07:45 PM   #6
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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.
 
Old 05-29-2005, 08:15 PM   #7
rscott
LQ Newbie
 
Registered: May 2005
Location: san jose, ca
Distribution: fedora 2.4
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 05-29-2005, 08:29 PM   #8
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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.
 
  


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
What to type in apt-get install to install mysql PHP libraries sarajevo Debian 1 09-29-2005 06:40 AM
How do I tell yum/apt/rpm that I have hand built and installed apache/mysql/php BigDave Linux - Software 1 04-14-2005 03:51 PM
MySQL 4 on Fedora can't install php-mysql kennyg Linux - Software 8 09-21-2004 07:54 PM
PHP install --with-mysql zaichik Linux - Newbie 18 05-26-2004 05:53 PM
How to install php and mysql supersunny Linux - Software 1 09-04-2001 11:28 AM


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