------------------------------------------------------- Apache 2.2.8
open httpd.conf
1,Modify DocumentRoot
DocumentRoot "E:/www"
2,Modify Directory
<Directory "E:/www">
3,Modify DirectoryIndex
<IfModule dir_module>
DirectoryIndex index.php index.htm index.html
</IfModule>
4,Modify Listen
Listen 127.0.0.1:80
5,Modify NameVirtualHost
NameVirtualHost 127.0.0.1
6,Modify VirtualHost
<VirtualHost 127.0.0.1>
ServerAdmin [email protected]
DocumentRoot D:/www
ServerName ch
ErrorLog logs/ch-error_log
CustomLog logs/ch-access_log common
</VirtualHost>
************at installed php**************
7,binding php
find vhost_alias_module
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
under the line add this sentense:
LoadModule php5_module E:/php5.26/php5apache2_2.dll PHPIniDir "E:/php5.26"
find application/x-gzip
AddType application/x-gzip .gz .tgz
under the line add this sentense:
AddType application/x-httpd-php .php
------------------------------------------------------- php 5.2.6
1,php.ini-dist -> php.ini
2,;extension= php_mysql.dll -> extension= php_mysql.dll
3,config system variable
Path E:/php5.26;E/php5.26/ext;
4,Modify extension_dir
extension_dir = "e:/php5.26/ext"
The article only for myself