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:
|
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 |
How do i start the webserver?
|
Re: Webserver Use
Quote:
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. |