Wamp is Windows Apache MySQL
PHP integrated installation environment, that is, Apache, PHP, and MySQL server software under the window. PHP extension, Apache module, turn on/off the mouse point to deal with, and then
You don't have to modify the configuration file yourself. Wamp will do it. You no longer have to ask about the installation of PHP everywhere, and Wamp has everything done. Wamps
Wamp
Windows Apache MySQL
PHP integrated installation environment, that is, Apache, PHP, and MySQL server software under the window. PHP extension, Apache module, turn on/off the mouse point to deal with, and then
You don't have to modify the configuration file yourself. Wamp will do it. You no longer have to ask about the installation of PHP everywhere, and Wamp has everything done.
Wampserver 5 Integrated Environment ver 2.0c
Download
Wampserver 5 Integrated Environment
1.7.4
Download
Related video installation Tutorial: HTML/shipinjiaocheng/php100shipinjiaocheng/2009/0407/9.html
Simple Configuration:
1. Set phpMyAdmin
After wampserver is installed, Use http: // localhost/
After opening, you can see a simple page of wampserver, which contains three tools: phpinfo, phpMyAdmin, and sqlitemanager.
Open phpMyAdmin and you will see a prompt below. The root user has not set a password. First, set a password for the root account. Click "permission" in the middle of the phpMyAdmin page.
Limit, You can see "user list", at this time, there should be only one line of user information, that is, Root
In the localhost line, click the edit permission icon on the rightmost side of the line. On the New Page, find "Change Password", set the password for the root user, and click "execute ".
Refresh the page and you will see an error message. This is because the account has set a password. Go to the wampserver installation directory, find the phpMyAdmin directory in the apps directory, and open the config in the phpMyAdmin directory. inc. in the PHP file, find the following line:
$ Cfg ['servers'] [$ I] ['Password'] = '';
Enter the password you just set in the single quotes on the right of the equal sign, re-open the phpMyAdmin page, and refresh it. Then phpMyAdmin can be accessed normally.
Now, I have used wampserver to set up an Apache + PHP + MySQL server.
-----------------------------------------------------------
2. allow Internet access:
By default, Wamp prohibits Internet access to Apache. You can click APACHE-httpd. conf in the lower right corner to search for the keyword "deny ".
From ", you will find a" Deny from "to add a line before" allow from 127.0.0.1"
#, Indicating comment out, Insert a new row, and manually enter allow from all. Save and restart the apache service to allow Internet access.
3. Apache and MySQL services run automatically upon startup
Windows-start? -Set-control panel-Administrative Tools-service, find wampmysqld and wampapache, and change "Startup Type" from "Manual" to "automatic.
4. Enable rewrite Module
# Loadmodule rewrite_module modules/mod_rewrite.so
Remove # from the front and change it
Loadmodule rewrite_module modules/mod_rewrite.so
<Directory/>
Options followsymlinks
AllowOverride none # change to AllowOverride all #
Order deny, allow
Deny from all
Satisfy all
</Directory>
<Directory "D:/Wamp/www/">
#
# Possible values for the options directive are "NONE", "all ",
# Or any combination:
# Indexes includes followsymlinks symlinksifownermatch execcgi Multiviews
#
# Note that "Multiviews" must be named * explicitly * --- "options all"
# Doesn' t give it to you.
#
# The options directive is both complicated and important. Please see
# Http://httpd.apache.org/docs/2.2/mod/core.html#options
# For more information.
#
Options indexes followsymlinks
#
# AllowOverride controls what directives may be placed in. htaccess files.
# It Can Be "all", "NONE", or any combination of the keywords:
# Options fileinfo authconfig limit
#
AllowOverride none # change to AllowOverride all #
#
# Controls who can get stuff from this server.
#
Order allow, deny
Allow from all
</Directory>
5.. PHP configuration
Search for short_open_tag = off and change off to on. Note that there is no # In front of the row.
Memory_limit = 128 M; maximum memory usage. You can modify the memory size when the running program prompts insufficient memory.
Upload_max_filesize = 2 m; attachment size
For Chinese users, after the installation is complete, the first thing to set is to change the default encoding of MySQL database to UTF-8, this can exclude a lot of Chinese garbled problem: In the wamp5 menu
Select My (Wamp). ini, set default-character-set = utf8, and restart wamp5.
3. the default password of the database is empty. You can set the password of the root account to 123456 in phpMyAdmin. After the change, you must modify the configuration file config of phpMyAdmin. inc. PHP. Otherwise, phpMyAdmin will not be able to access the database:
$ Cfg [''servers'] [$ I] [''user''] = ''root '';
$ Cfg [''servers'] [$ I] [''password''] = '000000 '';