**************************************** *********************
* **************** Zend framework configuration ******************** ********
**************************************** *********************
Httpd. conf
1. Execute netstat-Aon | findstr "80" in cmd, change the port
# Listen 12.34.56.78: 80
Listen 80
>
# Listen 12.34.56.78: 80
Listen 8080.
2. # loadmodule rewrite_module modules/mod_rewrite.so.
Note: Remove "#" before mod_rewrite.
3. In this document, if AllowOverride is set to none, change none to all. In this way, you can write files such as. htaccess ..
4. DocumentRoot"C:/Wamp/WWW"Apache Virtual Path Configuration
Note: Make sure that the path is correct and the path exists. Otherwise, Apache cannot be started.
5. access permissions should be insufficient.
Therefore, we also need the application access permission AllowOverride to the virtual path of the specified Apache configuration.
<Directory "C:/testweb/public/">
PHP. ini
Place the library and configure include library in PHP. ini.
; UNIX: "/path1:/path2";include_path = ".:/php/includes";; Windows: "\path1;\path2"include_path = ".;c:\library"
**************************************** ********************
* ***************** Apache Virtual Host Configuration ****************** *********
**************************************** ********************
1. Remove the preceding two sentences in Apache httpd. conf #
Loadmodule vhost_alias_module modules/mod_vhost_alias.so
Include CONF/extra/httpd-vhosts.conf
2. Find the hosts file in c: \ windows \ system32 \ drivers \ etc.
Configuration
127.0.0.1 tools. localhost
127.0.0.1 website. localhost
3. Find the httpd-vhost.conf file under c: \ Wamp \ bin \ apache \ apache2.2.11 \ conf \ extra.
Configure the following data
NameVirtualHost *:8080## VirtualHost example:# Almost any Apache directive may go into a VirtualHost container.# The first VirtualHost section is used for all requests that do not# match a ServerName or ServerAlias in any <VirtualHost> block.#<VirtualHost *:8080> ServerName website.localhost ServerAdmin webmaster@test.tools.directhr.net DocumentRoot "C:\Users\n.zhang\Documents\Website\DHR3" <Directory "C:\Users\n.zhang\Documents\Website\DHR3"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog "logs/test.tools.directhr.net-error.log" CustomLog "logs/test.tools.directhr.net-access.log" common</VirtualHost><VirtualHost *:8080> ServerName tools.localhost ServerAdmin webmaster@test.tools.directhr.net DocumentRoot "C:\Users\n.zhang\Documents\Tools" <Directory "C:\Users\n.zhang\Documents\Tools"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog "logs/test.tools.directhr.net-error.log" CustomLog "logs/test.tools.directhr.net-access.log" common</VirtualHost>
4. Modify the following two configurations of PHP. ini (large files can be uploaded)
Post_max_size = 500 m
Upload_max_filesize = 500 m
5 if the root password is 123456, you can log on to phpMyAdmin in several ways.
Open config. INIC. php under c: \ Wamp \ apps \ phpmyadmin3.2.0.1
[1] config authorization mode is also the default mode.
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'config'; // authorization Mode
$ Cfg ['servers'] [$ I] ['user'] = 'root'; // MySQL logon user
$ Cfg ['servers'] [$ I] ['Password'] = '000000'; // MySQL Login User Password
$ Cfg ['servers'] [$ I] ['allownopassword'] = true;
[2] use cookie authorization mode and log on
Change 'auth _ type' to 'cooker', and then modify 'blowfish _ secret' to use an arbitrary string as the Cookie's encrypted string. If no encryption key exists, the system displays "the configuration file currently requires a top secret phrase password (blowfish_secret)". The configuration file is as follows:
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'cooker ';
$ Cfg ['blowfish _ secret'] = '44e2f5aece2855. 8080 ';
[3] logon window in HTTP Authorization Mode
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'http ';
Note: If the MySQL server uses version 4.1 or later and the client connection uses the mysql4.1 version, use the old_password function when setting the password for the user. For example:
Mysql> SET Password = old_password ('20140901 ')
Mysql>/g
Appendix: (the following content is self-written) in addition to the three built-in phpMyAdmin methods, you can also use Apache configuration to restrict logon and place one under the phpMyAdmin directory. htaccess file, specifying the password record file used. Then, use htpasswd to generate a password and save it in the password record file (the file content is encrypted. Use htpasswd/etc/php_passwd username ).
Content in httpd. conf: phpMyAdmin's directory "> AllowOverride authconfig
. Htaccess File Content
Authtype basic authuserfile/etc/php_passwd authname information require valid-user
We can see that the content in the/etc/php_passwd file is similar to this:
Username: 2y2cd6nfjuwl6
8
PHP. ini Modification
Max_input_time =-1
Max_execution_time =-1