Build WAMP environment under Windows system

Source: Internet
Author: User
Tags mysql download php and mysql php download

Wamp is the WinDOS Apache Mysql PHP integrated installation environment, which is the Apache, PHP and MySQL Server Software under window. The PHP environment configuration is a critical part of this article for PHP in the local environment configuration for a brief description.

1. Installing Apache

Get Apache Server Download, this is the window executable program that includes the Open SSL module, run directly to the directory we need to place. Note the use of port 80, so that you do not have to make additional port number to access the local HTTP server, everything installed, open the browser, enter http://localhost for testing, "it Works" then the installation is successful.

2. Install MySQL

Get Mysql Download

Install MySQL, this is packaged in the installation package, all the way to install on the prompt, there is also a MySQL Workbench, this is a visual MySQL management software, you can come down together or choose another handy management client can be. With the admin client link local MySQL, can connect on the instructions to install successfully.

3. Install PHP

To get a php download, you can see multiple versions offering options:

If the Apache version is 1 or 2, then download VC6 compiled version, if IIS is used as server, then use VC9 compiled version, X86 represents 32-bit operating system, X64 represents 64-bit operating system.

The thread safe and non thread safe depend on how the Web server executes PHP. In the case of ISAPI, the DLL needs to be called to handle user requests, and because the associated DLLs do not disappear immediately after processing, thread safety checks are required to use multithreading, which improves efficiency and uses thread safe. If it is fast CGI, because only single-threaded operation, so there is no need for thread concurrency security checks, remove the thread security check is equal to eliminate unnecessary system costs to improve the speed of operation, using Non Thread safe is better.

There is also a direct installation package, directly installed, but we choose the ZIP package for manual installation, one manual installation more flexible, and the other can understand the internal structure of PHP, this for further use of PHP is more important oh.

Unzip the package to your target disk directory, such as the extracted directory is similar to C:\php, note that it is best to use no space between the directory, because some Web server may not support the path with spaces.

Configure the environment variables for Php5ts.dll brutishness. Under the root directory, some DLLs contain the name of the Web server, and these related server modules make it more efficient for Web server to run PHP. All modules need to be php5ts.dll, so the system needs to know his location, and the search order is generally:

The execution location of the php.exe, or the execution directory of the Web server (typically bin) if the Web server uses the server module

Path under environment variable path

Add the current root directory to the path, so no matter how the Web server is configured, the system can find the Php5ts.dll

Configure PHP initialization information, directly php.ini-production copy after renaming to PHP.ini, PHP runtime will automatically find and read php.ini files. In addition, if you use the NTFS format on Windows NT, 2003, XP, or php.ini, make sure that the user running Web server has Read permission to the.

Associated with PHP and Apache, this configuration after Apache will have PHP parsing capabilities. There are two ways to set up PHP to work together with Apache. One is as CGI, the other is to install as an Apache module, the above mentioned server module is better, so I install in this way, add the following three lines to Apache httpd.conf.

The specific code is as follows:

LoadModule php5_module "D:/php/php5apache2_2.dll" AddType application/x-httpd-php phpphpinidir "d:/php"

Integrated Inspection

Finally, check to see if our environment is working properly.

Create a new text name with the extension Test.ini

Add the following code to the file as follows:

<?php     phpinfo ();?>

Put it in the Apache Server htdocs directory, enter http://localhost/test.php in the browser, if the PHP version and component-related statistics, the normal work. One of the MYSQLND for enable explains that MySQL driver is also enabled normally.

Source Address:http://www.yoodb.com/article/display/256

Build WAMP environment under Windows system

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.