PHP Basic tutorial for building PHP Local debugging environment

Source: Internet
Author: User

For the Windows platform,PHP provides an installer, but the installer cannot be run directly to create a personal server platform, but must be embedded into an existing server platform, such as theWindows NT IIS or the PWS under Windows , as well as Apache and so on. Based on your own application experience, brother even PHP training

To build a personal server platform based on PWS .

Php

The process of debugging the environment is written out.

Before the installation, download the PHP installation program under Windows , at present compared to the new version is 4.0, in a large web site are downloaded. Really can't find, can directly to PHP site Http://www.php.net Download, in that, can get updated information. The downloaded file is a compressed package, generally named:php-4.0.x-win32.zip,x represents the version number, you can see the corresponding version, of course, the newer the better. Unzip it into the c:\PHP directory ( specifically under section 3 below. ) You can see that the directory contains all of the files required by PHP .

The preparation is done, the following can start the real installation. First of all, needless to say, the first installed Microsoft's PWS, and set up a variety of PWS parameters and coherent network settings, specific can see the coherent material, I say, you may say I cheat. After installation, it is better to test first, otherwise, the following work is white. Below, a few steps into the PHP embedded installation.

  1. into the C:\PHP folder, you can see some *.dll files and other coherent files, the DLL files that start with php_ can be kept in C: \ PHP , the other DLL files must copy the system's search path, compared to commonly used is the c:\windows\system folder.

  2. in the c:\php folder, look for the name php.ini-dist ( no extension ), change the file name to php.ini, open the file with Notepad, Can see inside is the PHP system configuration information, specific information to examine the instructions inside. But it is in English, it will cost brains more. When the corresponding information is corrected, copy the php.ini into the C:\Windows folder and pay attention to the read-only attribute.



PHP Basic tutorial for building PHP Local debugging environment

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.