RedmondFamily.com See Our Photos 2010 Craig | Cancy | Ethan | Joshua | Kyla | Amy

 
Home › Cancy and Craig › Computers

Webserver Installation

This page is found at: http://www.redmondfamily.com/Cancy-and-Craig/Computers/Webserver-Installation?_websiteDomainName=&_softwareRootDir=&_machineName=&_websitesRootDir=&_downloadRootDir=

Installation Settings

Important: Be sure to enter the correct details in the following boxes before continuing. Failing to do so will result in errors in the installation.
  • Domain Name [Default: websiteDomainName=example.com] (do not include the 'www.')
  • Folder to download software to [Default: downloadRootDir=C:\temp\]
  • Folder to install software [Default: softwareRootDir=C:\]
  • Machine Name [Default: machineName=localhost] (if unsure go: Start > Run, type 'hostname')
  • Webserver root directory [Default: websitesRootDir=C:\websites\]

Downloads

Save the following downloads into .

  1. .zip (2MB)
  2. unzip.exe (100KB)
  3. .shared.zip (400KB)
  4. php-5.2.7-Win32.zip (10MB)
  5. Apache_2.2.3-Openssl_0.9.8d-Win32.zip (7MB originally from: http://hunter.campbus.com/)

For Beginners Only: Running DOS commands

Further down on this page you will be asked to run some DOS commands. When asked to run a DOS command, do the following:

  1. Go: Start > Run
  2. Type 'cmd' and click 'OK'. A black DOS screen will open.
  3. For each command, put your mouse over the commands on the web page to select, then use Ctrl+C to copy.
  4. And finally, go back to the DOS window and with your mouse, right click on the black area of the screen to paste the copied commands.

Step 1: Copy Website Files

Run the following DOS commands:

mkdir "\"
"unzip.exe" ".zip" -d"\
mkdir ".shared\"
"unzip.exe" ".shared.zip" -d".shared\

Step 2: Install PHP

Run the following DOS commands:

mkdir "php\"
"unzip.exe" "php-5.2.7-Win32.zip" -d"php\
copy "php\php5ts.dll" %windir%\system32\ /Y
copy "php\php5apache2_2.dll" %windir%\system32\ /Y
copy "php\ext\php_gd2.dll" %windir%\system32\ /Y
copy "php\ext\php_mysql.dll" %windir%\system32\ /Y
copy "php\libmysql.dll" %windir%\system32\ /Y
copy "php\php.ini-recommended" %windir%\php.ini /Y
  • Run notepad C:\Windows\php.ini
    and manually add the text below to the bottom of the file that pops up:
  • short_open_tag = On
    extension=php_gd2.dll
    extension=php_mysqli.dll
    

    Step 3: Setup Apache

    1. Run the following DOS commands:
    2. mkdir "apache\"
      "unzip.exe" "Apache_2.2.3-Openssl_0.9.8d-Win32.zip" -d"apache\
      NET STOP W3SVC
      apache\bin\httpd -k uninstall
      apache\bin\httpd -k install
      

      If you get an error about msvcr71.dll put a copy of msvcr71.dll into c:\WINDOWS\system32\.

    3. Run notepad apache\conf\httpd.conf
      and manually add the text below to the bottom of the file that pops up:
    4. LoadModule speling_module modules/mod_speling.so
      CheckSpelling On
      ServerSignature Off
      LoadModule php5_module "php\php5apache2_2.dll"
      AddType application/x-httpd-php .php
      KeepAlive On
      ServerAdmin webmaster@
      ServerName :80
      
      <Files ~ "^\.pl">
          Order allow,deny
          Deny from all
      </Files>
      
      <Location />
          SetOutputFilter DEFLATE
          BrowserMatch ^Mozilla/4 gzip-only-text/html
          BrowserMatch ^Mozilla/4\.0[678] no-gzip
          BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
          SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
      </Location> 
      
      Alias /.shared ".shared"
      <Directory ".shared">
          Options None
          AllowOverride All
          Order allow,deny
          Allow from all
      </Directory>
      
      DocumentRoot ""
      <Directory "">
          Options Indexes FollowSymLinks Includes
          AllowOverride All
          Order allow,deny
          Allow from all
          Include ".shared\.httpd.conf.include"
      </Directory>
      
    5. Save and close the file that popped up (including the changes you put at the bottom of it).
    6. Check that Skype is off (interferes with www port).
    7. Run apache\bin\httpd -k restart
      to restart the Webserver.
    8. If it complains of msvcr71.dll problem find a copy of msvcr71.dll and put it in C:\Windows\System32
    9. Check that the 'World Wide Web Publishing' Service is set to Disabled in Services so that it doesnt interfere in future (Go: Start > Settings > Control Panel > Administrative Tools > Services).

    To finish, go to and see if it looks how you would expect.



    Let it Snow

    Lots of fun in the snow.

    Countryside Walks

    We enjoy our country side walks.

    Free Christmas DVD

    Free "Joy to the World" DVD and other church DVDs to learn more about the Gospel of Jesus Christ.


    Bookmark and Share

     
    © Copyright 2010 The Redmond Family of Te Awamutu, New Zealand. All rights reserved worldwide.
    The Redmond Family of Te Awamutu, New Zealand™, and its logo are trademarks of The Redmond Family of Te Awamutu, New Zealand.

    www.redmondfamily.com/Cancy-and-Craig/Computers/Webserver-Installation