Installation tutorial for Apache php5.3.1 in Windows
Source: Internet
Author: User
I downloaded the latest recommended version. I didn't expect it to be sent to the jar, so I didn't. Later I summarized it and found that there were still many problems, so I shared it and hoped to share it with you.
It is helpful. During the experiment, I also referred to the tutorials written by other predecessors in the jar. Thank you. The steps are simple but important.
You can use the search engine to find something you don't understand. If I am online, I will try my best to answer it.
The installation process is as follows:
① Manual installation:
(1) follow the prompts to install Apache 2.2.14. you can install Apache 2.2.14 in c: \ Wamp \ apache2.2.14 if there are two versions (What are the differences between the two versions.
(2)decompress php-5.3.1-win32-vc6-x86.zip (select vc6, thread safe version) to c: \ Wamp \ php5.3.1.
(3) Open httpd. conf and add the following three lines:
Loadmodule php5_module C:/Wamp/php5.3.1/php5apache2_2.dll
Phpinidir "C:/Wamp/php5.3.1"
Addtype application/X-httpd-PHP. php. phtml
Find
Directoryindex index.html
Changed:
Directoryindex index.html index. php
(4) set the environment variables: C: \ Wamp \ php5.3.1; C: \ Wamp \ php5.3.1 \ ext;
You can also add c: \ Wamp \ apache2.2.14 \ bin, so that if an Apache error occurs, you can
Directly run the command on the command console for debugging.
(5) Modify PHP. ini:
Find extension_dir and set it to extension_dir = "C:/Wamp/php5.3.1/EXT"
Find the following extension:
; Extension = php_gd2.dll
; Extension = php_mbstring.dll
; Extension = php_mysql.dll
; Extension = php_mysqli.dll
Remove the semicolon. Remove the semicolon as needed.
(6) Restart Apache and write a PHP Web page with PHP statements for testing.
(71-decompress mysql-noinstall-5.1.41-win32.zip to c: \ Wamp \ mysql5.1.41
(8) change the my-large.ini to my. ini, find [mysqld] to add the following statement:
# Set default language
Default-character-set = GBK
# Set basedir to your installation path
Basedir = C:/Wamp/mysql5.1.41
# Set datadir to the location of your data directory
Datadir = C:/Wamp/mysql5.1.41/Data
(9) first set the environment variable: C: \ Wamp \ mysql5.1.41 \ bin, then open the command window and enter:
Mysqld -- install MySQL -- defaults-file = c: \ Wamp \ mysql5.1.41 \ My. ini
After installation, enter mysql-u root in the Command window.
Set the root account password: Set password for 'root' @ 'localhost' = PASSWORD ('123 ');
Then you can use MySQL, restart Apache, and write a PHP Web page for testing.
(10)prompt to install zendoptimizer-3.3.0a-windows-i386.exe.
(11) decompress the phpMyAdmin-3.2.4 to c: \ Wamp \ apache \ htdocs \ phpMyAdmin.
(12) Open the config. sample. Inc. php file and find Code Row:
// $ Cfg ['servers'] [$ I] ['controluser'] = 'pma ';
// $ Cfg ['servers'] [$ I] ['controlpass'] = 'pmapass ';
Changed:
$ Cfg ['servers'] [$ I] ['controluser'] = 'root ';
$ Cfg ['servers'] [$ I] ['controlpass'] = '20140901 ';
Note: If you need to use phpMyAdmin through remote server debugging, you cannot leave blowfish_secret blank.
You can set a string at will.
(13) save it in the same directory as config. Inc. php. Now you can use phpMyAdmin in your browser.
So far, manual installation is complete.
**************************************** **************************************** ****
######################################## #############################
② Automatic installation:
(1) follow the prompts to install Apache 2.2.14. you can install Apache 2.2.14 in c: \ Wamp \ apache2.2.14 if there are two versions (What are the differences between the two versions.
(2) run the php-5.3.1-Win32-VC6-x86.msi (vc6, thread safe version selected), installed in c: \ Wamp \ php5.3.1.
(3) After installation, find the ntwdblib. dll file on the Internet and put it in the C: \ Wamp \ php5.3.1 directory (this method is not recommended ).
Or open PHP. ini, comment out the following sentence (that is, add a semicolon in front, if it has been commented out, it is better ):
Extension = php_mssql.dll
Then restart Apache. This should be done now (if Apache is restarted directly, an error may occur ).
Write a PHP webpage for testing.
(4) Run mysql-5.1.41-win32.msi, installed in c: \ Wamp \ mysql5.1.41.
(5) Restart Apache, create a PHP webpage, and connect to MySQL to verify whether the installation is successful.
(6) decompress the phpMyAdmin-3.2.4 to c: \ Wamp \ apache \ htdocs \ phpMyAdmin.
(7) open the file config. sample. Inc. php and find the code line:
// $ Cfg ['servers'] [$ I] ['controluser'] = 'pma ';
// $ Cfg ['servers'] [$ I] ['controlpass'] = 'pmapass ';
Changed:
$ Cfg ['servers'] [$ I] ['controluser'] = 'root ';
$ Cfg ['servers'] [$ I] ['controlpass'] = '20140901 ';
Note: If you need to use phpMyAdmin through remote server debugging, you cannot leave blowfish_secret blank.
You can set a string at will, preferably a string.
(8) save it in the same directory as config. Inc. php. Now you can use phpMyAdmin in your browser.
So far, the automatic installation is complete.
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.