Apache1.3.22forWin32 + PHP4.0.6 + ActivePerl5.006001 + ZendOptimizerv1.1.0 + compatible. Xforwin32 although ** can be poor (it is too far from IIS, hopefully 2. Xforwin32 will be available early), but its
Apache 1.3.22 for Win32 + PHP 4.0.6 + Active Perl 5.006001 + Zend Optimizer v1.1.0 + mod_gzip 1.3.19.1a + MySQL 4.0.0 Alpha
Although Apache 1.X for win32 is ** poor in performance (it is too far behind IIS compared to 2.X for win32), it has fewer bugs and consumes less resources, moreover, its modular model makes it easier to add functions. PHP-4 has the characteristics of fast execution, ** high efficiency, PERL provides perl-cgi support, Zend Optimizer is to accelerate the php program, mod_zip is used to compress the web server output data, mySql is a database. The following is based on win2k/xp. it is too troublesome for win9x to run these service software as a service.
I,
Software Download location:
Apache: http://www.apache.org/dist/httpd/binaries/win32/
PHP: http://www.php.net/downloads.php (download .zip)
Active Perl: http://www.activestate.com/Products...l/download.plex (download win32)
Zend Optimizer: http://www.zend.com/store/getfreefi...pid=13&zbid=198
Mod_gzip: http://www.remotecommunications.com/apache/mod_gzip/ (Download. dll)
MySQL: http://www.mysql.com/downloads/index.html
Other software:
PhpMyAdmin: http://sourceforge.net/project/show...elease_id=44593 (for database control operations)
II,
Installation Path (The following is an example, which can be installed at will, but it is best not to install it in a path with a long name)
Apache: d: \ apache
PHP: d: \ php
Perl: d: \ perl
MySQL: d: \ mysql
Mod_gzip: decompress the package in d: \ apache \ modules.
Zend Optimizer: decompress the package in d: \ php
Website File placement: d: \ myweb
PhpMyAdmin: decompress the package in d: \ myweb \ phpmyadmin.
Windows: d: \ windows
3. configure mysql
After installation, winmysqladmin runs automatically and prompts you to enter the user name and password, and enter the user name and password. by default, services that have been installed as NT are installed. if you need to be more secure, you can run winmysqladmin's my. on the page of ini Setup, port = modify the default port, and change the user name and password below. After modification, click Save Modiffication on The left to Save The settings. right-click The console form and choose WinNT-> Stop The Service-> Start The Service. The new settings take effect.
4. configure php
Rename php. ini-dist to php. ini and enable the modification.
Add in the next line of [php]
Zend_optimizer.optimization_level = 15
Zend_extension_ts = "d: \ php \ ZendOptimizer. dll"
The zendoptimizer. dll path must comply
Find extension_dir, and add the full name of your windir \ system32 \ directory to the end, for example, extension_dir = d: \ windows \ system32 \ (The Last \ must not be omitted !)
Find extension = php_exif.dll, extension = php_imap.dll, extension = php_ldap.dll, extension = php_zlib.dll, and remove the semicolon comment above
Find mysql. default_port and add your mysql port after the equal sign, for example, mysql. default_port = 3306 (3306 is the default port of mysql)
Find mysql. default_host and add localhost after the equal sign, for example, mysql. default_host = localhost
Save
Copy php. ini php.exe to the windows directory, and copy all the. dll files in the php4ts. dll, dlls, and extensions directories in php to the windows \ system32 directory (do not overwrite existing files)
5. configure Apache
Open the apache \ conf \ httpd. conf file. the main settings are as follows:
ServerType standalone
PidFile logs/httpd. pid
ScoreBoardFile logs/apache_runtime_status
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MaxRequestsPerChild 1024
ThreadsPerChild 50
SendBufferSize is 65536
MaxClients 150
Listen 80
# Listen to port 80, default web server port
BindAddress *
# Web server can be used on any ip address
LoadModule vhost_alias_module modules/mod_vhost_alias.so
AddModule mod_vhost_alias.c
# Remove the first two rows # enable support for virtual domain names
Port 80
ServerAdmin me @ localhost
ServerName localhost
# Port, administrator email, server domain name, according to actual modification
DocumentRoot "d:/myweb /"
# Web file storage address. here we use d:/myweb as an example.
Options FollowSymLinks MultiViews
AllowOverride all
Order allow, deny
Allow from all
# Set access options for d:/myweb
ScriptAlias/cgi-bin "e:/myweb/cgi"
AllowOverride None
Options None
Order allow, deny
Allow from all
# Set cgi-bin directory permissions
#! /Perl/bin/perl
# This line configures the running environment of perl-cgi. because Active Perl is installed in d: \ perl, the relative path is directly used here.
# Note: the header line of the cgi and pl files to be run must be the same as that in this example. Otherwise, the cgi and pl files cannot be run. It can also be written here
##! D:/perl/bin/perl
# In addition, the first configuration # does not represent the meaning of the comment, so it cannot be omitted !!
Find AddType application/x-httpd-php
Change to AddType application/x-httpd-php. php. phtml. php3.
Find AddHandler cgi-script
Change to AddHandler cgi-script. cgi. pl
LoadModule php4_module d:/php/sapi/php4apache. dll
LoadModule gzip_module d:/apache/modules/ApacheModuleGzip. dll
# Load the php4 and gzip modules
### Set the gzip module
Mod_gzip_on Yes
Mod_gzip_minimum_file_size 300
Mod_gzip_maximum_file_size 0
Mod_gzip_maximum_inmem_size 100000
Mod_gzip_keep_workfiles No
Mod_gzip_dechunk Yes
Mod_gzip_can_negotiate Yes
Mod_gzip_temp_dir d:/apache/temp
# There must be a temp directory under the apache Directory, and a new
Mod_gzip_item_include file \. html $
Mod_gzip_item_include file \. htm $
Mod_gzip_item_include file \. shtml $
Mod_gzip_item_include file \. shtm $
Mod_gzip_item_include file \. pl $
Mod_gzip_item_include file \. cgi $
Mod_gzip_item_include mime ^ text /.*
Mod_gzip_item_include handler ^ perl-script $
Mod_gzip_item_include mime ^ httpd/unix-directory $
Mod_gzip_item_include handler ^ server-status $
Mod_gzip_item_include handler ^ server-info $
Mod_gzip_item_include mime ^ application/x-httpd-php
Mod_gzip_item_include file \. php $
Mod_gzip_item_include file \. php3 $
Mod_gzip_item_include file \. mht $
Mod_gzip_item_exclude file \. css $
Mod_gzip_item_exclude file \. js $
Mod_gzip_item_exclude mime ^ image /.*
Mod_gzip_item_exclude reqheader Content-Type: multipart/form-data
Mod_gzip_item_exclude reqheader Content-Type: application/x-www-form-urlencoded
Mod_gzip_item_exclude file \ attachment. php $
# This is required by VBB.
### End of mod_gzip sample config
LogFormat "% h % l % u % t \" % r \ "%> s % B mod_gzip: % {mod_gzip_result} n In: % {mod_gzip_input_size} n Out: % {mod_gzip_output_size} n :%{ mod_gzip_compression_ratio} npct. "mod_gzip_info
# Record gzip running status
# The above is where httpd. conf needs to be added or modified. you do not need to modify other items.
6. configure phpmyadmin
Open the config. inc. php file and modify it.
$ Login servers [1] ['host'] = 'localhost'; // mysql address
$ Export servers [1] ['port'] = '000000'; // mysql port
$ Login servers [1] ['user'] = 'username'; // mysql username
$ Login servers [1] ['password'] = 'passwd'; // mysql password
$ Export defaultlang = 'zh '; // Configure phpmyadmin as a simplified Chinese interface
Because phpmyadmin is configured in mysql, you need to put it in a directory that someone else cannot guess or the Directory requires user permission verification.
VII. test
If you follow the default d: \ myweb \ phpmyadmin, open the following URL in the browser: http: // localhost/phpmyadmin/
If the test succeeds, the mysql management page of phpmyadmin appears. click Show PHP information or go to http: // localhost/phpmyadmin/phpinfo. php, which shows the configuration and running status of web php mysql .........
As long as the configuration is correct, the above Apache 1.3.22 for Win32 + PHP 4.0.6 + Active Perl 5.006001 + Zend Optimizer v1.1.0 + mod_gzip 1.3.19.1a + MySQL 4.0.0 Alpha configuration is complete.
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.