Considerations for building ASP and PHP local server environment

Source: Internet
Author: User

Building a running platform in WinXP is simple and does not have much attention. But building in Windows 2003 server is cumbersome. The main points to be noted are the following:

1, uninstall the old version first, and then reinstall. It is recommended that you do not overwrite the installation, because some file settings cannot be updated when the installation is overwritten. The reinstall software includes at least:
(1) IIS; (2) PHP; (3) MySQL; (4) MySQL Administrator; (5) Zend; (6) phpMyAdmin.
2. IIS is installed and includes at least the following components:
(1) Network services-Simple TCP/IP Services, (2) Application Server-asp.net (to run ASPX), (3) Application Server-internet Information Services (IIS)-Common file/internet Information Service Manager (4) Application Server-internet Information Services (IIS)-File Transfer Protocol (FTP) services (to run FTP), (5) Application Server-internet Information Services (IIS)-World Wide Web services-World Wide Web services/active Server Pages (To run ASP)
3, IIS configuration: Internet Information Services Manager-new Web site or FTP site (do not create a new "virtual directory"). If you need to modify or upload files, you should also check the "write" feature in addition to the "Run" scripting feature.
The Web service extension sets all to allow, at least: Active Server Pages. Click on "Add a new Web service extension", the extension "PHP 5.2.0", the required file "C:php5php5isapi.dll" and set to "allow" to support PHP.
4, PHP Installation:
(1) Use manual version installation, do not use Compression pack to install automatically.
(2) is installed in the "C:PHP5" directory, it is recommended not to install in D or e disk, because it may cause the Php5isapi.dll file can not be loaded.
(3) Whether the php.ini file has been changed (use php.ini-dist directly, do not need to use the recommended php.ini-recommended):
Short_open_tag = On (default is on so that PHP supports short identifiers)
Asp_tags = On (off to on so that PHP also supports ASP identifiers)
Output_buffering = On (off)
Register_globals = On (off to on to support legacy programs)
Post_max_size = 10M (default 8M, larger modification to support post content can be more)
Extension_dir = "C:php5ext" (default is null, must be modified to actual extended folder)
File_uploads = On (default on to support file uploads)
Upload_max_filesize = 20M (the default is 2M only, the modification is larger, so that supporting the upload of the file can be larger)
; Windows Extensions (before the Extension=php_mbstring.dll, etc, below the statement, all of them are deleted so that PHP can support the widest variety of extensions)
Mysql.default_host = "localhost"; mysql.default_user = "root"; Mysql.default_password = ""; These three sentences are usually not set, and the default is null.
Session.save_path = "C:php5sessiontemp" (You must enable the row and create a new folder Sessiontemp, which is designed to hold the session variable, and usually the Web site will use session)
(4) Whether the php.ini is clipped to the "system disk/windows/".
(5) "System Properties-advanced-environment variable-temp-path" under the new two path "; C:php5;c:php5ext" so that the system can find the extended file.
(6) Install as ISAPI mode: Internet Information Services Manager-Web site Properties
IP address needs to be selected (network connection-Local connection-attribute-internet protocol tcp/ip-properties: IP address 172.**.*.55, subnet mask 255.255.255.0, default gateway 172.**.*. 254, the preferred DNS server 202.106.0.20, the standby DNS server is empty);
ISAPI Filters-Add-Name: php-executable: C:php5php5isapi.dll
Home Directory-Configuration-mappings-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.