Apache PHP5.3.1 installation tutorial based on Windows

  • 2020-03-31 20:16:26
  • OfStack

Download the latest version of the recommended version, and did not think of the original sent to the forum, so there is no screenshot, and then summarized to notepad found that there are still a lot of problems, so share out, hope to everyone
It helps. When doing the experiment, I also referred to other seniors in the forum to write the tutorial, here thanks. The steps are brief but important
The basic things are written out, do not understand can use the search engine, if I am online, I will try to answer.
The installation process is as follows:
Manual installation:
(1) according to the prompts to install Apache2.2.14, there are two versions (specific what the difference is online), can be installed in C: WAMP\Apache2.2.14.
(2) unzip 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
To:
DirectoryIndex index. HTML index. PHP

(4) set the environment variable: C:\WAMP\PHP5.3.1; C: \ \ WAMP \ PHP5.3.1 \ ext.
You can also add C:\WAMP\Apache2.2.14\bin if Apache makes an error
Debug by typing commands directly in the command console.
(5) modify php.ini:
Find extension_dir and set it to extension_dir = "C:/WAMP/PHP5.3.1/ext"
Find the following extension:
; The extension = php_gd2. DLL
; The extension = php_mbstring. DLL
; The extension = php_mysql. DLL
; The extension = php_mysqli. DLL
Get rid of the semicolon. This will remove the semicolon as needed.
(6) restart Apache and write a PHP web test with PHP statements.
(7) unzip mysql-noinstall-5.1.41-win32.zip to C:\WAMP\MySQL5.1.41
(8) rename my-large.ini to my.ini, find [mysqld] and add the following statement:
# set the 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 input:
Mysqld -- install MySQL -- defaults - file = C: \ \ WAMP \ MySQL5.1.41 \ my ini
After the installation is complete, enter mysql-u root in the command window
Set root account password: set password for 'root'@'localhost' = password('123456');
Then you can use mysql, restart Apache, and write a PHP web test.
(10) install ZendOptimizer-3.3.0 a-windows-i386.exe as prompted.
(11) unzip phpmyadmin-3.2.4 into C:\WAMP\Apache\htdocs\phpMyAdmin.
(12) open the file config.sample.inc. PHP and find the code line:
/ / $CFG [' the Servers'] [$I] [' controluser] = 'pma';
/ / $CFG [' the Servers'] [$I] [' controlpass] = 'pmapass';
To:
The $CFG [' the Servers'] [$I] [' controluser] = 'root';
The $CFG [' the Servers'] [$I] [' controlpass] = '123456';
Note: if you need to use phpMyAdmin through remote server debugging, you cannot leave the blowfish_secret content empty.
You can set any string.
(13) saved in the same directory as config.inc. PHP, you can now use phpMyAdmin in your browser.
At this point, the manual installation is complete.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @
(2) automatic installation:
(1) according to the prompts to install Apache2.2.14, there are two versions (specific what the difference is online), can be installed in C: WAMP\Apache2.2.14.
(2) run php-5.3.1-win32-vc6-x86. msi(select VC6, Thread Safe version), installed in C:\WAMP\PHP5.3.1.
(3) after installation, find the file ntwdblib.dll on the Internet and put it in the directory C:\WAMP\PHP5.3.1 (this is not recommended).
Or open php.ini and comment out the following sentence (just put a semicolon in front of it, or better yet, if it's already commented) :
The extension = php_mssql. DLL
Then restart Apache, which should do the job (if you restart Apache directly, you might get an error).
Write a PHP web page to test.
(4) run mysql-5.1.41-win32.msi installed in C:\WAMP\MySQL5.1.41.
(5) restart Apache, create a new PHP web page, and connect to MySQL to verify the successful installation.
(6) unzip phpmyadmin-3.2.4 into C:\WAMP\Apache\htdocs\phpMyAdmin.
(7) open the file config.sample.inc. PHP and find the code line:
/ / $CFG [' the Servers'] [$I] [' controluser] = 'pma';
/ / $CFG [' the Servers'] [$I] [' controlpass] = 'pmapass';
To:
The $CFG [' the Servers'] [$I] [' controluser] = 'root';
The $CFG [' the Servers'] [$I] [' controlpass] = '123456';
Note: if you need to use phpMyAdmin through remote server debugging, you cannot leave the blowfish_secret content empty.
You can set any string, preferably a string.
(8) saved in the same directory as config.inc. PHP, you can now use phpMyAdmin in your browser.
At this point, the automatic installation is complete.

Related articles: