Share some things you should pay attention to when deploying PHP projects_PHP Tutorial

WBOY
Release: 2016-07-13 17:18:16
Original
660 people have browsed it

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

Copy code The code is as follows:

01.LoadModule rewrite_module modules/mod_rewrite.so

Remove the previous comment #

Allow the use of ".htaccess" files in any directory, change "AllowOverride" to "All" (default is "None"):

Copy code 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, 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

Copy code The code is as follows:

# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/621677.htmlTechArticleWhen deploying PHP projects, there are several points that need special attention, which are also easy for beginners to overlook: 1. After downloading WAMPServer, how to install and configure it? 2. How to manage through the client...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!