LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-05-2005, 02:35 AM   #1
rookiepaul
Member
 
Registered: Jul 2005
Posts: 73

Rep: Reputation: 15
Setting up a small webserver, someone please help


Hi,

I'm relatively new to Linux (have used Red Hat and Fedora). I want to set up an installation of Fedora Core 3 as a small webserver for a personal website. I have installed Fedora Core 3. I just really get confused when installing Apache, PHP and MYSQL. I'm finding command line a bit of a mission. I really want to get this working, as I don't want to use Windows for a webserver. I get confused with whether I should be installing stuff into the root user or other user directory, and other silly stuff like that. Could someone point me in the direction of a really simple guide or possible a tutorial? Would be much appreciated.

Thanks

Rookie
 
Old 07-05-2005, 04:18 AM   #2
mperkins
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
I'm relatively new to Linux myself, so I'm probalby not the best source, but I've found linux.org's courses (both the basic and intermediate ones) to be extremely helpful. The intermediate course has a section on setting up a webserver, though it deals more with configuration issues once you've installed Apache 1.3, not how to acutally install it.

Since I run Debian, I can't help you much on the install portion (in Debian it was as easy as "apt-get install apache...").

Hope this helps at least some.
 
Old 07-05-2005, 10:10 AM   #3
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
A quick Google found this
http://www.mkaz.com/reference/php/setup_linux.html
which seems pretty straightforward. Although compiling from scratch
rather than using the RPM's, there are a lot of useful links at the
bottom of the page through to MySQL + PHP.
As a tip, I'd also look at installing phpmyadmin, there should be an RPM
for Fedora, as this allows you to control all your MySQL stuff from a
webpage - much easier than trying to do it from a command line! Apache +
PHP should simply install straight from the RPM's or source without the
need for any configuration to start off with.
 
Old 07-05-2005, 10:41 AM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
The basic procedure is to install Apache, PHP and MySQL. Modify your httpd.conf file to include modules for php. The file is very well commented so reading it would help you a lot. YUM would be an excellent tool to install all the three apps you need.

Next step is to test your PHP installation.

Open up a text editor (gedit or anyone you like) and put the following code...save and put the page in the document root folder of your webserver. The extension of the page has to be .php

Code:
<?php
phpinfo();
?>
Open up your browser and point it to the .php file you just saved. You would see a php configuration page and whole host of information.

Go ahead and install mysql. Open up the php page again and half way on the page you might see a section for mysql. If you see that section...it means you have php with mysql API.

Next step would be to actually create test databases that come with mysql and start the mysql service.

so you use phpMyAdmin to administer mysql using a web-based interface.

Hope that helps,
Tux,
 
Old 07-05-2005, 10:58 AM   #5
gizza23
Member
 
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

Rep: Reputation: 31
I currently use this site. I've just started my own website project and have learned much from here. The main page is a big confusing because you have to scroll so far down before you get to the links for the chapters but you have a HOWTO here that works. Check it out at http://www.linuxhomenetworking.com/ .
Good Luck!

--Zulu
 
  


Reply



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
Looking for advice about setting up a small, lightweight webserver jesseoneill Linux - General 1 03-01-2005 09:36 PM
setting up a webserver airmijo Linux - Newbie 6 11-15-2004 08:37 AM
Setting up a webserver fleeced Linux - General 1 09-04-2004 11:24 AM
Setting webserver enzolabrador Linux - Networking 1 08-26-2004 03:35 PM
Setting up a Webserver LinuxLala Linux - Networking 10 02-09-2004 09:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration