LinuxQuestions.org
Review your favorite Linux distribution.
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 12-23-2004, 10:19 AM   #1
dudeguy9001
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat 9
Posts: 11

Rep: Reputation: 0
Webserver Use


I'm having trouble finding and using a webserver on my Linux computer. I have Red Hat 9 which comes with PHP, Apache, and I think MySQL. Anyway, my goal is to run a local server for testing all my "lovely" PHP scripts before uploading to my website. I have dial-up, so uploading things to my website, just for testing is a real hassle, and someone else runs my internet webserver. I guess my question is, where do I save scripts (PHP) to work, and how do I access MySQL. I'm very new to the use of PHP, Apache, and MySQL, and seriously, I don't really know anything about setting this stuff up. But I guess that's why I'm here... to learn. Thanks.
 
Old 12-23-2004, 10:41 AM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Put php/html pages in /var/www/html/.

OR get dir via
grep DocumentRoot /etc/httpd/httpd.conf
OR
grep DocumentRoot /etc/httpd/conf/httpd.conf

Start webserver (if not running)
service httpd start
service mysqld start

To see your site from linux GUI itself:
http://localhost/
OR
http://Linux-IP/

Hope this helps
 
Old 12-23-2004, 10:45 AM   #3
dudeguy9001
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat 9
Posts: 11

Original Poster
Rep: Reputation: 0
How do i start the webserver?
 
Old 12-23-2004, 11:12 AM   #4
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Re: Webserver Use

Quote:
Originally posted by dudeguy9001
I have dial-up, so uploading things to my website, just for testing is a real hassle, and someone else runs my internet webserver.
Someone else is hosting his website. You dont have to worrry about starting the webserver. He means that if you want to test it on your local machine, you can install an http server (if not already installed) and test your scripts.

http://www.redhat.com/docs/manuals/l.../ch-httpd.html

This link shows you how to setup your server on redhat.. hope it helps.

Good Luck
 
  


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
My own webserver... TazG Linux - Networking 7 05-30-2007 08:00 AM
Webserver, what else do I need? dude4you Linux - Newbie 3 02-17-2004 06:41 AM
help for webserver sanjibgupta Linux - Newbie 2 11-28-2003 09:39 AM
Can't see WebServer from outside... Can see WebServer locally as http://localhost friddick Linux - Networking 13 08-19-2003 07:27 PM
what to do with my webserver acid2000 General 6 04-24-2003 09:38 PM


All times are GMT -5. The time now is 08:39 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration