Considerations for building an ASP and PHP local server environment-PHP source code

Source: Internet
Author: User
Tags ftp site
Ec (2); it is very simple to build a running platform in winxp, and there are not many precautions. However, it is very troublesome to Build Windows 3server. Pay attention to the following issues: 1. Uninstall the old version and reinstall it. We recommend that you do not overwrite the installation because some file settings cannot be updated during installation. The re-installation software should include at least (1) IIS; (2) PHP; (3) MySQL; (4) MySQLAdministrator; (5) Z script ec (2 ); script

Building a running platform in winxp is simple and there are not many precautions. However, building on windows 2003 server is troublesome. Pay attention to the following issues:

1. Uninstall the old version and reinstall it. We recommend that you do not overwrite the installation because some file settings cannot be updated during installation. The software to be reinstalled must at least include:
(1) IIS; (2) PHP; (3) MySQL; (4) MySQL Administrator; (5) Zend; (6) phpMyAdmin.
2. Whether IIS is installed and includes at least the following components:
(1) Network Service-Simple TCP/IP service; (2) Application Server-ASP. NET (to run aspx); (3) Application Server-Internet Information Service (IIS)-Public file/Internet Information Service Manager; (4) application Server-Internet Information Service (IIS)-File Transfer Protocol (FTP) Service (to run ftp); (5) Application Server-Internet Information Service (IIS) -World Wide Web Service/Active Server Pages (to run ASP)
3. IIS configuration: Internet Information Service Manager-create a "website" or "FTP site" (do not create a "virtual directory "). If you need to modify or upload files, in addition to the "run" Script Function, you should also select the "write" function.
Web service extensions set all requests to "allow", including at least Active Server Pages. Click "Add a new Web Service extension", the extension "PHP 5.2.0", the required file "C: PHP5php5isapi. dll", and set it to "Allowed" to support php.
4. PHP installation:
(1) Use the manual version for installation, and do not use the compressed package for automatic installation.
(2) Whether to install it in the "C: PHP5" directory. We recommend that you do not install it on disk D or disk E, because the php5isapi. dll file may not be loaded.
(3) Whether the PHP. ini file has been changed (directly use php. ini-dist without using the recommended php. ini-recommended ):
Short_open_tag = On (On by default, so that php supports short identifiers)
Asp_tags = On (switch Off to On so that php also supports asp identifiers)
Output_buffering = On (switch Off to On)
Register_globals = On (switch Off to On to support old programs)
Post_max_size = 10 M (the default value is 8 M, which is larger to support more Post content)
Extension_dir = "c: PHP5ext" (empty by default, must be changed to the actual extension folder)
File_uploads = On (On by default to support file upload)
Upload_max_filesize = 20 M (the default value is only 2 M. The modification is larger so that the files that can be uploaded can be larger)
Windows Extensions)
Mysql. default_host = "localhost"; mysql. default_user = "root"; mysql. default_password = ""; you do not need to set these three statements. The default value is null.
Session. save_path = "c: PHP5sessionTEMP" (This row must be enabled and a new folder named sessionTEMP is created to store session variables. sessions are usually used by websites)
(4) Whether PHP. ini is cut to "System Disk/windows.
(5) Whether two paths are added under "system properties-advanced-Environment Variable-TEMP-Path"; c: PHP5; c: PHP5ext ", so that the system can find the extension file.
(6) install ISAPI: Internet Information Service Manager-website Properties
Select the IP address (network connection-local connection-properties-Internet protocol TCP/IP-properties: IP address 172. **. *. 55, subnet mask 255.255.255.0, default gateway 172. **. *. 254. The preferred DNS server is 202.106.0.20, And the backup DNS server is empty );
ISAPI filter-add-Name: PHP-executable file: c: PHP5php5isapi. dll
Home Directory-configuration- ing-add-expand

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.