Win7 manual installation of apache2.2, php5.4 notes, apache2.2php5.4_php tutorials

Source: Internet
Author: User
Tags apc vc9

Manual installation of apache2.2, php5.4 notes under Win7, apache2.2php5.4


Pure Records, Journal.

First create the D:\www directory, we will install the Web environment software in this directory.
Create the D:\www\logs directory where some logs will be placed.

From http://mirrors.cnnic.cn/apache/httpd/binaries/win32/ (The mirror site mentioned on apache.org) was downloaded to Httpd-2.2.25-win32-x86-openssl-0.9.8y.msi

Install apache2.2.25, select the next installation path d:\www\apache2.2, the other is the next step to complete the installation.

Access localhost, show it works!

Apache installation is complete.

--------------------------------------------------------

Download from http://windows.php.net/download/#php-5.4 to php5.4 latest stable version 5.4.21
Note need to download: VC9 x86 Thread Safe, zip version, otherwise nts is no Php5apache2_2.dll file, then wasted a lot of my time.
Http://windows.php.net/downloads/releases/php-5.4.21-Win32-VC9-x86.zip

After the decompression to the d:\www\php-5.4.21

Open apache2.2\conf\httpd.conf
to the bottom:
Copy code code 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

This will be done with PHP support.

Again perfect under:
Copy the Code code as follows:
Errorlog "D:\www\logs\apache_error.log"
LogLevel Error
Include conf/extra/httpd-vhosts.conf in front of comments # Remove
Edit httpd-vhosts.conf, assuming 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
Copy the Code code 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 of view

So the web environment is basically well-equipped.

--------------------------------

Additional:
Download APC, used to look everywhere, now officially available! Download the latest version in Http://pecl.php.net/package/APC: Http://windows.php.net/downloads/pecl/releases/apc/3.1.13/php_ Apc-3.1.13-5.4-ts-vc9-x86.zip, unzip the Php_apc.dll to the D:\www\php5.4.21\ext directory.
To the next memcache.dll, there are also provided, Http://pecl.php.net/package/memcache.
Copy the Code code as follows:
Extension=php_apc.dll
Extension=php_memcache.dll

However, this version of APC seems to have a problem.
Always out of these, had to not be enabled.
Copy the Code code 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

http://www.bkjia.com/PHPjc/978724.html www.bkjia.com true http://www.bkjia.com/PHPjc/978724.html techarticle Win7 Manual installation of apache2.2, php5.4 notes, apache2.2php5.4 Pure Records, Journal. First create the D:\www directory, we will install the Web environment software in this directory. Create D:\www\l ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.