Win2003 x64 Apache PHP Development Environment Configuration Log _win Server

Source: Internet
Author: User
Tags apache php install php php development environment phpinfo
1. apache2.2 installation Httpd-2.2-win64;
2. mysql installation mysql-5.0.51a-winx64;
3. PHP installation php-5.2.5 (x64);
4. Installation introduction (on-line materials):
First, Apache
Install Apache
Execute httpd-2.2.4_x64.exe.
Fill in the C:\ in the destination folder fields, press Install
It'll be in C:\. Create a folder named Httpd-2.2_x64, which is Apache Server, and the service has also been inspired
If Windows fire wall appears, please remove it from the Apache Server lock

Second, PHP
Install PHP
View the PHP compression file Php-5.2.1-x64-2007-03-23.zip and remove only the php-5.2.1 (x64) folder
Move it to C:\, for the memory, the name of the folder is renamed PHP, (example C:\php)
Php5ts.dll, Libmysql.dll Copy to C:\httpd-2.2_x64\bin
php.ini-recommanded Copy to C:\httpd-2.2_x64 and renamed PHP.ini
Setting php.ini
Find Extension_dir = "./" changed to Extension_dir = "C:\php\ext"
To find, to Extension=php_mbstring.dll to Extension=php_mbstring.dll
To find, to Extension=php_mysql.dll to Extension=php_mysql.dll
Find;d Ate.timezone = change to Date.timezone = "Asia/taipei"
(If you are not in Taiwan, please change to your time zone.)
Shut down the php.ini file.
Set up Apache to download PHP in modular mode
Start C:\httpd-2.2_x64\conf\httpd.conf
Find #LoadModule Ssl_module modules/mod_ssl.so
Add LoadModule php5_module "C:/php/php5apache2_2.dll" below
Find AddType application/x-gzip gz. tgz
Add AddType application/x-httpd-php. php below
Find DocumentRoot "/httpd-2.2_x64/htdocs" and change it to your Web site folder.
(Example www) documentroot "c:/www"
Find the <directory "/httpd-2.2_x64/htdocs" > and change it to your Web site folder.
(Example www) <directory "c:/www" >
Find DirectoryIndex index.html, change it into
DirectoryIndex index.html index.htm index.php
Re-activate Apache
Start > Search columns > Input cmd > Press Enter
Cd\httpd-2.2_x64\bin
Httpd-k shutdown
Httpd-k start
(Theory can be httpd-k restart, but this version of Apache Restart seems to be a problem.)
Test the PHP Environment
Please create a new file phpinfo.php in your website folder, with only one line listed below:
<?php phpinfo ()?>
Start a new browser and enter the http://localhost/phpinfo.php in the Web site
If there is a PHP message, the installation is successful.
5. PHP Support MySQL settings:
(1) php.ini-recommended Modify Extension_dir = "E:\PHPSrever\php-5.2.5 (x64) \ext"; /";
(2) php.ini-recommended modify Extension=php_mysql.dll;
(3) Name the php.ini-recommended php.ini copy to E:\PHPSrever\httpd-2.2-win64 under the Appche installation directory, and then copy another php.ini to Windows below

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.