Windows php5.2.4+mysql6.0+apache2.2.4+zendoptimizer-3.3.0 Configuration _php Basics

Source: Internet
Author: User
Tags install php phpinfo
First: Install HTTP server Apache
apache.1.jpg (43.95 KB)
2007-9-26 17:36

apache.2.jpg (55.15 KB)
2007-9-26 17:36
apache.3.jpg (64.33 KB)
2007-9-26 17:36
apache.4.jpg (41.78 KB)
2007-9-26 17:36
apache.5.jpg (45.91 KB)
2007-9-26 17:36
apache.6.jpg (28.96 KB)
2007-9-26 17:36
apache.7.jpg (31.9 KB)
2007-9-26 17:36

Apache installation complete, if the Apache port is occupied by the situation, please close your thunder, or some anti-virus software!

Step two: Install PHP:
1), the Php-5.2.4-win32.zip compression package decompression, and then copied to C:\ and renamed to C:\PHP5
2), copy C:\PHP5\php.ini-dist file to X:\WINNT, and renamed to PHP.ini
3), (Method 1) Open php.ini for parameter modification, set Extension_dir to
Extension_dir = "C:/php5/ext"
(Method 2) Copy the *.dll files under *.dll and ext below PHP5 to the System32 under Windows! (I'm using this)


Step three: Load PHP module:
To set the site root directory:
$PU @7hb%[ozv (j4dwfzh7jr.jpg (52.84 KB)
2007-9-27 15:04

In the Apache httpd.conf file, set the ServerRoot (the server root, aka the Apache installation directory)
ServerRoot "F:\php"
Set up the DocumentRoot (site directory, which is the directory of the Web pages on your machine that you are browsing) for example:
DocumentRoot "F:\php"
Modify: (optional) Set silently home
Y ' cp@ht[9h7wi5}0e{]a8mm.jpg (78.13 KB)
2007-9-27 15:04

<ifmodule dir_module>
DirectoryIndex phpinfo.php index.html
</IfModule>
Install it in a modular way!
At the end of the file join
@MS $EG} (H (' D@a%b_z5s@ok.jpg (43.16 KB)
2007-9-27 15:04

LoadModule Php5_module C:/php/php5apache2_2.dll
AddType application/x-httpd-php. php
To install in a CGI manner:
With the above
In the Scriptalias section, increase the downlink
scriptalias/php5/"c:/php/"
In the AddType section, increase the downlink
AddType application/x-httpd-php. php
Action application/x-httpd-php "/php5/php-cgi.exe"
Fourth Step:
Copy C:\PHP5\php.ini-dist file to X:\WINNT and rename it to PHP.ini
In the php.ini configuration file, select the module you want to load when you run PHP.
[DATE] under modification; date.timezone = Date.timezone =PRC

PHP.ini the line in the following format in the file, removing to load the appropriate module, note: Incorrect loading of the module will make an error
Extension=php_bz2.dll
Extension=php_cpdf.dll
Extension=php_crack.dll
... Add these yourself!
2.jpg (58.29 KB)
2007-9-26 17:36

TestPHP Program: Phpinfo ()?> save in F disk for phpinfo.php in browser inputhttp://localhost: Add your port number/just OK!

Fifth Step:
installing MySQLDataLibrary!
1.jpg (37.61 KB)
2007-9-26 17:36

Continue to install down until
14.jpg (50.97 KB)
2007-9-26 17:36

If you use UFT8, selectUtf8Choose gb2312! with gb2312 ‘
Due to limited space someImageNo upload up!
Finish last!

Step 6th:
Install Zendoptimizer
(39.81 KB)
2007-9-26 17:36

Follow the prompts to continue installing straight Until the end!

Finally configures the Phpmyadim:
Unzip the file to the site root:
Modify the config.default.php under libraries and rename it to config.inc.php save in the root directory modify the following:
$cfg [' Servers '] [$i] [' Auth_type ']     = ' config '; modified to
$cfg [' Servers '] [$i] [' Auth_type ']      = ' cookies ';
$cfg [' defaultconnectioncollation '] = ' utf8_unicode_ci ';
$cfg [' defaultcharset '] = ' UTF8 '; The

configuration is basically complete! This is my roughly written, there are wrong places also hope that you put forward, You can use QQ or message in the forum!
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.