About the Windows PHP Configuration Application Server Steps _php Tutorial

Source: Internet
Author: User
Tags learn php
PHP features strong and free open source language, by the programmer's favorite, here teaches are going to learn PHP friends in Windows PHP Configuration Application Server. To work with dynamic WEB pages, you need an application server.

An application server is a software that helps a Web server process a Web page that contains server-side scripts or tags. When a browser requests such a page, the WEB server first passes the page to the application server for processing before it is sent to the browser. For more information, see Understanding WEB applications. Make sure that the PHP application server is installed and running on the system that is running IIS. (IIS may be located on your hard disk or on a remote Windows computer.) You can download and install the PHP application server from the PHP Web site (url www.php.net/downloads.php).

Install Windows PHP Configuration Application Server (Windows)

In PHP 5, by default, Windows installer does not install or enable extensions that allow PHP to handle MySQL database servers. You must manually install and enable the extension. For Windows PHP configuration, do the following:

If applicable, log on to the Windows system by using an administrator account.

Download the Windows PHP 5.x Setup program from PHP Web site www.php.net/downloads.php.

Double-click the downloaded installer file and follow the on-screen installation instructions.

After you have successfully installed PHP, download the Windows PHP 5.x compressed package from PHP Web site www.php.net/downloads.php, and then unzip the package to a temporary folder on your hard disk. The package contains the extensions required to process MySQL.

In the temporary folder containing the extracted files, locate the folder named Ext and copy it to the c:php folder. The Ext folder contains frequently used PHP extensions, including MySQL extensions.

In the C:windows folder, locate the file named PHP.ini, and open the file in Notepad. You must edit the file to enable the MySQL extension.

Locate the following line in the php.ini file: Extension_dir = "./" This line specifies the location of the PHP lookup extension.

Edit the line as follows: Tip do not ignore the last slash. Extension_dir = "C:phpext"

Locate the following line in the php.ini file: "; Extension=php_mysql.dll" the semicolon at which the line starts (;) Instructs PHP to ignore the line.

Delete the semicolon at the beginning of the line to enable the extension to become: "Extension=php_mysql.dll"

Save and close the php.ini file.

In the temporary folder containing the extracted PHP files, locate the file named Libmysql.dll and copy it to the C:windowssystem32 folder. IIS handles PHP 5 and requires the file for MySQL.

Restart IIS.


http://www.bkjia.com/PHPjc/446478.html www.bkjia.com true http://www.bkjia.com/PHPjc/446478.html techarticle PHP features strong and free open source language, by the programmer's favorite, here teaches are going to learn PHP friends in Windows PHP Configuration Application Server. To handle dynamic ...

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