PHPforWindows installation and configuration-decompressed version

Source: Internet
Author: User
PHPforWindows: PHP (foreign name: PHP: Hypertext Preprocessor, Chinese name: "Hypertext Preprocessor") is a common open source scripting language. The syntax absorbs the features of C, Java, and Perl, which is easy to learn and widely used and mainly applies to the Web development field. PHP's unique syntax is a mix of C, Java, Perl, and PHP's own syntax. It can execute dynamic web pages more quickly than CGI or Perl. Compared with other programming languages, PHP embeds programs into HTML (an application under the standard general Markup Language) documents for execution, the execution efficiency is much higher than the CGI that completely generates the HTML tag. PHP can also execute the compiled code to encrypt and optimize code execution, so that the code runs faster.

1. Download

: Http://windows.php.net/downloads/releases/php-5.5.24-Win32-VC11-x64.zip

II. Installation

First, decompress the downloaded zip package and place it on disk D. name it php, for example, D: \ php \, this directory should contain directories such as dev, ext, and lib and a large number of files;

III. configuration

Go to the D: \ php \ directory, find the php. ini-development File, copy it, rename it as php. ini, open the file, and modify some options:

Error_reporting = E_ALL
Display_errors = On
Extension_dir = "D: \ php \ ext"

; Dynamic expansion. you can remove the comments before extension as needed;
Such as loading PDO and MySQL
Extension = php_pdo.dll
Extension = php_pdo_mysql.dll

; CGI settings
Cgi. fix_pathinfo = 1

Note: make adjustments based on your actual needs and situations;

If the WEB Server program uses nginx (Nginx must work with FastCGI Server to process requests), run the PHP FastCGI Server manager as follows:

D:/php/php-cgi.exe-B 127.0.0.1: 9000-c D:/php. ini

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.