How To Host Your Own Website Using WAMP Server
How To Host Your Own Website Using WAMP Server
Web Designer,
HENRY Developer & Home Apps Contact
SANCHEZ Father of two
Home → Development → How to host your own website using WAMP Server
So you want host your own website, well you found the right
post. If you have a spare Windows machine and some time, I
will show you how to host your own website using WAMP
server from your home or of ce. In this post I will show you the
steps I took to con gure WAMP to start my web server and host
my own website for testing and personal projects.
You may have one or several reasons why you would want to
host your own website, perhaps you want to:
host your resume.
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 1/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Any of these project can be easily hosted from your own web
server without having to pay a company for web hosting.
However, I would NOT recommend this approach if you are
doing anything complex, like a business or eCommerce site, or
generally a site that you expect to grow and get a lot of traf c,
as most ISP would not allow this and even if they do you will
probably end up having to invest more time and money on
better software and hardware to keep up. Rather, I recommend
using a good web host, like SiteGround or GreenGeeks, to do
these types of projects.
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 2/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Once you have taken the above into consideration you should
be ready to begin. Well enough talk and lets get started.
If the icon is red or orange, you have a con ict with another
application. In my case, most of the time I encounter this issue
is if IIS is running on the machine. You can check what service
is using port 80 if you want to con rm this. Go to Apache –>
Service –> Test Port 80 and see which service is using port 80.
If IIS is using the port, you will want to disable the following
service: IIS Admin Service and World Wide Web Publishing
Service.
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 3/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 4/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 5/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
$cfg['Servers'][$i]['auth_type'] =
'config';
$cfg['Servers'][$i]['user'] = 'root';
Delete user root and just leave the quotation marks empty, like
so = ‘ ‘;
$cfg['Servers'][$i]['AllowNoPassword'] =
true;
$cfg['Servers'][$i]['LogoutURL'] =
'http://your-external-ip-address/';
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 6/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Listen 0.0.0.0:80
ServerName localhost:80
Change it to..
Listen youripaddress:80
ServerName youripaddress
Order Allow,Deny
Allow from all
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 7/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Require local
Save the le. You should now be able to access the site via
http://youripaddress and PHPMyAdmin
via http://youripaddress/phpmyadmin
Enhancing Security
Here are a few things to check for: Open your httpd- Newsletter
default.conf le found under Get the latest post
C:\wamp\bin\apache\apache[version#]\conf\extra and make right in your inbox!
sure you set the following parameters..
Name
ServerTokens Prod
This directive con gures what WAMP returns as the Server Email
HTTP response, setting it to prod returns the least info.
Subscribe
ServerSignature Off
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 8/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
TimeOut 60
You are almost done, next step is to remove the les in the
www folder. You can delete them or move them to another
folder outside www.
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 9/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
and place it in your root (www) and that should take care of
things. To create an .htacces le in Windows check out this
post on StackOverFlow. Also, check out Perishablepress
htaccess tricks page for some cool things you can do with
htaccess les to greatly enhance your websites security.
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 10/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
You did it! Now sit back, enjoy some tea and watch your web
server do what its meant to do, serve your web pages to the
world!
Hopefully this will help you in your current and future web
projects. If you have any questions about this setup please
leave me a comment below and I will be happy to help.
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 11/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
local web development and
testing
Hi Henry,
I have done same things and am able to access my
webpage from outside. I wish I would have nd your site
before. Anyways, the question is, how safe is it? Is this
method prone to hackers? is it safer to use web hosting
services?
Reply
Reply
Reply
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 13/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Reply
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 14/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Hi Henry,
Thanks for the great article.
Cheers,
Graeme
Reply
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 15/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Reply
Reply
Pragna
says: April 13, 2016 at 10:28 pm
Patel
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 16/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Reply
Hai henry,
you have told that we can use our own domain, and i
have created a host on no-ip.com. after that what should i
do to make my website available on that domain. please
help…
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 17/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Hi Henry,
I’m hosting this on an internal server here at work.
I eventually got WordPress to work somewhat. The rst
issue I came across was not being able to create any
posts, save anything, or upload images.
Do you know what else I can do?
I have not forwarded any ports, but the page is visible
within our internal network at work. I just can’t perform
any tasks within WordPress when logged in.
Thanks in advance.
Reply
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 18/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
save anything.
Here’s the error:
POST http://exampleURL.com/wp-
admin/admin-ajax.php
net::ERR_CONNECTION_RESET
load-scripts.php?c=1&load[]=jquery-
core,jquery-
migrate,utils,plupload&ver=4.5.2:4
Reply
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 19/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
(123.4.5.6)?
make a bit elaborated?
I would like to thank you for the best ever guide on how
to create webpages.
Reply
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 20/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Reply
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 21/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
OK, I read your guide and it is one of the best that I found
on this topic, nevertheless I still have problems to make it
work and it is really important for me to resolve this
issue asap.
Reply
H
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 22/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
ipcon g /release
ipcon g /all
ipcon g / ushdns
ipcon g /renew
Reply
Aditya
says: July 20, 2016 at 5:15 am
Shrivastava
After doing all this ,the apache service is not getting start.
please help?
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 23/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Chaos
says: August 5, 2016 at 10:47 am
Incorporated
Reply
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 24/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
ServerName localhost:80
and
which le should i put this
Order Allow,Deny
Allow from all
am bit lost there please help thank you
Reply
Reply
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 25/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Reply
Reply
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 26/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Christopher says:
December 15, 2016 at 12:29 pm
Reply
Reply
Marius
says: January 17, 2017 at 12:24 am
Lixandru
Reply
Reply
Reply
Reply
Cam
says: January 18, 2017 at 7:56 pm
Loren
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 28/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Sunil
says: January 30, 2017 at 7:16 am
Pandya
Dear Henry
I am from India, My Name is Sunil Pandya
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 29/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Reply
Reply
Hi Henry
i’m wondering why doesn’t matter if i put wamp online or
of ine i can still see my webpages, please can you
explain if there is a way to change that.
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 30/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
thanks
David
Reply
Reply
Hi Henry,
Two Qs.
1. I am trying to host a wordpress blog to my team in my
company (max 30 people). I would add/edit my content in
admin mode and the team who are in same network are
supposed to see the content whenever they type the url.
My current URL is
http://myip/wordpressfoldername — This gives me admin
view of the site. I can edit the contents and settings
http://localhost/wordpressfoldername –Thisalso gives
me same as above.Except that the landing page doesnt
have site customisation options . Rest remains the same
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 31/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Hi Rahul,
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 32/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Reply
Noureen
says: July 6, 2017 at 11:45 pm
Javaid
Reply
hello sir ,
i am running wamp server version 3 on windows
10. I did all the things you mentioned above .The
server is running online showing green icon , yet i
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 33/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Hi Henry,
Reply
Hi, hope you are able to reply, but I want to know why
people from the outside can see that my website is for
sale, http://mcgp.com/test.html , this is the address
Reply
Charu
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 34/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Hello, Hanry!
Thank you so much for the article, really helped a lot. I
have a question though, how can I host my website which
is created on WAMP server to a given domain, and do I
need to transfer the tables created in database as well?
Also, do I need to transfer all the les used in the eld?
Kindly help me with this, thanks in advance.
Reply
Reply
Reply
Hi Henry,
Nirmall
Reply
Reply
“ServerName ???????”
Reply
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 36/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Hey Henry,
Reply
Reply
Humble
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 37/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Hello Henry,
I appreciate your good works on this article, but I have
been reading many articles on this same subject matter,
and most of the articles specify that the ISPs do block
port 80, in this case what is your advice for one to boycott
this barrier, or is there any other way one can con gure
his/her server to work without permission from the ISP?
Reply
Pendress
says: August 27, 2019 at 7:19 am
chikednessian
Reply
Fabio
says: April 24, 2020 at 1:19 pm
Polanco
Reply
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 38/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Reply
Your Name *
Jane Doe
Your Email *
Website
http://your-site.com
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 39/40
5/16/2020 How to host your own website using WAMP Server - Henry Sanchez
Post Comment
https://www.hsnyc.co/development/how-to-host-your-own-website-using-wamp-server/ 40/40