How do i set up a web server
I am running Fedora core 1 - and i need to know how to set up a webserver - I have no idea of where to even start so any ideas (or how to's) would be brill
Thank you Darren |
Hi there flamah!!!
Of all scary things I've ever done with Linux, setting up a Webserver was the easiest, in fact, it works practically out of the box. Search your Redhat CD's for "Apache" and install it. Apache is a webserver, dare I say the most used world-wide? Certainly ;). Once installed, as root, run apache: Code:
apachectl start http://localhost you will see a Welcome screen of Apache saying everything is working. You can substitute localhost for your IP address. That means that anyone with a Webbrowser who types: http://your_ip_address will hit your server and see your page :p. Pretty cool huh?. To change the page that is show at the local host, edit the "index.html" (or place your page) at /var/www/html (this may change slightly from one distribution to another, but it usually is at /var/www). Later, when you have your homepage set up, you will might want to learn about DNS to use some cool addresses instead of your IP. From there on, it's up to you setting up databases, php, and up to where you want it to be :) |
also, since it seems fairly common nowadays for everyone to be behind a router, make sure you have port 80 open and set to redirect to your specific computer if you have more than one. otherwise, you will only be able to see your website when you type in localhost, and no one on the outside who types in your IP will be able to see your website (or you for that matter)
if you don't have a router, ignore my post :) |
well i installed it but i cant start it it says.....
bash: apachectl: command not found Darren |
i see you are running RH9.
try going to your RedHat menu > System Settings > Server Settings > Services Scroll down until you see "httpd" put a little check in the box for it to start when your system boots up, and you should also try hitting the "restart" button to restart the web server services have you rebooted your system since installing apache? might want to give that a try |
im running fedora core 1 - not rh9 but its very similer i think but i will try that anyway
|
hmmmm, assuming that you are root, type:
Code:
apache http://httpd.apache.org/docs/invoking.html good luck! |
ok that worked - thank you :)
|
Quote:
Code:
apachectl Code:
apachetl |
|
thanks np complete! ;)
flamah, I'm getting a time out error :(. Maybe you should follow np complete advices if you are behind a firewall ;) |
after 3 minutes, it still cannot resolve your IP in the browser. I tried running a ping on your IP and was able to get a response. Are you on dial-up? Behind a firewall?
|
ok try now
|
Up and running now ;). Congratulations man!
|
bingo. and loaded quickly too!
congrats! |
All times are GMT -5. The time now is 12:01 AM. |