There are several points that need special attention when deploying PHP projects, which are also points that beginners are more likely to ignore:
1. How to install and configure after downloading WAMPServer?
2. How to manage MySQL database through the client?
3. How to access the PHP website through the IP address? If you access the PHP website on the server within the LAN?
Regarding the first point, pay attention to the following:
1. Download WAMPServer, you can find the address yourself;
2. Install WAMPServer
3. At this time, PHP, Apache, and MySQL have been installed, and you can even access http://localhost immediately, or access the MySQL database through phpMyAdmin;
4. If you want to turn on pseudostatic, you need to do the following:
Load the Rewrite module:
Find it in the conf directory
rewrite_module modules/mod_rewrite.so
Remove the previous comment #
Please use the ".htaccess" file in any directory and change "AllowOverride" to "All" (default is "None"):
# 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 All
Regarding the second point, pay attention to the following:
1. Through phpMyAdmin, find the user menu and modify the MySQL password (the default password is empty)
2. Download Navicat to manage MySQL
Regarding the third point, pay attention to the following:
1. Allow IP address access (by default, only 127.0.0.1 access is allowed):
Find the following content in Apache's configuration file, comment out the line Deny from all
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1