PHP5.3.1 Installation Tutorial _php tutorial based on Windows Apache

Source: Internet
Author: User
Are downloading the latest recommended version, originally did not expect to send to the jar, so did not, later summed up to Notepad when found there are quite a lot of problems, so share out, I hope to everyone
Helpful. In doing the experiment, I also refer to the jar of other predecessors written tutorials, here thank you. The steps are relatively brief, 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) Follow the prompts to install Apache 2.2.14, there are two versions (specifically what the difference between the online answer), all line, installed in the C:\WAMP\Apache2.2.14.
(2) Unzip the Php-5.3.1-win32-vc6-x86.zip (choose Vc6,thread Safe version) to C:\WAMP\PHP5.3.1.
(3) Open httpd.conf, 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
Switch
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 that if Apache goes wrong, you can
command debugging directly in the command console.
(5) Modify PHP.ini:
Locate 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 previous semicolon. This removes the preceding semicolon as needed.
(6) Restart Apache and write a PHP Web page test with PHP statements.
(7) Unzip the mysql-noinstall-5.1.41-win32.zip into the C:\WAMP\MySQL5.1.41
(8) Rename My-large.ini to My.ini, find [mysqld] and 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 and enter:
Mysqld--install MySQL--defaults-file=c:\wamp\mysql5.1.41\my.ini
After the installation is complete, in the command window, enter: Mysql-u root
Set 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) Follow the prompts to install the Zendoptimizer-3.3.0a-windows-i386.exe.
(11) Unzip the phpMyAdmin-3.2.4 into the C:\WAMP\Apache\htdocs\phpMyAdmin.
(12) Open the file config.sample.inc.php, look for the line of code:
$cfg [' Servers '] [$i] [' controluser '] = ' PMA ';
$cfg [' Servers '] [$i] [' controlpass '] = ' pmapass ';
Switch
$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) Save in the same directory as config.inc.php, now you can use phpMyAdmin in the browser.
This completes the manual installation.
************************************************************************************
#####################################################################
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
② Automatic Installation:
(1) Follow the prompts to install Apache 2.2.14, there are two versions (specifically what the difference between the online answer), all line, installed in the C:\WAMP\Apache2.2.14.
(2) Run Php-5.3.1-win32-vc6-x86.msi (select Vc6,thread safe version), installed in the C:\WAMP\PHP5.3.1.
(3) After installation, find Ntwdblib.dll This file on the Internet and put it in the C:\WAMP\PHP5.3.1 directory (this practice is not recommended).
or open php.ini, comment out the following sentence (that is, add a semicolon in front, if it has been commented better):
Extension=php_mssql.dll
Then restart Apache, then it should be possible (if you restart Apache directly, there may be an error).
Write a PHP page under 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, and connect to MySQL to verify that the installation was successful.
(6) Unzip the phpMyAdmin-3.2.4 into the C:\WAMP\Apache\htdocs\phpMyAdmin.
(7) Open the file config.sample.inc.php, look for the line of code:
$cfg [' Servers '] [$i] [' controluser '] = ' PMA ';
$cfg [' Servers '] [$i] [' controlpass '] = ' pmapass ';
Switch
$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, preferably by setting a string.
(8) Save in the same directory as config.inc.php, now you can use phpMyAdmin in the browser.
This completes the automatic installation.

http://www.bkjia.com/PHPjc/321213.html www.bkjia.com true http://www.bkjia.com/PHPjc/321213.html techarticle are downloading the latest recommended version, originally did not expect to send to the jar, so did not, later summarized to Notepad when found still have a lot of problems, so share out ...

  • 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.