Author

Topic: Need help setting up a very simple webserver... (Read 1859 times)

hero member
Activity: 1582
Merit: 759
For what he needs, a VPS is way too overkill. In this case I would go for shared hosting, because your home computer is probably not going to be up all the time, plus it brings up some security issues. Also, don't use Windows for this, use Linux.

Probably overkill but if his goal is to learn, it may not be a bad idea.
You learn more from running a VPS than using shared hosting setup by someone else.
legendary
Activity: 1302
Merit: 1007
For what he needs, a VPS is way too overkill. In this case I would go for shared hosting, because your home computer is probably not going to be up all the time, plus it brings up some security issues. Also, don't use Windows for this, use Linux.
legendary
Activity: 1122
Merit: 1017
ASMR El Salvador
Why you don't set a Ubuntu-server/Apache configuration with https://www.digitalocean.com/.
It is really cheap and simple.
hero member
Activity: 1582
Merit: 759
Considering he only wants to host 1 page (and I'm assuming html in that case), it should be secure enough. Just once you've got the page setup disable the mysql and filezilla parts of xampp and you should be good.

Ok I made the page, put it in the right folder, when i go to 127.0.0.1 it comes up, but when i try to see it thru my ip it times out, are there certain ports i need to forward with my router?

Edit: what about my subnet ip?

Just open up port 80 and you should be good to go.

Step 1: Buy a VPS. Do NOT host a website from your home connection, it's going to end badly. I personally recommend DigitalOcean.

Step 2: Point all your DNS names at the IP address.

Step 3: Install apache2 / httpd (depending if you want debian based operating systems or rhel based)

Step 4: Use winscp and copy / paste the html file into /var/www/

Step 5: The website should load for all the domains.


Bam! $5 / month for hosting all those sites.

As long as he isn't promoting his sites past his friends, I don't see much of an issue. If he is, then this is good information (whether gets shared or a VPS \/). Hosting a website on a home connection can not only put yourself at risk for infiltrations, but can also be a breach of contract for many ISPs.

I wouldn't get a VPS.  VPS might be more than what he actually needs to do.  There are shared hosting available for less than $5 per month... I host my site, http://www.bookingtool.com on shared and it runs great.  For a simple 1 page site, that should be more than sufficient.


This is good logic. However, I think he wanted the educational benefit of setting up the server himself.
newbie
Activity: 1
Merit: 0
I wouldn't get a VPS.  VPS might be more than what he actually needs to do.  There are shared hosting available for less than $5 per month... I host my site, http://www.bookingtool.com on shared and it runs great.  For a simple 1 page site, that should be more than sufficient.
full member
Activity: 126
Merit: 101
1. Assuming you have more than one computer at home, you should assign a static IP adress to your machine(say *.*.*.100), otherwise everytime you turn your computer off, you'll have to redo port forwarding.(see step 2)
2. Setup port forwarding on your router so that all incoming requests on port 80 are forwarded to your computer(*.*.*.100) on port 80.
3. Point all your domains at your router IP, which you can find out by visiting a site like http://www.whatismyip.com/

I would recomend WAMP as it is slightly more user friendly.

first: get rid of Windows© and install a decent operating system.

this is a very fair comment if you intend to leave your machine on 24/7


Regards,
Soon to be CCNA qualified  Grin
m

P.S. Anyone who needs help regarding these matters or anything to do with networks are welcome to pm me.
sr. member
Activity: 406
Merit: 256
You need to have port 80 open.
full member
Activity: 155
Merit: 100
Considering he only wants to host 1 page (and I'm assuming html in that case), it should be secure enough. Just once you've got the page setup disable the mysql and filezilla parts of xampp and you should be good.

Ok I made the page, put it in the right folder, when i go to 127.0.0.1 it comes up, but when i try to see it thru my ip it times out, are there certain ports i need to forward with my router?

Edit: what about my subnet ip?
sr. member
Activity: 406
Merit: 256
Considering he only wants to host 1 page (and I'm assuming html in that case), it should be secure enough. Just once you've got the page setup disable the mysql and filezilla parts of xampp and you should be good.
legendary
Activity: 1288
Merit: 1080
first: get rid of Windows© and install a decent operating system.
sr. member
Activity: 476
Merit: 250
So I want to host a tiny one page site from my computer for multiple domain names i have
 , the same page for all sites, 1 page , mostly a small amount of text

can someone help me with this in windows and i will donate some coin to them??
I've a better idea. How about you point all your domains at my host, and I'll host your one page for 1BTC a month Smiley. (PM for details. Offer open to all.) (Until I work out the mechanics of this, I ain't going to offer it.)

I seriously would suggest don't host a website on MS Windows machine, esp. not a machine at home. If you aren't a pro., it is really easy for things to go wrong. And then your home machine is screwed. Also, XAMPP is not meant to be used for live sites.

Quote
The default configuration is not good from a securtiy point of view and it's not secure enough for a production environment - please don't use XAMPP in such environment.
sr. member
Activity: 406
Merit: 256
I'm not sure where XAMPP installs offhand, but look for that and t hen in the htdocs folder is where it hosts pages, I believe. Try backing up what's in htdocs now and then putting whatever you want hosted in there.
full member
Activity: 155
Merit: 100
What are you starting from? Any hosting software installed already?

Look into XAMPP - very easy to config, you should be able to handle it yourself, or ask me any questions you have Smiley

Thanks, I have it installed , set up a root password , an sql name and password, all I need to know is how to put one page in folder that I can host but keep everything else secure...

basically i am here right now, i played around with the admin sections but still don't understand most of the lingo.. Huh



sorry , this is something i have never had to deal with before, every site i had i just designed the page in frontpage 2001 (yea that long ago lol) uploaded it to my hosts ftp and it worked... this seems a little more complicated
sr. member
Activity: 406
Merit: 256
What are you starting from? Any hosting software installed already?

Look into XAMPP - very easy to config, you should be able to handle it yourself, or ask me any questions you have Smiley
full member
Activity: 155
Merit: 100
So I want to host a tiny one page site from my computer for multiple domain names i have
 , the same page for all sites, 1 page , mostly a small amount of text

can someone help me with this in windows and i will donate some coin to them??
Jump to: