This is my attempt at guiding new webmasters (like myself) through the setup process of setting up a simple web server for friends and family (and possibly, with a little bit of creativity on your side, a full-blown web host like those you usually pay for). I will provide commands to execute in the Linux terminal, the programs needed, and some programs that I would highly suggest….
MOVED!
You have arrived here using an outdated link or bookmark. If you would like to view the most recent content or comment on this post, please use the following link to be directed to the proper address.Tutorial: Setup Your Own (Self-Hosted) Simple Web Server for Free on DerekHildreth.com/Blog
Thank You.


[...] If you’re interested, I’ve put together a tutorial on how I setup my Fedora 8 box to run my own website/server. Follow this link. [...]
[...] that will help me create my own webserver. Need to hop on it right away. Here’s the link SendDerek’s Blog [...]
[...] http://sendderek.wordpress.com/2008/01/13/tutorial-setup-your-own-self-hosted-simple-web-server-for-... [...]
[...] http://sendderek.wordpress.com/2008/01/13/tutorial-setup-your-own-self-hosted-simple-web-server-for-... [...]
I registered with dyndns.org, but I already have my “own” DNS. The thing is my server is going to go down soon, so how can I have my dynamic IP resolve to my DNS, and maintain the site on my personal machine?
@ Elias:
I’m glad that you’ve asked a question, but as a beginning web admin on my own, I’m not really sure how to answer that one. I can take a stab at it though.
Before I do, I’m kind of confused about your description. By “my ‘own’ DNS”, do you mean you have a domain name registered? And why is your server going down? Do you shut it off sometimes, or is it going down for maintenance?
I’m just not quite sure what it is you’re trying to accomplish.
My site was put together by a more experienced web developer when I didn’t even have my own computer. Since then, I have purchased a new computer and am trying to migrate everything over to my own box and avoid any hastles with the person who initially helped me set the site up.
So, I have my own FQDN (purchased from who I don’t quiet know exactly, yet) But … the server that is currently hosting my site (which is not related to the site my DNS was purchased from) is going to let my site go. I have been reading a post on Fedoraforums and believe I have found parts of a whole that will ultimately become a solution.
I have port 80 open and registered with easydns.com and am going to install ddclient shortly to help forward my address.
I initially wanted a static IP address, because I wanted to experiment with Asterisk and Trixbox, but where I live (in Seoul [I teach English]) they are asking $140/month. That’s another issue though.
Wow… I’d hate to admit this, Elias, but you’re in way over my head. I’m sorry, but I’m not going to be able to help you out much.
However, you have given me some new terminology to explore!
well keep the great job man thanks what about the mail server how to setup that in fedora 8 ?
would u also post some tutorials in how to d o that …thanks
Tamir:
You’re welcome! Thanks for showing your appreciation!
I can sure try to write up a tutorial on how to get a mail server going, but to be honest, it looks like howtoforge has a great tutorial on the matter located here:
http://www.howtoforge.com/fedora-8-server-lamp-email-dns-ftp-ispconfig-p5
And another here:
http://www.howtoforge.com/virtual-users-and-domains-postfix-courier-mysql-fedora8
-Derek
Thanx for the tutorial, I’m very much new in linux, anyway, It was alright till port forwarding(as it says success), but I cant see/test the server (Apache).
what was wrong or what else can I check !
Sorry to hear you ran into a bump!
I would be sure to double check your firewall. Also, if you’re running Fedora Linux (or any other distro that uses the SE Linux Policy Management) set that to disabled for now for testing purposes. Also, make sure that the httpd service is running.
My firewall and SE Linux is disabled and also httpd is running.
Thanks, your tutorial was great. I am up and running. The problem I have know is that when I veiw my web site, it just shows the index of index.html and lists the file that I added. It didn’t open as a normal web page. What configuration changes are needed? Please help!
@Sim:
As of right now, I’m not sure what would be causing such a problem. The only thing I can think of is that the file called “index.html” is outside of the var/www/html/ directory or that it’s not named correctly. Check to make sure that it’s index.html not just index.htm or something similar. I’ll try and think of what could be happening in the meantime…
Yes, you were right. I found the problem. I had created a folder named index.html inside the html folder. I deleted the folder that I created and put my file directly in html and it worked just fine.
Thanks
Hey,I am back with a question. I have been doing a lot of reading about locking down the server with some security tweaks. When I go to etc/httpd I find two main folders for configuring Apache named (conf )and (conf.d)The(conf) folder has (httpd.conf) and when opening the file it tells me that is a main file for configuring Apache. There is also a (system-config-httpd.conf) file in folder (conf.d) which is used for configuring Apache. Which configuration file should I be modifying with changes?
You want the (conf) directory. So, the full path is:
/etc/httpd/conf/httpd.conf
That’s the proper file to edit and make changes to Apache. Just remember to restart the httpd service to apply the changes.
I’m glad to hear that your first issue was resolved, by the way.
[...] http://derekhildreth.com/blog/index.php/2008/01/tutorial-setup-your-own-self-hosted-simple-web-serve... [...]