LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   http server big help (https://www.linuxquestions.org/questions/linux-newbie-8/http-server-big-help-254874/)

runeleader 11-14-2004 08:27 PM

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

deviance99 11-14-2004 08:43 PM

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.

runeleader 11-15-2004 09:37 AM

?
 
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.

runeleader 11-15-2004 09:48 AM

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]

deviance99 11-15-2004 05:21 PM

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.

runeleader 11-15-2004 06:55 PM

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

Hangdog42 11-15-2004 08:48 PM

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.

runeleader 11-15-2004 10:18 PM

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

Hangdog42 11-16-2004 07:36 AM

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.


All times are GMT -5. The time now is 08:57 AM.