PHP5.3.1 installation tutorial [based on the Windows apache]_php Tutorial

Source: Internet
Author: User
Learning PHP So long, yesterday found that Wamp has been updated several versions, my version is very old, of course, the version is not important, for

A review of Wamp configuration method, I am in the virtual machine manually and automatically configured under, are downloading the latest recommended version, originally did not think

Sent to the jar, so did not, later summed up to the notepad when found there are still 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.

PHP5.3.1 installation configuration video tutorial

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:wampapache2.2.14.

(2) Unzip the Php-5.3.1-win32-vc6-x86.zip (choose Vc6,thread Safe version) to c:wampphp5.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:wampphp5.3.1; C:wampphp5.3.1ext;

You can also add c:wampapache2.2.14in, 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:wampmysql5.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:wampmysql5.1.41in, then open the Command window and enter:

Mysqld--install MySQL--defaults-file=c:wampmysql5.1.41my.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:wampapachehtdocsphpmyadmin.

(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:wampapache2.2.14.

(2) Run Php-5.3.1-win32-vc6-x86.msi (select Vc6,thread safe version), installed in the c:wampphp5.3.1.

(3) After installation, find Ntwdblib.dll This file on the Internet and put it in the c:wampphp5.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:wampmysql5.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:wampapachehtdocsphpmyadmin.

(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/486432.html www.bkjia.com true http://www.bkjia.com/PHPjc/486432.html techarticle study PHP So long, yesterday found that Wamp has been updated several versions, my version is very old, of course, the version is not important, in order to review the Wamp configuration method, I in virtual ...

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