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
Apache 1.X for Win32 Although * * is poor (and IIS than the difference is too far, hope 2. X for Win32 early out), but it has fewer bugs, less resource usage, and its modular style is more convenient to increase the functionality. PHP-4 has fast, * * Efficient features, Perl provides perl-cgi support, Zend Optimizer is an accelerated PHP program, mod_zip to compress Web server output data, MySQL is a database. The following is based on WIN2K/XP, Win9x running these service software is too cumbersome to run as a service.
One
Download locations for each software:
apache:http://www.apache.org/dist/httpd/binaries/win32/
php:http://www.php.net/downloads.php (download. zip version)
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 control operations on the database)
Two
Installation path (example, can be installed casually, but it is best not to install the path with a long name)
Apache:d:\apache
php:d:\php
Perl:d:\perl
Mysql:d:\mysql
Mod_gzip: Decompression in D:\apache\modules
Zend Optimizer: Decompression in d:\php
Site File Placement: D:\myweb
phpMyAdmin: Decompression in D:\myweb\phpmyadmin
Windows:d:\windows
Third, the configuration of MySQL
After installation will automatically run Winmysqladmin, and prompted to enter a username password, enter the user name, password, by default has been installed as NT service, if you need more security, then in Winmysqladmin my.ini setup that page port= Port where the default port is modified, and the username password is modified below. After you've modified it, click Save Modiffication on the left and then right click on the console form and select Winnt->stop the Service->start Service, so the new settings will take effect.
Four, configure PHP
Rename the php.ini-dist to php.ini and open the modification.
Add in the next line of [PHP]
Zend_optimizer.optimization_level=15
Zend_extension_ts= "D:\php\ZendOptimizer.dll"
Zendoptimizer.dll's path must conform to
Then find Extension_dir, in the back = Add your windir\system32\ directory full name, for example: Extension_dir = d:\windows\system32\ (the last \ must not omit!) )
Find Extension=php_exif.dll, Extension=php_imap.dll, Extension=php_ldap.dll, Extension=php_zlib.dll, and remove the preceding semicolon annotation
Find Mysql.default_port, add your MySQL port after the equal sign, for example: Mysql.default_port = 3306 (3306 is the default port for MySQL)
Find Mysql.default_host, add localhost after the equal sign, for example: Mysql.default_host = localhost
Save
Copy the php.ini Php.exe to the Windows directory, and copy all. dll files in PHP Php4ts.dll, DLLs, and extensions directories below Windows\System32 (do not overwrite existing files)
Five, configure Apache
Open the Apache\conf\httpd.conf file, the following are the primary settings
ServerType Standalone
Pidfile Logs/httpd.pid
Scoreboardfile Logs/apache_runtime_status
Timeout 300
KeepAlive on
Maxkeepaliverequests 100
KeepAliveTimeout 15
Maxrequestsperchild 1024
Threadsperchild 50
Sendbuffersize 65536
MaxClients 150
Listen 80
# Listening on port 80, default Web server port
Bindaddress *
# Web server can be used in any IP
LoadModule Vhost_alias_module modules/mod_vhost_alias.so
Addmodule MOD_VHOST_ALIAS.C
# Remove these two lines before the #, open the virtual domain name support
Port 80
ServerAdmin Me@localhost
ServerName localhost
# port, admin email, server domain, according to the actual modification
DocumentRoot "d:/myweb/"
# Web File Save address, here is d:/myweb as an example
<directory "d:/myweb/" >
Options FollowSymLinks MultiViews
AllowOverride All
Order Allow,deny
Allow from all
</Directory>
# Set access options for D:/myweb
Scriptalias/cgi-bin "e:/myweb/cgi"
<directory "d:/myweb/cgi/" >
AllowOverride None
Options None
Order Allow,deny
Allow from all
</Directory>
# Set Cgi-bin directory permissions
#!/perl/bin/perl
# This line configures the PERL-CGI operating environment, and because active Perl is installed in D:\perl, the relative path is used here directly
# Note that the first line of the CGI, PL file to run is the same as here, otherwise it cannot be run. This can also be written
# #!d:/perl/bin/perl
# In addition this configuration the first # does not represent the meaning of the annotation, so it can not be omitted!!
### the following are settings for 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
# must have a temp directory under the Apache directory, no new one
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$
#上面这个是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_si ze}n:%{mod_gzip_compression_ratio}npct. "Mod_gzip_info
# Record gzip Run status
# The above for httpd.conf need to add or modify the place, the other do not have to modify it
Vi. Configuration of phpMyAdmin
Open config.inc.php File modification
$cfgServers [1][' host '] = ' localhost '; MySQL Address
$cfgServers [1][' port '] = ' 3306 '; MySQL Port
$cfgServers [1][' user '] = ' username '; MySQL User name
$cfgServers [1][' password '] = ' passwd '; MySQL Password
$cfgDefaultLang = ' en '; Configure phpMyAdmin as a simplified Chinese interface
Because phpMyAdmin this is a MySQL configuration, it needs to be placed in a directory that no one else has guessed or the directory requires user rights authentication
VII. Testing
If you follow the default d:\myweb\phpmyadmin, open the following address in your browser http://localhost/phpmyadmin/
If the test succeeds and the phpMyAdmin MySQL admin page appears, click Show php information, or go to http://localhost/phpmyadmin/phpinfo.php, which shows the web PHP MySQL configuration and operating conditions .....
As long as the configuration is okay, 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 A Lpha Configuration 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.