When you deploy a PHP project, there are a few things you need to pay special attention to, which are easy for beginners to overlook:
First, after downloading Wampserver, how to install the configuration?
Second, how to manage the MySQL database through the client?
Third, how to access the PHP Web site through the IP address, if the internal network access to the server's PHP site?
For the 1th, note the following:
1, download Wampserver, address can find their own;
2. Installation Wampserver
3, at this time PHP, Apache, MySQL has been installed, even can immediately access http://localhost, can also access the MySQL database through phpMyAdmin;
4, if you want to open pseudo static, you need to do the following:
Load Rewrite module:
Found in httpd.conf in the Conf directory
Copy Code code as follows:
01.LoadModule Rewrite_module modules/mod_rewrite.so
Remove the previous comment #
Make the ". htaccess" file available in any directory and change "allowoverride" to "all" (Default "None"):
Copy Code code as follows:
# AllowOverride Controls What directives may is placed in. htaccess files.
# It can be ' all ', ' None ', or any combination of the keywords:
# Options FileInfo authconfig Limit
#
AllowOverride All
For the 2nd, note the following:
1, through the phpMyAdmin, find the User menu, modify the MySQL password (the default password is empty)
2, download Navicat to the management of MySQL
For the 3rd, note the following:
1, Allow IP address access (by default, only allow 127.0.0.1 access):
In the Apache configuration file httpd.conf Find the following, comment out the deny from the line
Copy Code code as follows:
# onlineoffline Tag-don ' t remove
Order Deny,allow
Deny from all
Allow from 127.0.0.1