1.Install APACHE
First, stop the IIS installed on the machine (if it is started, because APACHE is installed by default and uses port 80, there will be conflicts if it is not stopped)
Download apache_2.2.3-win32-x86-no_ssl from the official website of APACHE, double-click to install. It is best not to install in a path with spaces during installation. You can install APACHE under c:apache2 and type http:/ in IE. /localhost If you see a page that says it works, it means APACEH is running normally.
2.Install PHP5
Download php-5.2.0-Win32.zip from the PHP official website, unzip it, change the directory name to php, and copy it to C:
Rename php.ini-dist in the php directory to php.ini and copy it to c:windows (or:winnt depending on the operating system), and copy php5ts.dll and libmysql to c:windowssystem32
3. To enable APACHE to run the PHP program, modify the c:apaceh2confhttpd.conf file and add
** in the next line of #LoadModule ssl_module modules/mod_ssl.so (note that if your APACHE is version 2.2, add the following sentence)
LoadModule php5_module c:/php/php5apache2_2.dll
(Note that if your APACHE is version 2.0, add the following sentence)
LoadModule php5_module c:/php/php5apache2.dll
Add in the next line of AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
Save and write the simplest PHP page with only one line of code.
<?phpinfo(); ?>
Save it as test.php and put this file in C:Apache2htdocs
Start APACHE and browse http://localhost/test.php
If you can see PHP information, it means that php5+apache2.2 is configured as a function.
4. Install MYSQL4.1.3