This article mainly introduces some precautions for deploying the PHP project. if you need to deploy the PHP project, you can refer to some notes when deploying the PHP project, it is easy for beginners to ignore the following points:
1. after downloading WAMPServer, how do I install the configuration?
2. how to manage the MySQL database through the client?
3. how can I access the PHP website through an IP address?
For the first point, pay attention to the following:
1. download WAMPServer. you can find the address by yourself;
2. install WAMPServer
3. PHP, Apache, and MySQL are installed. you can even access http: // localhost immediately or access the MySQL database through phpMyAdmin;
4. to enable pseudo-static, perform the following operations:
Load the Rewrite module:
Find httpd. conf in the conf Directory
The code is as follows:
01. LoadModule rewrite_module modules/mod_rewrite.so
Remove the preceding comment #
Use the ". htaccess" file in any directory and change "AllowOverride" to "All" ("None" by default "):
The code is as follows:
# 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, pay attention to the following:
1. use phpMyAdmin to find the user menu and modify the MySQL password (the default password is blank)
2. download Navicat to manage MySQL
For the third point, pay attention to the following:
1. allow access from IP addresses (only access from 127.0.0.1 is allowed by default ):
Find the following content in the Apache configuration file httpd. conf and comment out the line Deny from all.
The code is as follows:
# Onlineoffline tag-don't remove
Order Deny, Allow
Deny from all
Allow from 127.0.0.1