How to configure the PHP environment in Windows tutorial-PHP source code

Source: Internet
Author: User
Ec (2); 1. Required software environment: 1. apache2.22.activeperl5.8c: perl3.php5.1 must be installed in the des required by the c: php4.ZendOptimizer-3.0.25.php environment-libraries required after php installation cannot work properly. ------------------------------------------- Script ec (2); script

1. Required software environment:
1. apache 2.2
2. active perl 5.8 c: perl
3. php 5.1 must be installed in c: php
4. ZendOptimizer-3.0.2
5. Required libraries for the php environment-required libraries for normal running after php installation.
-----------------------------------------------
2. apache 2.2 -------- httpd. conf file configuration
1. Add # In front of the first row #
2. Modify Between
ScriptAlias/cgi-bin/"D:/Programmes/Server/Apache2.2/cgi-bin /"
And

The underlined part is changed to C:/php/and C:/php respectively.
3. Set #! C:/program files/perl #! C:/Perl/bin
4. Add at the end of the file
ScriptAlias/php/"c:/php /"
AddType application/x-httpd-php. php

# For PHP 4
# Action application/x-httpd-php "/php/php.exe"
# For PHP 5
Action application/x-httpd-php "/php/php-cgi.exe"
-------------------------------------------------------------------------------
3. php configuration rules:
1. Add c: php to the path of the windows environment variable
2. Import the primary des into c: phpincludes
3. Rename php. ini-dist to php. ini.
4. The configuration rules for php. ini are as follows:
1. Set doc_root = to doc_root = D: ProgrammesServerApache2.2htdocs
2. Set extension_dir = to extension_dir = "C: phpext"
3. Replace ";" in front of extension = php_mysql.dll with extension = php_mysql.dll.
4. In; Windows: "path1; path2", replace include_path =
Include_path = ".; c: phpincludes"
5. Configure under [MySQL]
4. The installation of active perl is easy to follow the instructions to install c: perl.
5. When installing ZendOptimizer, turn off the apache server and specify the installation path of apache and php.

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.