I. preparations Apache2 (Win32) fully modular installation of perl, php, and ssl1. If you have installed IIS on your machine, stop all web sites in IIS or change the port to another one. 2. Download the software APACHE2.0.48Perl4.3.1PHP4.3.1MYSQL4.0.12ZendOptimiz I. preparations: Apache2 (Win32) fully modular installation of perl, php, ssl
1. If you have installed IIS on your machine, 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 steamed stuffed bun 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. start installation
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)
Edit X: apache2confhttpd. conf
Find # NameVirtualHost *
Change to NameVirtualHost 192.168.0.1 # note that this IP address is the IP address of your host.
Find ServerName domain.com and change it 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) 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, the entire directory can be run.
ScriptAlias/php4/"/php-bin"
# Specify the php script running Directory. If this parameter is not specified, the entire directory can be run.
Errordocument. nbsp400/400.html
# For custom error files, note that the error files must be stored in the root directory,
# You can also create another VM, such as errors.domain.com, to store the error file in its root directory.
# Then the error document should be "Errordocument. nbsp400 http://errors.domain.com/400.html"
* ** If you choose to set a virtual host, set INTERNET options-connection-LAN settings in the browser
Select "use proxy server", address: 192.168.0.16 (write your host IP address, debug 127.0.0.1 on the local machine) Port: 80
If only one of your hosts is on the LAN, you should add 127.0.0.1 to the local machine for debugging.
1.3: change the file name X: apache2htdocsindex.html. en to c: apachehtdocsindex.html.
1.4: access http: // localhost or http://domain.com. you can see the page on OK!
2. Install MYSQL
2.1: unzip the mysql-4.0.12-win.zip to the directory X: MYSQL
2.2: Enter D: MYSQL, run SETUP. EXE, and press Enter. the default installation path is X: MYSQL.
3. Install PHP
3.1: decompress php-4.3.1-win32.zip to the directory X: PHP
3.2: go to X: PHP and start configuring PHP.
3.3: change the file name php. ini-dist to php. ini.
(Use the PHP. ini file in the corresponding serv.rar package, which can be directly used without modification)
3.4: open php. ini,
Find extension = php_gd.dll and remove the semicolon
Find extension = php_gd2.dll and remove the semicolon
Add extension‑php_gd_gif.dllin the same location. This file contains the following in my website's serv.rar:
3.5: copy php. ini and php4ts. dll to the system32 and system directories in the WIN2000 system installation directory.
3.6: Open the httpd. conf configuration file of APACHE, and add the following statement (any location ):
LoadModule gzip_module modules/ApacheModuleGzip. dll
Note: ApacheModuleGzip. dll (I .e., mod_gzip) can be used to compress static web pages in the package.
4. Install ZendOptimizer
4.1: install zendoptimizer-21_12.16.1.0a-windows-i386.exe to the directory X: zend
The remaining steps are good.
5. Install PERL
5.1: install ActivePerl-5.8.0.804-MSWin32-x86.msi to directory C: usr,
Note that your windows Installer service must have been installed with a windows service pack patch.
6. other settings
6.1: find DirectoryIndex and add the following statement
DirectoryIndex index.html. var index.htm index. php index.shtml
DirectoryIndex index. php3 index. php4 index. cgi index. pl index.html
If you want to add SSI, remove the # before the following two rows.
AddType text/html. shtml
AddHandler server-parsed. shtml
6.2: find ALL "Options FollowSymLinks" and change ALL to "Options ALL". pay attention to case sensitivity. no "" is required.
Find ALL "AllowOverride None" and change ALL to "AllowOverride ALL". note the case sensitivity. do not add.
6.3: Find # ScriptAlias/cgi-bin/"X:/Apache2/cgi-bin/" and remove #
6.4: find AddHandler cgi-script. cgi followed by. pl, that is
AddHandler cgi-script. cgi. pl
6.5: restart Apache HTTP Server
7: test
7.1: compile the test file env. php (copy it to the directory of php that can be executed)
File content: (actually just one line)
Access: http: // localhost/info. php or http://domain.com/info.php
If you see the welcome test page of PHP, the installation is successful!
Compile the test file env. cgi (copy it to the cgi directory that can be executed in the directory)
Access: http: // localhost/cgi-bin/env. cgi or http: // cgi-bin/env. cgi
If you see the cgi test page, the installation is successful!
So far, your system has been configured! Are there any other useless items in my website's serv.rar?
Put it in a proper place if any.
You have configured win2000 + apache + php + mysql + mod_perl + perl + mod_ssl + ZendOptimizer
In addition, mod_ssland opensslare compiled in the package of serv.rar and can be directly used.
If you really want to use these two things, you should know about ca,
Websites: http://www.wise-tech.com.cn/bbs/forum/openssl/Default.asp
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