Home >Backend Development >PHP Tutorial >Several points you should pay attention to when deploying PHP projects_PHP Tutorial
When deploying PHP projects, there are several points that require special attention, which are also easy for beginners to overlook:
1. After downloading WAMPServer, how to install and configure it?
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?
For the first point, please note 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 you can access the MySQL database through phpMyAdmin;
4. If you want to enable pseudo-static, you need to do the following:
Load the Rewrite module:
Find
in httpd.conf in the conf directory
LoadModule rewrite_module modules/mod_rewrite.soRemove the previous comment #
Allow the use of ".htaccess" files in any directory, 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
For the second point, please note the following:
1. Through phpMyAdmin, find the user menu and change the MySQL password (the default password is empty)
2. Download Navicat to manage MySQL
For the third point, please note the following:
1. Allow IP address access (default only allows access to 127.0.0.1):
Find the following content in Apache’s configuration file httpd.conf and comment out the line Deny from all
# onlineoffline tag - don't remove Order Deny,Allow Deny from all Allow from 127.0.0.1Find the last line of #Include "D:/wamp/alias/*" and comment it out.