Notes for Deploying PHP projects

Source: Internet
Author: User
Tags php website
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.