Second, install and set up environment variables: Install apache_2.2.14 to C:\apache
Extract PHP5.2.11 to c:\php
Install mysql-5.0.45 to C:\mysql
Unzip the Htdoc directory of phpMyAdmin-3.2.3 to Apache
Add after environment variable-> system variable path; c:\php
Third, modify the configuration file: The first is Apache configuration:
1. Edit httpd.conf file
Find the LoadModule block and add it later:
LoadModule Php5_module C:\php\php5apache2_2.dll
2. Find DocumentRoot, and replace the first <Directory></Directory> block with the following:
<directory "c:/php" >
Options FollowSymLinks
AllowOverride None
Order Deny,allow
Deny from all
Satisfy All
</Directory>
3. Find the Scriptalias block and add it later:
scriptalias/php/"c:/php/"
4. Find the DirectoryIndex block and modify it to:
DirectoryIndex index.php default.php index.html
Index.htm default.html default.htm
5. Find the AddType block and add it later:
AddType application/x-httpd-php. php
Action application/x-httpd-php "C:/php/php.exe"
Then modify the PHP configuration:
6.php.ini-recommended file renamed to PHP.ini, open php.ini file, find Extension_dir, modify to: Extension_dir = "c:\php"
Modify the following:
Extension=/ext/php_gd2.dll
Extension=/ext/php_mbstring.dll
Extension=/ext/php_mcrypt.dll
Extension=/ext/php_mssql.dll
Extension=/ext/php_mysql.dll
Extension=/ext/php_mysqli.dll
Extension=/ext/php_pdo_mssql.dll
Extension=/ext/php_pdo_mysql.dll
7. For phpMyAdmin installation success, modify php.ini file, find Session.save_path into:
Session.save_path = "C:\Temp", preceding last year;
8. Copy php.ini to Windows directory
9. Copy Libmysql.dll to Windows/system32 directory
iv. test php, MySQL: 1. Write index.php documents under C:\Apache\htdocs (Phpinfo ();)
2. Re-modify index.php, test MySQL database connection
Five, over
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.