Modular installation of PHP in NT series OS

Source: Internet
Author: User

In various network programming languages. PHP is easy to learn and powerful, attracting many programmers. However, the installation of PHP has become a obstacle for many beginners. Next, I will give you a more detailed introduction of a modular method to install PHP and common modules on the Microsoft Windows 2000/XP platform.
 
I. Basic Knowledge
Before introduction, please first learn some basic PHP installation knowledge. PHP has two different installation methods: CGI and modularization.
For PHP installed in CGI Mode, each time the PHP script is parsed, the server will generate a temporary PHP parser (process) to parse the PHP script. When the traffic volume is large, the Server performance will be reduced.
The modular installation of PHP runs in the same memory address as the Apache server. It has a considerable performance improvement and higher security than CGI.
 
Therefore, modular installation is superior to CGI installation. The related software is listed below:
Apache server version 2.0.43 is used. : Http://www.apache.org/
PHP uses a newer version 4.32 with good security and stability, and supports modular installation. : Http://www.php.net/
Ii. Install the Apache server
When the relevant software is ready. Install Apache 2.0.43 first. The default installation path is the Start Menu of C:. We recommend that you change the path to the C root directory. In this way, it is more convenient for daily use.
After Apache is installed. Note that a red feather flag will appear in the system tray area of the taskbar. If a green triangle is under the feather. Indicates that Apache is successfully installed and is running. If a red stop sign appears, it indicates a problem occurs during the installation process. Generally, a port conflict occurs. If a server such as IIS is installed on your machine, check whether port 80 is occupied by IIS. If you want Apache to use another port, OK. Choose Edit the Apache httpd in Configure Apache Server of Apache HTTP Server 2.0.43 in the Start Menu. conf Configuration File. After opening the File (we recommend that you install a text editor such as UltraEdit with a line number), the words "Listen 80" are displayed in around 120 lines. Indicates that Apache uses port 80 by default. You can change it to the port you want. You only need to add the modified port number during browsing. For example, http: // localhost (: Port Number)/index.html. en. This is the start page of Apache.
Iii. modular installation of PHP
After installing Apache, an important step begins. Decompress the downloaded PHP4.32 to the c root directory. Generally, the default folder name should be in the php-4.3.2-Win32 format and be changed to php. Change the php. ini-dist file to php. ini, and copy the file to the C: WINNT or C: WINDOWS directory. (Here is a little bit of knowledge. If the system directory and PHP Directory both have the php. ini configuration file, PHP will first execute the one in the PHP Directory !) This is also a problem that many friends often encounter when using PHP. The php. ini in the system directory was modified, but the desired result was not implemented after running. The reason is here!

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.