30-second WAMP server setup: Difference between revisions

Jump to navigation Jump to search
m
Reverted edits by Upazixorys (Talk); changed back to last version by Olajideolaolorun
No edit summary
m (Reverted edits by Upazixorys (Talk); changed back to last version by Olajideolaolorun)
Line 1: Line 1:
=[http://awuhodynaro.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
<h3>Introduction</h3>
&lt;h3&gt;Introduction&lt;/h3&gt;
You want to set up a personal web server, but setting up an Apache Web server with PHP, MySQL and phpMyAdmin support can be a painful process for a novice.<br />
You want to set up a personal web server, but setting up an Apache Web server with PHP, MySQL and phpMyAdmin support can be a painful process for a novice.&lt;br /&gt;
<br />
&lt;br /&gt;
The following tutorial describes the simple steps necessary to turn a home Windows-based computer into a fully-configured WAMP (Windows, Apache, MySQL, PHP) web server in as little as <u>30 seconds</u> using the Uniform Server.<br />
The following tutorial describes the simple steps necessary to turn a home Windows-based computer into a fully-configured WAMP (Windows, Apache, MySQL, PHP) web server in as little as &lt;u&gt;30 seconds&lt;/u&gt; using the Uniform Server.&lt;br /&gt;
<br />
&lt;br /&gt;
<u>Step 1</u> will get you fully set-up with a 100% pre-configured WAMP web server and shouldn't take longer than 30 seconds. No tinkering with INI files, no configuring anything. This is perfect for the web novice or amateur who wants to begin working with HTML, PHP or MySQL without having to delve into the confusing realm of configuring web servers, databases, and PHP interpreters.<br />
&lt;u&gt;Step 1&lt;/u&gt; will get you fully set-up with a 100% pre-configured WAMP web server and shouldn't take longer than 30 seconds. No tinkering with INI files, no configuring anything. This is perfect for the web novice or amateur who wants to begin working with HTML, PHP or MySQL without having to delve into the confusing realm of configuring web servers, databases, and PHP interpreters.&lt;br /&gt;
<br />
&lt;br /&gt;
The <u>optional Steps 2 and 3</u> take about 20 mintues in total, and will teach you how to set up a static URL for your server so you or your clients can access it from anywhere. This is for intermediate users who understand IP addresses and are able to configure firewalls.<br />
The &lt;u&gt;optional Steps 2 and 3&lt;/u&gt; take about 20 mintues in total, and will teach you how to set up a static URL for your server so you or your clients can access it from anywhere. This is for intermediate users who understand IP addresses and are able to configure firewalls.&lt;br /&gt;
<br />
&lt;br /&gt;
What you need to get started if you <u>only</u> want to complete <u>Step 1</u>:
What you need to get started if you &lt;u&gt;only&lt;/u&gt; want to complete &lt;u&gt;Step 1&lt;/u&gt;:
<ul>
&lt;ul&gt;
<li>[http://www.w3.org/MarkUp/Guide/ Basic HTML] skills, and basic knowledge of [http://www.netlingo.com/ Internet jargon]</li>
&lt;li&gt;[http://www.w3.org/MarkUp/Guide/ Basic HTML] skills, and basic knowledge of [http://www.netlingo.com/ Internet jargon]&lt;/li&gt;
<li>A computer with Windows</li>
&lt;li&gt;A computer with Windows&lt;/li&gt;
</ul>
&lt;/ul&gt;
<br />
&lt;br /&gt;
What you need to get started if you want to complete <u>Step 1</u> and the <u>optional steps 2 and 3</u>:
What you need to get started if you want to complete &lt;u&gt;Step 1&lt;/u&gt; and the &lt;u&gt;optional steps 2 and 3&lt;/u&gt;:
<ul>
&lt;ul&gt;
<li>[http://www.w3.org/MarkUp/Guide/ Basic HTML] skills, and basic knowledge of [http://www.netlingo.com/ Internet jargon]
&lt;li&gt;[http://www.w3.org/MarkUp/Guide/ Basic HTML] skills, and basic knowledge of [http://www.netlingo.com/ Internet jargon]
</li><li>A computer with Windows and a broadband internet connection
&lt;/li&gt;&lt;li&gt;A computer with Windows and a broadband internet connection
</li><li>Understanding of [http://en.wikipedia.org/wiki/Ip_address how IP addresses work]
&lt;/li&gt;&lt;li&gt;Understanding of [http://en.wikipedia.org/wiki/Ip_address how IP addresses work]
</li><li>Knowledge and ability to configure your [http://firewalling.com/routers.htm software firewall] or [http://www.portforward.com/routers.htm hardware firewall]</li></ul>
&lt;/li&gt;&lt;li&gt;Knowledge and ability to configure your [http://firewalling.com/routers.htm software firewall] or [http://www.portforward.com/routers.htm hardware firewall]&lt;/li&gt;&lt;/ul&gt;
<br />
&lt;br /&gt;
What this tutorial does <b>not</b> provide:
What this tutorial does &lt;b&gt;not&lt;/b&gt; provide:
<ul>
&lt;ul&gt;
<li>In-depth explanations about the steps – The goal is to get up and running as quickly as possible and the tutorial assumes you have the technical know-how to do most of what is required. There are ample links at the bottom of this tutorial that provide more details.</li><li>Rationales for the why a particular piece of software or online service was used. The goal is to get up and running as quickly as possible – not to debate why one service/software is better than the next.</li>
&lt;li&gt;In-depth explanations about the steps – The goal is to get up and running as quickly as possible and the tutorial assumes you have the technical know-how to do most of what is required. There are ample links at the bottom of this tutorial that provide more details.&lt;/li&gt;&lt;li&gt;Rationales for the why a particular piece of software or online service was used. The goal is to get up and running as quickly as possible – not to debate why one service/software is better than the next.&lt;/li&gt;
</ul>
&lt;/ul&gt;
<br />
&lt;br /&gt;
Ok, let’s get started!<br />
Ok, let’s get started!&lt;br /&gt;
<br />
&lt;br /&gt;
<h3>Step 1 – Set up the web server</h3>
&lt;h3&gt;Step 1 – Set up the web server&lt;/h3&gt;
<ol>
&lt;ol&gt;
<li>[http://sourceforge.net/project/showfiles.php?group_id=53691&package_id=48193 Download the Uniform Server] to your desktop. (The Uniform Server is a free open source project which combines pre-configured versions of the Apache web server, MySQL database and PHP scripting language)</li>
&lt;li&gt;[http://sourceforge.net/project/showfiles.php?group_id=53691&amp;package_id=48193 Download the Uniform Server] to your desktop. (The Uniform Server is a free open source project which combines pre-configured versions of the Apache web server, MySQL database and PHP scripting language)&lt;/li&gt;
<li>Double-click the .EXE file to extract it</li>
&lt;li&gt;Double-click the .EXE file to extract it&lt;/li&gt;
<li>Open up the Uniform Server folder, and double-click <b>Server_Start.bat</b></li>
&lt;li&gt;Open up the Uniform Server folder, and double-click &lt;b&gt;Server_Start.bat&lt;/b&gt;&lt;/li&gt;
<li>A web page will open up showing your web server control panel.</li>
&lt;li&gt;A web page will open up showing your web server control panel.&lt;/li&gt;
</ol>
&lt;/ol&gt;
<br />
&lt;br /&gt;
That’s it – your web server is running!  To see your web page, type [http://localhost/ http://localhost] into your browser’s address bar.  You will see the default web page which simply shows the Uniform Server logo.<br />
That’s it – your web server is running!  To see your web page, type [http://localhost/ http://localhost] into your browser’s address bar.  You will see the default web page which simply shows the Uniform Server logo.&lt;br /&gt;
<br />
&lt;br /&gt;
This demonstrates that the web server is working and serving web pages.  You can turn on the MySQL server or shut down the web server using the control panel, which is found by typing [http://localhost/a/ http://localhost/a/] into your browser's address bar.<br />
This demonstrates that the web server is working and serving web pages.  You can turn on the MySQL server or shut down the web server using the control panel, which is found by typing [http://localhost/a/ http://localhost/a/] into your browser's address bar.&lt;br /&gt;
<br />
&lt;br /&gt;
The web page files are located in the following folder <b>\Uniform Server\diskw\www</b>.  You can start customizing the index.html page now, but I recommend that we save the re-design for later.<br />
The web page files are located in the following folder &lt;b&gt;\Uniform Server\diskw\www&lt;/b&gt;.  You can start customizing the index.html page now, but I recommend that we save the re-design for later.&lt;br /&gt;
<br />
&lt;br /&gt;
If you only want to get the web server running on your machine so you can practice your HTML, PHP and MySQL skills, you may scroll past Steps 2 and 3, read the Conclusion, and then quit this tutorial.<br />
If you only want to get the web server running on your machine so you can practice your HTML, PHP and MySQL skills, you may scroll past Steps 2 and 3, read the Conclusion, and then quit this tutorial.&lt;br /&gt;
<br />
&lt;br /&gt;
If you want to ensure your WAMP web server is accessable from a static URL from anywhere else in the world, continue on to Steps 2 and 3.<br />
If you want to ensure your WAMP web server is accessable from a static URL from anywhere else in the world, continue on to Steps 2 and 3.&lt;br /&gt;
<br />
&lt;br /&gt;
<h3>Step 2 – Expose your web site to the outside world</h3>
&lt;h3&gt;Step 2 – Expose your web site to the outside world&lt;/h3&gt;
As it stands now, your web server is running and serving web pages, but it is not visible to the outside world.<br />
As it stands now, your web server is running and serving web pages, but it is not visible to the outside world.&lt;br /&gt;
<br />
&lt;br /&gt;
<h3>Step 2-1 – Modify the .htaccess file</h3>
&lt;h3&gt;Step 2-1 – Modify the .htaccess file&lt;/h3&gt;
The .htaccess file controls connections to your web server. By default, it is configured to refuse all connections from the outside world. Let’s change that.<br />
The .htaccess file controls connections to your web server. By default, it is configured to refuse all connections from the outside world. Let’s change that.&lt;br /&gt;
<br />
&lt;br /&gt;
Open the .htaccess file in Notepad.  The file is located in the following folder: <b>\Uniform Server\diskw\www</b>. Change the line that reads “Deny from all” to “Allow from all”. Delete the line that reads “Allow from 127.0.0.1”. Save and close the file.<br />
Open the .htaccess file in Notepad.  The file is located in the following folder: &lt;b&gt;\Uniform Server\diskw\www&lt;/b&gt;. Change the line that reads “Deny from all” to “Allow from all”. Delete the line that reads “Allow from 127.0.0.1”. Save and close the file.&lt;br /&gt;
<br />
&lt;br /&gt;
<h3>Step 2-2 – Open and forward port 80</h3>
&lt;h3&gt;Step 2-2 – Open and forward port 80&lt;/h3&gt;
<br />Your newly-installed web server listens for incoming requests on port 80. If you have a software firewall or a NAT firewall (router), chances are it is set to block those incoming requests. You will need to configure your firewall to allow incoming requests on port 80.<br />
&lt;br /&gt;Your newly-installed web server listens for incoming requests on port 80. If you have a software firewall or a NAT firewall (router), chances are it is set to block those incoming requests. You will need to configure your firewall to allow incoming requests on port 80.&lt;br /&gt;
<br />
&lt;br /&gt;
If you’ve ever opened/forwarded a port so that you could play an online multiplayer game or download files using a bitTorrent client, then chances are that you already have experience configuring your firewall.<br />
If you’ve ever opened/forwarded a port so that you could play an online multiplayer game or download files using a bitTorrent client, then chances are that you already have experience configuring your firewall.&lt;br /&gt;
<br />
&lt;br /&gt;
If you’re having trouble configuring your firewall, check out the 'firewall' links at the bottom of this tutorial for help.<br />
If you’re having trouble configuring your firewall, check out the 'firewall' links at the bottom of this tutorial for help.&lt;br /&gt;
<br />
&lt;br /&gt;
<h3>Step 2-3 – Success!  Let’s test it!</h3>
&lt;h3&gt;Step 2-3 – Success!  Let’s test it!&lt;/h3&gt;
The server is up and running, your firewall is configured to allow incoming requests on port 80, but how do other people view your site? Well, they simply have to type your IP into their browser’s address bar.<br />
The server is up and running, your firewall is configured to allow incoming requests on port 80, but how do other people view your site? Well, they simply have to type your IP into their browser’s address bar.&lt;br /&gt;
<br />
&lt;br /&gt;
If you don’t know how to determine your IP address, this site will tell you: [http://www.whatismyip.com WhatIsMyIP.com]<br />
If you don’t know how to determine your IP address, this site will tell you: [http://www.whatismyip.com WhatIsMyIP.com]&lt;br /&gt;
<br />
&lt;br /&gt;
Typing in an IP address to access the web site is quite clumsy and unprofessional, so in the next step I’ll show you how to acquire a static URL.<br />
Typing in an IP address to access the web site is quite clumsy and unprofessional, so in the next step I’ll show you how to acquire a static URL.&lt;br /&gt;
<br />
&lt;br /&gt;
<h3>Step 3 – Set up a static URL</h3>
&lt;h3&gt;Step 3 – Set up a static URL&lt;/h3&gt;
There are two problems with entering your IP address to access your web site: 1) it’s hard to remember and it looks unprofessional; 2) your IP address is always changing and that makes the system somewhat unreliable. (Imagine if you sat down to demo your work-in-progress web site to a client, and suddenly you can't access your server anymore because your IP address has changed.)<br />
There are two problems with entering your IP address to access your web site: 1) it’s hard to remember and it looks unprofessional; 2) your IP address is always changing and that makes the system somewhat unreliable. (Imagine if you sat down to demo your work-in-progress web site to a client, and suddenly you can't access your server anymore because your IP address has changed.)&lt;br /&gt;
<br />
&lt;br /&gt;
Here is how to work around these issues:<br />
Here is how to work around these issues:&lt;br /&gt;
<br />
&lt;br /&gt;
<h3>Step 3-1 – Sign up for a free Dynamic DNS service</h3>
&lt;h3&gt;Step 3-1 – Sign up for a free Dynamic DNS service&lt;/h3&gt;
For this tutorial, we’re going to use [http://www.dyndns.org/ www.dyndns.org]. Without going into too much detail, dyndns.org is a free service that provides you with a URL that points to the IP address of your web server.  The URL will look something like this: WhateverNameYouChoose.dyndns.org.<br />
For this tutorial, we’re going to use [http://www.dyndns.org/ www.dyndns.org]. Without going into too much detail, dyndns.org is a free service that provides you with a URL that points to the IP address of your web server.  The URL will look something like this: WhateverNameYouChoose.dyndns.org.&lt;br /&gt;
<br />
&lt;br /&gt;
Once you have created your account on [http://www.dyndns.org/ www.dyndns.org], log in to their site and:
Once you have created your account on [http://www.dyndns.org/ www.dyndns.org], log in to their site and:
&lt;ol&gt;&lt;li&gt;Click Dynamic DNS
<ol><li>Click Dynamic DNS
&lt;/li&gt;&lt;li&gt;Click Add Dynamic DNS
</li><li>Click Add Dynamic DNS
&lt;/li&gt;&lt;li&gt;Pick whatever host name you like (ex: myDynamicHost), and select dyndns.org from the drop-down
</li><li>Pick whatever host name you like (ex: myDynamicHost), and select dyndns.org from the drop-down
&lt;/li&gt;&lt;li&gt;If the IP address field isn’t automatically filled in, enter your IP address (find out what your IP address is at [http://www.whatismyip.com WhatIsMyIP.com])
</li><li>If the IP address field isn’t automatically filled in, enter your IP address (find out what your IP address is at [http://www.whatismyip.com WhatIsMyIP.com])
&lt;/li&gt;&lt;li&gt;Click Add Host&lt;/li&gt;&lt;/ol&gt;
</li><li>Click Add Host</li></ol>
It will take about 15 minutes for the records to update, but once complete, you can access your web site by entering your new URL into your browser’s address bar. For example: http://myDynamicHost.dyndns.org&lt;br /&gt;
It will take about 15 minutes for the records to update, but once complete, you can access your web site by entering your new URL into your browser’s address bar. For example: http://myDynamicHost.dyndns.org<br />
&lt;br /&gt;
<br />
&lt;h3&gt;Step 3-2 – Set up a Dynamic DNS updating client&lt;/h3&gt;
<h3>Step 3-2 – Set up a Dynamic DNS updating client</h3>
Recall that your IP address is always changing. When it does change, the URL provided by dyndns.org will no longer work because it will still be pointing to your old IP address.&lt;br /&gt;
Recall that your IP address is always changing. When it does change, the URL provided by dyndns.org will no longer work because it will still be pointing to your old IP address.<br />
&lt;br /&gt;
<br />
You need to run an update client on your computer. This update client will continually monitor your system and automatically detect when your IP address changes. When it does change, it will report your new IP address back to dyndns.org. Therefore your URL will never break.&lt;br /&gt;
You need to run an update client on your computer. This update client will continually monitor your system and automatically detect when your IP address changes. When it does change, it will report your new IP address back to dyndns.org. Therefore your URL will never break.<br />
&lt;br /&gt;
<br />
Update clients are freely available.  To get one, follow these steps:
Update clients are freely available.  To get one, follow these steps:
&lt;ol&gt;&lt;li&gt;Log into [http://www.dyndns.org/ www.dyndns.org]
<ol><li>Log into [http://www.dyndns.org/ www.dyndns.org]
&lt;/li&gt;&lt;li&gt;Click the Support tab
</li><li>Click the Support tab
&lt;/li&gt;&lt;li&gt;Click Download Update Clients
</li><li>Click Download Update Clients
&lt;/li&gt;&lt;/ol&gt;
</li></ol>
&lt;br /&gt;
<br />
&lt;h3&gt;Conclusion&lt;/h3&gt;
<h3>Conclusion</h3>
Congratulations on setting up your own WAMP web server. There’s something empowering about the whole thing, wouldn’t you agree? Now have fun learning HTML, PHP and MySQL!&lt;br /&gt;
Congratulations on setting up your own WAMP web server. There’s something empowering about the whole thing, wouldn’t you agree? Now have fun learning HTML, PHP and MySQL!<br />
&lt;br /&gt;
<br />
Some things to take note of:
Some things to take note of:
&lt;ul&gt;&lt;li&gt;Your ISP may not permit you to run an externally-accessible web server, so check your user-agreement to ensure that you are not violating the terms of service. (Most ISP’s will allow you to)
<ul><li>Your ISP may not permit you to run an externally-accessible web server, so check your user-agreement to ensure that you are not violating the terms of service. (Most ISP’s will allow you to)
&lt;/li&gt;&lt;li&gt;Your web server will not be able to support high levels of external traffic and should not be used for commercial use.
</li><li>Your web server will not be able to support high levels of external traffic and should not be used for commercial use.
&lt;/li&gt;&lt;/ul&gt;
</li></ul>
&lt;br /&gt;
<br />
&lt;h3&gt;Supporting Links&lt;/h3&gt;
<h3>Supporting Links</h3>
[http://www.uniformserver.com/ Uniform Server]&lt;br /&gt;
[http://www.uniformserver.com/ Uniform Server]<br />
[http://www.w3.org/MarkUp/Guide/ Basic HTML]&lt;br /&gt;
[http://www.w3.org/MarkUp/Guide/ Basic HTML]<br />
[http://www.netlingo.com/ Internet Jargon]&lt;br /&gt;
[http://www.netlingo.com/ Internet Jargon]<br />
[http://en.wikipedia.org/wiki/Ip_address IP Addresses]&lt;br /&gt;
[http://en.wikipedia.org/wiki/Ip_address IP Addresses]<br />
[http://firewalling.com/routers.htm Software firewall configuration]&lt;br /&gt;
[http://firewalling.com/routers.htm Software firewall configuration]<br />
[http://www.portforward.com/routers.htm Hardware firewall configuration]&lt;br /&gt;
[http://www.portforward.com/routers.htm Hardware firewall configuration]<br />
[http://www.javascriptkit.com/howto/htaccess.shtml Configuring .htaccess]&lt;br /&gt;
[http://www.javascriptkit.com/howto/htaccess.shtml Configuring .htaccess]<br />
[http://www.dyndns.org/ Dynamic DNS]&lt;br /&gt;
[http://www.dyndns.org/ Dynamic DNS]<br />
[http://www.php.net/ PHP Official Site]&lt;br /&gt;
[http://www.php.net/ PHP Official Site]<br />
[http://www.mysql.com/ MySQL Official Site]&lt;br /&gt;
[http://www.mysql.com/ MySQL Official Site]<br />
&lt;br /&gt;
<br />
&lt;br /&gt;
<br />
This tutorial was written by [http://iamtheshadow.blogspot.com iamtheshadow].  Please ensure http://iamtheshadow.blogspot.com is always cited as the source.
This tutorial was written by [http://iamtheshadow.blogspot.com iamtheshadow].  Please ensure http://iamtheshadow.blogspot.com is always cited as the source.


Navigation menu