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.
Downloads
Save the following downloads into .
- .zip (2MB)
- unzip.exe (100KB)
- .shared.zip (400KB)
- php-5.2.7-Win32.zip (10MB)
- 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:
- Go: Start > Run
- Type 'cmd' and click 'OK'. A black DOS screen will open.
- For each command, put your mouse over the commands on the web page to select, then use Ctrl+C to copy.
- 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
- Run the following DOS commands:
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\.
- Run
notepad apache\conf\httpd.conf
and manually add the text below to the bottom of the file that pops up:
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>
- Save and close the file that popped up (including the changes you put at the bottom of it).
- Check that Skype is off (interferes with www port).
- Run
apache\bin\httpd -k restart
to restart the Webserver.
- If it complains of msvcr71.dll problem find a copy of msvcr71.dll and put it in C:\Windows\System32
- 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.
|