Configuration of the PHP environment in Windows

Source: Internet
Author: User

1. Required software environment:
1. apache (the most popular WEB server platform on Unix) 2.2
2. active perl 5.8 c: perl
3. php (as the mainstream development language) 5.1 must be installed in c: php (as the mainstream development language)
4. ZendOptimizer-3.0.2
5. Required libraries for php (as the mainstream development language) environments-required libraries for normal running after php (as the mainstream development language) is installed.
-----------------------------------------------
2. Configure the httpd. conf file in apache (the most popular WEB server platform on Unix) 2.2 --------
1. Add # In front of the first row #
2. Modify <IfModule alias_module> </IfModule>
ScriptAlias/cgi (not many people are using it now)-bin/"D:/Programmes/Server/apache (the most popular WEB Server platform on Unix) 2.2/cgi (not many people are using it now)-bin /"
And
<Directory "D:/Programmes/Server/apache (the most popular WEB Server platform on Unix) 2.2/cgi (not many people are using it now)-bin">
The underlined part is changed to C:/php (as the current mainstream development language)/and C:/php (as the current mainstream development language)
3. Set #! C:/program files/perl #! C:/Perl/bin
4. Add at the end of the file
ScriptAlias/php (as the mainstream development language)/"c:/php (as the mainstream development language )/"
AddType application/x-httpd-php (as the mainstream development language). php (as the mainstream development language)

# For php (as the mainstream development language) 4
# Action application/x-httpd-php (as the current mainstream development language) "/php (as the current mainstream development language)/php (as the current development language cmd.exe"

# For php (as the mainstream development language) 5
Action application/x-httpd-php (as the current mainstream development language) "/php (as the current mainstream development language)/php (as the current development language)) ))))-))))))).exe .exe"
-------------------------------------------------------------------------------
3. Configuration Rules for php (as the mainstream development language:
1. Add c: php (as the mainstream development language) to the windows environment variable path.
2. Add the primary des into c: php (as the mainstream development language ).
3. Change php (as the mainstream development language). ini-dist to php (as the mainstream development language). ini
4. The following are the configuration rules for php (as the mainstream development language). ini:
1. Set doc_root = to doc_root = D: ProgrammesServerapache (the most popular WEB server platform on the Unix platform) 2.2 htdocs
2. Set extension_dir = to extension_dir = "C: php (as the mainstream development language) ext"
3. yes; extension = php (as the mainstream development language) _ MySQL (the best combination with PHP ). remove ";" before dll and change to extension = php (as the mainstream development language) _ MySQL (the best combination with PHP ). dll
4. In; Windows: "path1; path2", replace include_path =
Include_path = ".; c: php (as the mainstream development language) includes"
5. Configure the following for [MySQL (the best combination with PHP )]

4. The installation of active perl is easy to follow the instructions to install c: perl.
5. when installing ZendOptimizer, shut down apache (the most popular WEB server platform on Unix) servers. During the installation process, you must specify apache (the most popular WEB server platform on Unix) and php (as the mainstream development language) installation path.


<? Php (as the mainstream development language) info ()?>

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.