LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Webserver Use (https://www.linuxquestions.org/questions/linux-newbie-8/webserver-use-269567/)

dudeguy9001 12-23-2004 09:19 AM

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.:Pengy:

nixcraft 12-23-2004 09:41 AM

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

dudeguy9001 12-23-2004 09:45 AM

How do i start the webserver?

ksgill 12-23-2004 10:12 AM

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


All times are GMT -5. The time now is 10:46 PM.