Introduction to installing PHP servers in Windows

Source: Internet
Author: User
Tags perl script
I. preparations Apache2 (Win32) fully modular installation of perl, php, ssl1, and an installed WIN2000 server. note: if IIS is already installed on your machine, stop all web sites in IIS or change the port to another one. 2. download software I. preparations Apache2 (Win32) complete modular installation of perl, php, ssl

1. for an installed WIN2000 server, please note: If your machine has already installed IIS, stop all web sites in IIS or change the port to another one.

2. Download Software

APACHE 2.0.48
Perl 4.3.1
PHP 4.3.1
MYSQL 4.0.12
ZendOptimizer
There are several other things that are very important. they will be used in later installation (not all of them are used. some files are compiled and can be used directly)

1: http://www.xdiy.net/soft/serv.rar

1: http://www.techxy.com/xdiy/serv.zip

The package contains mod_perl 1.9/mod_ssl 2.0.43/OpenSSL 0.9.6h/mod_jk/ApacheModuleGzip. dll.
Gd 2.0.9/gdpm/perldiver 1.1/Chinese php. ini/editplus/php_gd_gif.dll

II. installation start

1. install APACHE

1.1: run apache_2.0.44-win32-x86-no_ssl.msi,

Assume that the default installation path is X:. in this way, it is installed in the path of APACHE2 on disk x, and the default domain is domain.com.

1.2: (as a virtual host, this step can be left blank)

Compile X: apache2confhttpd. conf

Find # NameVirtualHost *

Changed to NameVirtualHost 192.168.0.1 # pay attention to the IP address set for your host

Corrected ServerName domain.com to # ServerName domain.com.

Find ServerAdmin * (* the email address you entered when installing apache) and change it to # ServerAdmin

Next, add the following statement :#...... It's my comment. you don't need to add it. just check it out.


ServerAdmin webmaster@domain.com
# Host administrator (contact person) email address
ServerName domain.com
# Host name (host header name)
ServerAlias domain.com www1.domain.com
# Host name (host header names that can also take effect)
Document. oot X:/VirtualHost/domain.com/www.domain/wwwroot
# Www root directory of the VM.
ErrorLog X:/VirtualHost/domain.com/www.domain/logs/www.domain-error_log
# Error log document, can also be ../logs/www. domain-error_log
CustomLog X:/VirtualHost/domain.com/www.domain/logs/www.domain-access_log common
ScriptAlias/cgi-bin
# Specify the perl script running Directory. If this parameter is not specified, all directories can be run.
ScriptAlias/php4/'/php-bin'
# Specify the php script running Directory. of course, if not specified, all directories can be run.
Errordocument. nbsp400/400.html
# For custom error files, note that the error files must be placed in the root directory,
# Alternatively, you can use a single virtual host to store the error file in the root directory of errors.domain.com.
# The error document should be 'errordocument. nbsp400 http://errors.domain.com/400.html'

** If you choose to set up a virtual host, set the INTERNET option in the browser-connection-LAN settings, and select "application proxy server", address: 192.168.0.16 (write the IP address of your host, local debugging 127.0.0.1) Port: 80. Assume that only one of the hosts on the LAN is starting up, add 127.0.0.1 to the local machine for debugging.

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.