LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-14-2004, 08:27 PM   #1
runeleader
LQ Newbie
 
Registered: Nov 2004
Posts: 19

Rep: Reputation: 0
http server big help


ok, i have thought and i want to install a webserver.
i have fedora linux, with that http thing.
I ve read so many things on how to make on but it doesnt work
can anyone tell me how to set a webserver up, and im using shaw as my isp and a linksys router.
I have no clue what to put in the configurations or how to start it.
and will the adress like www DOT domain DOT com be free if im hosting it. i have a dynamic ip.
please help
 
Old 11-14-2004, 08:43 PM   #2
deviance99
Member
 
Registered: Jun 2004
Location: Mount Pleasant, MI
Posts: 41

Rep: Reputation: 16
First, make sure that you have the httpd deamon running. Second, make sure you can access http://localhost. If you can, next you need to setup port forwarding to the router. You also want to assign your linux box a static IP within your routers range. This can be done via the network tool under gnome, under system tools I think. You will want to change the IP to 192.168.1.51, subnet mask 255.255.255.0, and gateway 192.168.1.1. After assigning this, make sure you restart your ehternet connection. (If all else fails, reboot)

Port forwarding:

Go to your routers administration panel (default for linksys: http://192.168.1.1 uname:<nothing> pass:admin) . Go to port forwarding, and forward port 80 to 192.168.1.51. You should know use your IP addy from your ISP to access your webserver. However, your ISP MAY block port 80, so you may have to use another. This would require changing the forwarded port on your router, AND changing your httpd.conf file fo apache. There will be an option to change the port, change it from 80 to another port (I use 82). After you access it from your IP address, next you need to assign your domain name to your IP.


Setting it up with your www.domain.com name.

FIRST, you need to take your ip address and register it with a DDNS (Dynamic Domain name server) with your www.domain.com name. I recommend www.zoneedit.com. Then, with this, you may need to wait a day or two before you can access it. But the DDNS kind of forwards requests to your name to your IP. Then, your router will forward the requests to your linux webserver. Also, each time your get a new IP address from your ISP, you need to update it with zonedit.com.

Last edited by deviance99; 11-14-2004 at 08:45 PM.
 
Old 11-15-2004, 09:37 AM   #3
runeleader
LQ Newbie
 
Registered: Nov 2004
Posts: 19

Original Poster
Rep: Reputation: 0
?

i cant get the httpd deamon to run it shows an error, do i have to update it. and does the dns cost for a name to my ip or can i host my own dns server.
 
Old 11-15-2004, 09:48 AM   #4
runeleader
LQ Newbie
 
Registered: Nov 2004
Posts: 19

Original Poster
Rep: Reputation: 0
look

this is what i get

Starting httpd: Syntax error on line 303 of /etc/httpd/conf/httpd.conf:
ServerName takes one argument, The hostname and port of the server
[FAILED]
 
Old 11-15-2004, 05:21 PM   #5
deviance99
Member
 
Registered: Jun 2004
Location: Mount Pleasant, MI
Posts: 41

Rep: Reputation: 16
What does line 303 of your httpd.conf file look like?

Also, try to go to /etc/init.d/
then type: ./httpd start
or type, httpd -k start.
 
Old 11-15-2004, 06:55 PM   #6
runeleader
LQ Newbie
 
Registered: Nov 2004
Posts: 19

Original Poster
Rep: Reputation: 0
ok

i got it to run perfectly.
i can accsess local host, but may users accsess through my ip and when i go to network setting and cvlick host may i make a machine with a host name that other peole can connect thorugh because i dont want to pay for a domain name i want to host my own any ideas, help
 
Old 11-15-2004, 08:48 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
As long as you don't mind using a .no-ip.com address, no-ip.com is a good way to get a free domain name and DNS service. Basically you use yourchoiceofword.no-ip.com (or .org or .net or a few others) and point it at your router IP. As long as your router forwards port 80 to your linux box, you're good to go.
 
Old 11-15-2004, 10:18 PM   #8
runeleader
LQ Newbie
 
Registered: Nov 2004
Posts: 19

Original Poster
Rep: Reputation: 0
ya ive heard of that, but is there any way i could set up my own DNS service because i need a .com domian and im not willing to pay other sellers.
and for the http: server do i get php and mod perl and is there any control panels i can install.


plus were do i get my sql databases for my http server
 
Old 11-16-2004, 07:36 AM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally posted by runeleader
ya ive heard of that, but is there any way i could set up my own DNS service because i need a .com domian and im not willing to pay other sellers.
and for the http: server do i get php and mod perl and is there any control panels i can install.


plus were do i get my sql databases for my http server
The good bit about no-ip.com is htat their basic service is absolutely free, provided you use their no-ip.com domain. If you need your own .com domain, I'm unaware of any way to get one for free. You may be able to set up your own DNS server, but you'll still have topay to register the domain name your using.

As for the php, perl and database, Apache is perfectly capable of handling all of that. Do a search here on setting up a LAMP (Linux Apache MySQL PHP) server. There are a ton of posts on how to get it working. For perl, you'll need to investigate setting up CGI with Apache. Again, there is plenty of existing advice here on LQ.
 
  


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
HTTP server carlosa52 SUSE / openSUSE 1 07-05-2005 10:12 PM
Cant see http server xowl Linux - Networking 6 06-19-2005 12:15 AM
http server help jrmontg Linux - Newbie 2 04-11-2005 01:49 PM
Http Server help eckertc1 Linux - Newbie 8 03-06-2005 02:23 AM
Linux email server and some HTTP server questions Steven6282 Linux - General 7 02-19-2003 03:39 PM

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

All times are GMT -5. The time now is 01:43 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