Manually install apache2.2, php5.4, and apache2.2php5.4 in Win7. Manually install apache2.2 and php5.4 notes under Win7, and keep a pure record of apache2.2php5.4. First, create the d: www Directory. we will install all the web environment software under this directory. Create d: manually install apache2.2, php5.4 notes, apache2.2php5.4 under wwwl Win7
Pure record, flow account.
First, create the d: \ www Directory. we will install all the web environment software under this directory.
Create the d: \ www \ logs directory where some logs are stored.
Download to http://mirrors.cnnic.cn/apache/httpd/binaries/win32/ from httpd-2.2.25-win32-x86-openssl-0.9.8y.msi (image site mentioned above on apache.org)
Install apache2.2.25 and select the installation path d: \ www \ apache2.2. the installation is completed in the next step.
Access localhost to display It works!
Apache installation is complete.
--------------------------------------------------------
Download php5.4's latest stable version 5.4.21 from http://windows.php.net/download/?php-5.4
Note that you need to download: VC9 x86 Thread Safe, zip version. Otherwise, the CNT does not have the php5apache2_2.dll file, which wastes a lot of time.
Http://windows.php.net/downloads/releases/php-5.4.21-Win32-VC9-x86.zip
Decompress the package to d: \ www \ php-5.4.21
Open apache2.2 \ conf \ httpd. conf
To the bottom:
The code is as follows:
LoadModule php5_module "D:/www/php5.4.21/php5apache2_2.dll"
LoadFile D:/www/php5.4.21/php5ts. dll
LoadFile D:/www/php5.4.21/ssleay32.dll
PHPIniDir "D:/www/php5.4.21"
AddType application/x-httpd-php. php
In this way, php support is complete.
Further improvement:
The code is as follows:
ErrorLog "d: \ www \ logs \ apache_error.log"
LogLevel error
Include conf/extra/comments before httpd-vhosts.conf # Remove
Edit the httpd-vhosts.conf, assuming that the web Directory is under e:/www.
# NameVirtualHost *: 80
FileETag none
DirectoryIndex index.html index. php
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow, deny
Allow from all
ServerName www.jb51.net
DocumentRoot "E: \ hx \ www.jb51.net"
Open D: \ www \ php5.4.21 \ php. ini
The code is as follows:
Log_errors = On
Error_log = D: \ www \ logs \ php_error.log
Extension_dir = "D: \ www \ php5.4.21 \ ext"
Extension = php_mysql.dll
Extension = php_curl.dll
Other configuration items
In this way, the web environment is basically configured.
--------------------------------
Additional:
Download apc. you need to find it everywhere before. it is now officially available! In.
You have provided memcache. dll at http://pecl.php.net/package/memcache.
The code is as follows:
Extension = php_apc.dll
Extension = php_memcache.dll
However, the apc version seems a bit problematic.
This always happens, so you have to disable it.
The code is as follows:
Notice: Unknown: 1. h-> opened_path = [null] h-> filename = [E:/hx/www.jb51.net/test_file.php] in Unknown on line 0
Notice: Unknown: apc_cache_find [-833243605] in Unknown on line 0
Notice: Unknown: 2. h-> opened_path = [E:/hx/www.jb51.net \ test_file.php] h-> filename = [E:/hx/www.jb51.net/test_file.php] in Unknown on line 0
Notice: Unknown: apc_cache_make_file_entry: entry-> data. file. filename is [E:/hx/www.jb51.net \ test_file.php] in Unknown on line 0
Pure record, flow account. First, create the d: \ www Directory. we will install all the web environment software under this directory. Create d: \ www \ l...