Several things to be aware of when deploying PHP projects share _php skills

Source: Internet
Author: User

When you deploy a PHP project, there are a few things you need to pay special attention to, which are easy for beginners to overlook:

First, after downloading Wampserver, how to install the configuration?

Second, how to manage the MySQL database through the client?

Third, how to access the PHP Web site through the IP address, if the internal network access to the server's PHP site?

For the 1th, note the following:

1, download Wampserver, address can find their own;

2. Installation Wampserver

3, at this time PHP, Apache, MySQL has been installed, even can immediately access http://localhost, can also access the MySQL database through phpMyAdmin;

4, if you want to open pseudo static, you need to do the following:

Load Rewrite module:

Found in httpd.conf in the Conf directory

Copy Code code as follows:

01.LoadModule Rewrite_module modules/mod_rewrite.so

Remove the previous comment #

Make the ". htaccess" file available in any directory and change "allowoverride" to "all" (Default "None"):

Copy Code code as follows:

# AllowOverride Controls What directives may is placed in. htaccess files.
# It can be ' all ', ' None ', or any combination of the keywords:
# Options FileInfo authconfig Limit
#
AllowOverride All

For the 2nd, note the following:

1, through the phpMyAdmin, find the User menu, modify the MySQL password (the default password is empty)

2, download Navicat to the management of MySQL

For the 3rd, note the following:

1, Allow IP address access (by default, only allow 127.0.0.1 access):

In the Apache configuration file httpd.conf Find the following, comment out the deny from the line

Copy Code code 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.