So you want to setup a Web Server PART I
I have had a couple of people recently ask me questions on how to setup a web site, webserver, MySql, PHP, Domain names etc. Well I decided to work on creating a set of tutorials that will help a user install, setup, and maintain their own webserver. Everything that I am going to go over in this tutorial will involve freely available open source software and it will be geared toward Windows boxes. These instructions will be different based on what software you use and what environment you will be running the software in. Please don't contact me for questions about other software or environments other than those discussed in these tutorials, but feel free to discuss alternative setups in the comments to this article.
Now before we get too far into it this tutorial a few warnings. Setting up your own public webserver is not easy business and something that you need to be very careful about. If you don't setup the configuration correctly an outside source could easily compromise your data stored on the site on in your database. So for the meantime take these instructions as to be a nice introduction for setting up a test environment and don't start publicly publishing your webpage until you are completely comfortable in its security.
Now that we got that out of the way the first part will involve installing a preconfigured package that is very easy to setup and maintain. The package that I am referring to is called XAMPP and is put together by the open source community using open source software. By the end of this tutorial you should have a webserver running with PHP and MySql.
Installation procedures of xampp
- Download Xampp from website http://www.apachefriends.org/en/xampp.html.
- Run installation
- Choose Language click OK
- Click NEXT
- Choose a location for the installation. For this tutorial I am going to accept all defaults which in this case should be “C:\Program Files”. Click the INSTALL button.
- Click FINISH
- Xampp will then ask to install Apache, MySQL and FileZilla as services. Click YES.
- It will then ask to Install Apache 2 as a service. Click YES.
- A screen will then pop up explaining that Apache 2 Service was installed successfully! Take note of the ports 80 and 443. Click OK.
- Next it will ask to install MySQL as a service. Click YES.
- A screen will then pop up explaining that MySql was installed successfully! Take note of port 3306. Click OK.
- Next it will ask to install FileZilla FTP Server as a service. Click YES.
- It will ask again. Click YES.
- It will then ask it you want to autostart Service. At this time we will not set this service to AutoStart so click NO.
- It will then ask to Start Server. Click YES.
- You will then receive a Congratulations screen and it will ask you if you want to start the XAMPP Control Panel now. Click YES.
- This will bring up the Xampp control Panel. It will list items Apache, MySql, FileZilla and Mercury. At this time you should at least see MySql and FileZilla running. Mercury should be greyed out and Apache will probably not be running.
- If Apache is not running click on the Start button next to Apache and it should then start and you should see “Running” next to it.
- At this point you can minimize the control panel.
- Next open up Internet explorer
- Type in the following address: http://localhost/xampp