- Zend_optimizer.optimization_level=15
- Zend_extension_ts= "D:phpendoptimizer.dll"
- The path of the Zendoptimizer.dll must conform to
Copy CodeThen find Extension_dir, at the back = Add your Windirsystem32 directory full name, for example: Extension_dir = D:windowssystem32 (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 previous semicolon comment Find Mysql.default_port, add your MySQL port after the equals sign, for example: Mysql.default_port = 3306 (3306 is the default port for MySQL) to find Mysql.default_host, Add localhost after the equals sign, for example: Mysql.default_host = localhost save php.ini php.exe copied to the Windows directory, PHP inside Php4ts.dll, Copy all the. dll files below the DLLs and extensions directories to windowssystem32 (do not overwrite existing files) Five, configure the Apache server to open the Apacheconfhttpd.conf file, the following are the main settings
- ServerType Standalone
- ServerRoot "D:/apache"
- # Apache installed directory
- 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 on any IP
- LoadModule Vhost_alias_module modules/mod_vhost_alias.so
- Addmodule MOD_VHOST_ALIAS.C
- # get rid of the previous # of these two lines, turn on the support of the virtual domain
- Port 80
- ServerAdmin Me@localhost
- ServerName localhost
- # port, admin email, server domain name, by actual modification
- DocumentRoot "d:/myweb/"
- # Web File Save address, here is 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 PERL-CGI's running environment, because active Perl is installed in D:perl, so the relative path is used directly
- Note that the first line of CGI, PL files to run will be the same as here, otherwise it will not work. This can also be written
- # #!d:/perl/bin/perl
- # In addition this configuration of the first # does not mean the meaning of comments, so can not be omitted!!
- Find DirectoryIndex index.html, add below
- DirectoryIndex index.htm
- DirectoryIndex default.htm
- DirectoryIndex default.html
- DirectoryIndex index.php
- DirectoryIndex index.php3
- DirectoryIndex index.cgi
- Find AddType application/x-httpd-php
- Modified to AddType application/x-httpd-php. php. phtml. php3
- Find AddHandler Cgi-script
- Modified to AddHandler cgi-script. CGI. pl
- LoadModule Php4_module D:/php/sapi/php4apache.dll
- LoadModule Gzip_module D:/apache/modules/apachemodulegzip.dll
- # load Php4,gzip Module
- # # # Below is the Gzip module setup
- 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, no 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$
- #上面这个是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 operation status
- # The above for httpd.conf need to add or modify the place, the other can not be modified
Copy CodeVi. Configuration 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 = ' zh '; Configure phpMyAdmin for Simplified Chinese interface
Copy CodeBecause phpMyAdmin this is a MySQL configuration, you need to put him in a directory that no one else can guess, or the directory requires User rights verification Vii. Test If you follow the default d:mywebphpmyadmin, then open the following address with your browser http://localhost/phpmyadmin/if the test succeeds, the phpMyAdmin MySQL Administration page appears, click Show PHP Information, or go to http://localhost/phpmyadmin/phpinfo.php, this shows the configuration of the web PHP MySQL and the operation of the situation. As long as the configuration is not a problem, then 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 is complete. |