PHP5.3.1 installation tutorials based on Windows Apache _php tips

Source: Internet
Author: User
Tags win32 zip phpmyadmin
are download the latest recommended version, the original did not expect to send to the jar, so there is no screenshot, and then summed up to notepad when found that there are quite a lot of problems, so they share out, hope for everyone
Help. In doing the experiment, I also refer to the jar of other predecessors to write tutorials, thank you here. The steps are written in a nutshell, but important
Things are basically written out, there is no understanding 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 Apache 2.2.14, there are two versions (specifically what the difference between the Internet has the answer), all line, installed in the C:\WAMP\Apache2.2.14.
(2) Extract Php-5.3.1-win32-vc6-x86.zip (choose 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
Found it
DirectoryIndex index.html
To
DirectoryIndex index.html index.php
  
(4) Setting environment variable: C:\WAMP\PHP5.3.1; C:\WAMP\PHP5.3.1\ext;
You can also add C:\WAMP\Apache2.2.14\bin, so if Apache goes wrong, you can
command debugging directly in the command console.
(5) Modify PHP.ini:
Find Extension_dir, set to Extension_dir = "C:/wamp/php5.3.1/ext"
Locate the following extension:
; Extension=php_gd2.dll
; Extension=php_mbstring.dll
; Extension=php_mysql.dll
; Extension=php_mysqli.dll
Remove the semicolon before it. This removes the preceding semicolon as needed.
(6) Restart Apache, write PHP Web test with PHP statements.
(7) Decompression Mysql-noinstall-5.1.41-win32.zip to C:\WAMP\MySQL5.1.41
(8) Rename My-large.ini to My.ini, find [mysqld] 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) Set the environment variable first: C:\WAMP\MySQL5.1.41\bin, then open the Command window, enter:
Mysqld--install MySQL--defaults-file=c:\wamp\mysql5.1.41\my.ini
After the installation is complete, enter in the command window: mysql-u root
Set the root account password: Set password for ' root ' @ ' localhost ' = password (' 123456 ');
After that, you can use MySQL, restart Apache, and write a PHP Web test.
(10) Install Zendoptimizer-3.3.0a-windows-i386.exe according to the prompts.
(11) Decompression phpMyAdmin-3.2.4 to C:\WAMP\Apache\htdocs\phpMyAdmin.
(12) Open file config.sample.inc.php, find the line of code:
$cfg [' Servers '] [$i] [' controluser '] = ' PMA ';
$cfg [' Servers '] [$i] [' controlpass '] = ' pmapass ';
To
$cfg [' Servers '] [$i] [' controluser '] = ' root ';
$cfg [' Servers '] [$i] [' controlpass '] = ' 123456 ';
Note: If you need to use phpMyAdmin through remote server debugging, you cannot leave the Blowfish_secret content blank.
You can set a string arbitrarily.
(13) with config.inc.php saved in the same directory, you can now use phpMyAdmin in the browser.
This completes the manual installation.
************************************************************************************
#####################################################################
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
② Automatic Installation:
(1) According to the prompts to install Apache 2.2.14, there are two versions (specifically what the difference between the Internet has the answer), all line, installed in the C:\WAMP\Apache2.2.14.
(2) Run Php-5.3.1-win32-vc6-x86.msi (choose Vc6,thread Safe Version), installed in C:\WAMP\PHP5.3.1.
(3) After the installation of the online find Ntwdblib.dll this file, placed in the C:\WAMP\PHP5.3.1 directory (this practice is not recommended).
or open the php.ini, comment out the following sentence (that is, add a semicolon in front, if it has been commented that better):
Extension=php_mssql.dll
Then restart Apache, which should be OK (if you restart Apache directly, there may be an error).
Write a PHP Web test.
(4) Run Mysql-5.1.41-win32.msi, installed in the C:\WAMP\MySQL5.1.41.
(5) Restart Apache, create a new PHP Web page, connect MySQL to verify that the installation is successful.
(6) Decompression phpMyAdmin-3.2.4 to C:\WAMP\Apache\htdocs\phpMyAdmin.
(7) Open file config.sample.inc.php, find the line of code:
$cfg [' Servers '] [$i] [' controluser '] = ' PMA ';
$cfg [' Servers '] [$i] [' controlpass '] = ' pmapass ';
To
$cfg [' Servers '] [$i] [' controluser '] = ' root ';
$cfg [' Servers '] [$i] [' controlpass '] = ' 123456 ';
Note: If you need to use phpMyAdmin through remote server debugging, you cannot leave the Blowfish_secret content blank.
You can set up a string, preferably a string.
(8) with config.inc.php saved in the same directory, you can now use phpMyAdmin in the browser.
This completes the automatic installation.
Related Article

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.