Enter in IE browser address bar
Http: // localhost / Enter can see the Apache running information, this time Apache has been installed successful and has already run.
2, install PHP
Unlock the PHP-5.0.0B2-WIN32.ZIP compression package and place it to the installation directory you specified.
Because this package does not need to be installed, it is possible to extract it to the specific installation location.
My put in the D: / Bin / Web / PHP5 directory (PHP5 is called the PHP-5.0.0B2-Win32 directory)
Third, configure PHP
It is only to follow the steps, there is no meaning. Because PHP is not configured, PHP cannot be used.
Next is to configure PHP and the most critical steps. Many friends have failed in the process of configuring.
1, PHP5 basic configuration
A. Copy the php4tsts.dll below the PHP5 directory and copy the iconv.dll file below the DLLS directory to the WinNT / System32 directory.
B, edit Apache's httpd.conf file (c: / program files / apache group / apache2 / conf / httpd.conf) Add to two lines of code
LoadModule PHP5_MODULE D: /BIN/web/php5/sapi/php4apache2.dll
AddType Application / X-httpd-php .php
D: / bin / web / php5 / sapi / is a PHP SAPI directory
PHP4APACHE2.DLL is a PHP module that supports Apache2
AddType Application / X-httpd-php .php is file using Apache support .php extension
Modify DirectoryIndex to INDEX.PHP, and Index.htm. Such as:
DirectoryIndex index.php index.htm index.html index.html.var
Let Apache support Chinese by default
Modify the ISO-8859-1 of the ADDDEFAULTCHARSET ISO-8859-1 to GB2312. Such as:
AdddefaultCharset GB2312
Restart Apache;
C, view configuration results
Create an Info.php file in the C: / Program Files / Apache Group / Apache2 / HTDOCS directory, write a function of displaying PHP environment information:
PHP
PHPINFO ();
?>
Enter in the IE address bar
Http://localhost/info.php Enter. If there is no accident, you can see PHP5 environment information. Note The basic configuration of PHP5 is successful.
2, configure php5 to support mysql
PHP5, no longer supports Mysql by default, you need to manually configure it, you can support MySQL.
PHP5 / EXTENSIONS / PHP_MYSQL.DLL and PHP5 / DLLS / libmysql.dll files are copied to the Winnt / System32 directory.
Copy the php5 / php.ini-dist file to the Winnt directory and renamed it is PHP.ini.
Edit php.ini, will; extension = php_mysql.dll front; remove, then restart Apache.
Refresh again
Http: //localhost/info.php, you can see information that supports MySQL.
3, configure the PHP5 support GD library
Picture with a PHP is a very interesting thing. Of course, PHP5 is not supported by default, or it needs to be manually configured.
Copy the php5 / extensions / php_gd2.dll file to the WinNT / System32 directory.
Modify php.ini, will; extension = php_gd2.dll front; remove, then restart Apache. Refresh again
Http: //localhost/info.php, you can see information that supports the GD library.
Fourth, according to the configuration
Here, configuration has been installed Apache2.0.48 php5.0.0b2.