Home >Backend Development >PHP Tutorial >Apache2.44 + PHP4.3.0 Quick Installation Guide (For Windows and Novices)_PHP Tutorial
Preparation work:
Download apache_2.0.44-win32-x86-no_ssl.exe at http://www.apache.org
Download php-4.3.0-Win32 at http://www.php.net. zip
Installation steps:
1. Run apache_2.0.44-win32-x86-no_ssl.exe to complete the default installation
2. Unzip php-4.3.0-Win32.zip to c:
3. Copy the file c:php-4.3.0-Win32php.ini-dist to the Windows directory and rename it to php.ini. Also copy c:php-4.0.3-Win32php4ts.dll to the windowssystem directory (For Win98 ) or copy it to the winntsystem32 directory (For NT4/NT5).
4. Use Notepad to edit the file C:Program FilesApache GroupApache2confhttpd.conf
Add two lines:
LoadModule php4_module c:/php-4.3.0-Win32/sapi/php4apache2.dll
AddType application /x-httpd-php .php
5. Restart Apache. The entire installation process is over. It’s as simple as adding the php module to httpd.conf. . .
Test:
1. Use Notepad to write a test.php file and save it to C:Program FilesApache GroupApache2htdocs. The content is as follows:
2 , open the browser and run: http://localhost/test.php
Hey, it’s simple enough