First, the experimental environment
centos6.5+mysql5.5.32+php5.3.27
Software: DEDECMS-V5.7-GBK-SP1
This experiment is built using lamp environment, but the MySQL database is separated from it, the key of this experiment is to implement the firewall and its selinux shutdown.
Second, the experimental steps
1) Download the product and unzip it to the WWW directory
Wget-o/home/chen/tools/http://updatenew.dedecms.com/base-v57/package/dedecms-v5.7-gbk-sp1.tar.gz
Tar XF dedecms-v5.7-gbk-sp1.tar.gz
MV dedecms-v5.7-gbk-sp1/uploads/*/var/html/www/
2) Create a database and authorize
Create Database Dedecms;
Grant all on dedecms.* to [e-mail protected] ' 10.0.0.% ' identified by ' Chen ';
Flush privileges;
3) Enter the domain name to set up
Fill in the corresponding database name, password, etc., to achieve the construction of the site.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/83/28/wKiom1dr1xrCer-QAASQ8pFOKbY563.png "title=" Firefox _ 2016-06-23t12-32-59.251z.png "alt=" Wkiom1dr1xrcer-qaasq8pfokby563.png "/>
Third, the Apache server common HTTP status code and its solution.
HTTP Error code 403:
403 Forbidden resource is not available. The server understands the customer's request, but refuses to process it. This is usually caused by the permissions set on the file or directory on the server.
The possible (but not limited to) reasons for this are:
Cause there is no permissions permission to the site directory in the 1:apache configuration file, which is usually (important, often occurring) when you change the default Apache site directory after the initial installation of Apache:
If you change the site directory to:/var/www, the 403 error will be returned if you do not add the following configuration in the Apache configuration file.
<directory "/var/www" >
Options Indexes FollowSymLinks
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
Hint: The configuration of the production environment should also be modified, see below, here is only the topic of this article to explain.
Cause 2: There is no home file (index file) in the site directory, and the configuration of Apache prohibits directory browsing, it will prompt 403 error, configured as follows (occasional):
A. No home file (index file) under the Site directory:
[Email protected] www]# pwd
/var/www
[email protected] www]# LL
Total 12
Drwxr-xr-x 2 root root 4096 June 4 22:11 Chen
-rw-r--r--1 root root 0 June 4 22:11 chen.html
Tip: Listed above is the site Directory/var/www directory without presets home DirectoryIndex index.html
B.apache configuration prohibits three configurations of directory browsing
The first type of configuration:
<directory "/var/www" >
options-indexes followsymlinks
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
The second type of configuration:
<directory "/var/www" >
Options followsymlinks
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
The third type of configuration:
<directory "/var/www" >
Options None
AllowOverride None
Order Allow,deny
Allow from all
</Directory>
Cause 3: Also directory permissions issue (infrequently occurring)
As follows: Deny 10.0.0.0/24 whole-section access. This will cause a 403 error on the denied host access
<directory "/var/www" >
Options Indexes FollowSymLinks
AllowOverride None
Order Allow,deny
Allow from all
Deny from 10.0.0.0/24
</Directory>
<directory "/var/www" >
Options Indexes FollowSymLinks
AllowOverride None
Order Allow,deny
#Allow from all
Allow from 10.0.0.116
#Deny from 10.0.0.0/24
</Directory>
Cause 4: Site Directory permissions issue (infrequently occurring).
The site Directory requires Apache users to have access, or 403 errors will be reported.
[Email protected] var]# pwd
/var
[Email protected] var]# chown-r root.root blog/
[Email protected] var]# chmod Blog
[Email protected] var]# ll-d blog/
drwx------3 root root 4096 June 4 22:11 blog/
This reference is available from the detailed click: http://oldboy.blog.51cto.com/2561410/581383
This article is from "Wake up your not alarm clock but dream" blog, please be sure to keep this source http://purify.blog.51cto.com/10572011/1792344
How to use the MySQL (lamp) separation environment to build DEDECMS Dream website and Apache server common 403http status code and its solution