Lock to edit site
Dogger's Online Portfolio

~ Blog ~

Install Apache and IIS
Date posted: 01/Oct/2014

Files you will need: 

apache24 (apachelounge is down at the time of making this blog)



Install Apache and configure two virtual hosts.

Step 1 :

Download the Apache24.7z file onto your desktop


Step 2:

Extract Apache24.7z onto the desktop

Step 3:

Once it is extracted, move the folder to the root of the C:/ drive.

Step 4:

Open the command promt as an administrator. Click start, and then search for cmd.

The command prompt will open type "cd C;/apache24/bin"

Followed by httpd.exe -k install -n "Apache2.4":

You will be promted with a popup, click allow:

Navigate to "C:Apache24in" and run "ApacheMonitor.exe

In the system tray, left click on the apache icon then rollover "Apache2.4" then click "Start":


You will be promted with a warning, just click Allow.

If all went well the apache Monitoring icon will display a green play symbol:

Now, open your web browser and navigate to and see if it loads. If it does, you'll be greated with this message:

Step 5:

Navigate to "C:Apache24conf" and Open "httpd.conf" and make sure this line is uncommented and looks like this: 

Save and navigate to "C:Apache24confextra" and open "httpd-vhosts.conf":

Open the file and add these lines to the file, we'll have to create the directory here in a moment. Once these lines are added, save and close:

Navigate to "C:Apache24htdocs" and create a folder called "test.tbd". To create a folder, right click anywhere in the empty space, scroll down to new, and click folder:

Open Notepad as administrator and navigate to "C:WindowsSystem32driversetc" and open "hosts":

Add this line to the file "    test.tbd". save and close.

Restart apache by clicking on the icon in the system tray:

In your "test.tbd" folder, create an "index.html" file:

Open your browser and go to "test.tbd:80" and see if you can hit it:

(Note: you're page will look different depending on what you put in your "index.html" file)

Install PHP 5

step 1:

Dowload "php-561-win32-vc11-x64" and extract the contents to your desktop following the image below:

A folder called "php-561-win32-vc11-x64" will be created rename it to "php". Once renamed, move it to the "C:/" drive:

Navigate to "C:Apache24conf" and open "httpd.conf" with notepad:

Add these lines

# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2_4.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php"

to the bottom of the file, save and close:

Restart apache:

Navigate to your "test.tbd" folder and rename "index.html" to "index.php":

open "index.php" in notepad and add this line, save and close:

 echo phpinfo(); 

open your web browser and navigate to "test.tbd:80/index.php". If all goes well, you'll be greeted with this page:

Install MySQL Community Server (5.5)

Navigate to "http://dev.mysql.com/downloads/mysql/" and click the blue download button:

Scroll down and download the full sized installer to your desktop:

On the next page, click "No thanks ...":

In Chrome, once the installer is downloaded, click it:

When prompted, click "Run":

(Note: If the "User Account Control" pops up during install, just click "Yes")

Click cancel, as it is asking you if you want to run updates, and we don't so just cancel:

Check the box to agree to the terms of service and then click next:

Follow the image below, and select either X64 or X86. For this demo, we'll select X64 as it will match the rest of the install:

Press the right green arrow, with the X64 highlighted, and then click next:

Click execute:

Wait for it to finish installing and click next:

Now it's time to configure our installation, click next:

Leave it as the default for this, click next:

Enter a password for the root user, then click next:

Leave as default, click next:

Time to execute everything, click execute:

Once it is finished, click finish:

Click next:

click finish:

click cancel, we don't want to update anything at this moment:

Click finish:

Click the red "X" at the top:

Installing phpMyAdmin

Download the latest version from phpmyadmin, and extract it to your desktop:

Rename the folder to "phpMyAdmin" and move it to the folder "test.tbd":

Rename the file "config.sample.inc.php" to "config.inc.php":

Add the line "DirectoryIndex index.php" below "DirectoryIndex index.html" in the file "httpd.conf"

In the "php.ini" file inside of the php folder, remove the ";" from these 4 lines:

Installing IIS on Windows

Click "Turn Windows features on or off" to the left of the screen:

In the popup, navigate to "IIS Management Console" and check it:

To install "ASP" expand the tab "World Wide Web Services" and then "Application Development" and check everything in the picture below. This will also give you access to php:

To launch IIS, click start and then search IIS, click the result:

To add a site to IIS, simple left click on sites of to the left and click "Add New Site"

Let's create a random virtual site. In the example below, the host name "iheartiis.tbd" is what we'll use to hit the site, so we'll have to add it to the host file in a little bit:

And, we'll add another one. Same as above, we'll have to add this to the host file:

(note: in both examples above, a folder was created in "C:/inetpub/" for the virtual sites)

Time to add the sites we just created to the host file, save and close once they have been added:

Time to install FTP on our server. Open up, "Windows Features" again. Look above if you can't remember where it's located. Once open, navigate to "FTP Server" and check "FTP Service":

Restart your IIS manager, and you'll now have a new bar called "FTP":

page: 1 2
This website was designed by doggershusky © doggershusky.com
3 queries and page generated in 0.0037 seconds.