Download preparation
php:http://windows.php.net/downloads/releases/archives/
apache:https://www.apachehaus.com/cgi-bin/download.plx#apache24vc09
Get ready
Create folder under E-disk webserver for PHP + apache + mysql and www directories
Put the downloaded Apache, PHP, MySQL into the directory
Installing Apache
CMD window under E:CD webserver/apache2.4/binhttpd-k Install
Configure Apache
Config file conf/httpd.conf# define constants Define Sysdir "E:/webserver" Define srvroot "${sysdir}/apache24" ServerRoot "${srvroot}" # Define the Site Directory DocumentRoot "${sysdir}/www" <directory "${sysdir}/www" >
Problem 80 port, 443 port occupancy problem
Clear NT Kernel & System occupies 80 port run ' Netstat-ano ' Discovery 80 port is occupied by system, process number ' 4 ' Go to Task Manager see PID corresponding process description is NT Kernel & system. Workaround: 1.1 Run ' regedit ' to open the registry. 1.2 Find the DWORD value of ' Start ' on the right of ' hkey_local_machine\system\currentcontrolset\services\http ' and change ' 3 ' to ' 4 ' to restart.
Small tools
View all end share population use Netstat-aon to view share population with netstat-aon|findstr "49157" for specified ends
Windows 2008 installation Apache + MySQL + php