PHP5.3.1 installation tutorial [Windows-based Apache]. After learning PHP for so long, I found that WAMP has updated several versions yesterday, and my version is old. of course, the version is not important. to review the WAMP configuration method, I have been studying PHP for so long. yesterday I found that WAMP has updated several versions, and my version is old. of course, the version is not important.
I reviewed the WAMP configuration method. I manually and automatically configured it in the virtual machine and downloaded the latest recommended version.
I sent it to the jar, so I didn't have it. later I summarized it and found that there were still many problems, so I shared it and hoped to share it with everyone.
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.
PHP5.3.1 installation and configuration video tutorial
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: WAMPApache2.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: WAMPPHP5.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: WAMPPHP5.3.1; C: WAMPPHP5.3.1ext;
You can also add C: WAMPApache2.2.14in so that if Apache fails
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: WAMPMySQL5.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: WAMPMySQL5.1.41in, then open the command window and enter:
Mysqld -- install MySQL -- defaults-file = C: WAMPMySQL5.1.41my. ini
After installation, enter mysql-u root in the command window.
Set the root account password: set password for root @ localhost = password (123456 );
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: WAMPApachehtdocsphpMyAdmin.
(12) open the config. sample. inc. php file 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] = 123456;
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: WAMPApache2.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: WAMPPHP5.3.1.
(3) after installation, find the ntwdblib. dll file on the Internet and put it in the C: WAMPPHP5.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 the mysql-5.1.41-win32.msi and install it in C: WAMPMySQL5.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: WAMPApachehtdocsphpMyAdmin.
(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] = 123456;
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.
I reviewed the WAMP configuration method...