Six, nginx build weaving Dream Dedecms website

Source: Internet
Author: User
Tags php class php and mysql

1, Introduction:

Weaving Dreams Content Management System (dedecms) known for its simplicity, utility, and open source, is the most well-known domestic PHP Open source Web site management system, is also the use of the most user PHP class CMS system , in the past years of development, the current version in terms of functionality, or ease of use, have made great strides in development and progress, DEDECMS free version of the main target users locked in Personal webmaster , the feature is more focused on personal website or the construction of small and medium-sized portals, of course, there are enterprise users and schools in the use of the system.

Advantages:

1. easy to use: Using Dream weaving you can learn it in 10 minutes and build one in 10 minutes.

2. perfect: Dream-weaving basically contains all the functions that a regular website needs.

3. Rich information: As a domestic cms, Weaving Dream has a perfect Chinese learning materials.

4. rich Template: Weaving dream has a lot of free beautiful templates, you can freely use them.

Disadvantages:

1. Lack of flexibility: a high degree of functional integration has resulted in a lack of flexibility in the weaving dream, so the dream extensibility is not very good.

2. Security: Weaving dream as a domestic open-source CMS, community lack of better technical support and environment, so the vulnerability frequency.

3. Community: The official community of dreaming is charged, which is itself a problem for an open source project.

Operating Environment:

Dedecms based on PHP and MySQL technology development, can be used in Windows, Linux, UNIX platform, the environmental requirements are as follows:

1 , Windows Platform:
Iis/apache + php4/php5 + MYSQL3/4/5
If used in a Windows environment, it is recommended to use the Dedeampz suite provided with DEDECMS to achieve optimal performance.

2 , Linux/unix Platform
Apache + php4/php5 + MYSQL3/4/5 (PHP must run in non-secure mode)

      recommended platform: Linux + Apache2.2 +php5.2 + MySQL5.0

3 PHP must be environment or enabled system functions:
    &NBSP, allow_url_fopen
     extension library
     Span style= "font-family: ' italics '; color: #666666;" >mysql Extension library
     system functions--phpinfo, dir

4 , Basic directory structure

/ The root directory requires the ability to write files and create directories when installing optional modules.
...../install Installer directory, can be removed after installation [must have writable permission at installation]
..../dede default Admin directory (can be renamed)
...../include Class Library file directory
...../plus directory of the AIDS program
...../member Membership Directory
..../images system default template picture storage directory
..../uploads default upload directory [must be writable]
...../html default HTML file directory [must be writable]
..../templets system default Kernel template directory
...../data system cache or other writable data storage directory [must be writable]
..../special featured Catalog [can delete special/index.php after generating a topic, must be writable]

    5, the incompatibility problem that PHP environment is prone to encounter
    (1) Datadirectory does not write permissions, resulting in the system session can not be used, which will result in the inability to login management background (directly displayed as the verification code can not display properly);
    (2) PHPthe uploaded temporary folder is not set or no write permission, this will cause the file upload function is not available;
    (3)There are inexplicable errors, such as the installation of the display blank, this can be caused by the system does not load MySQL extension, for beginners, you can download Dede PHP package for easy use.

2, download unzip:
[[email protected] tools] #wget Http://updatenew.dedecms.com/base-v57/package/dedecms-v5.7-utf8-sp1.tar.gz[[email protected]]# Tar XF dedecms-v5.7-utf8-sp1.tar.gz
3, Upload:

Upload the extracted uploads directory to the site root directory

[[Email protected]]# cd dedecms-v5.7-utf8-sp1[[email protected]]# cp-r uploads/*/usr/local/nginx/html/www/[[email protected]]# cd/usr/local/nginx/html/
4, modify file properties:
# change file owner: [[Email protected]]# chown-r Nginx.nginx www/
[[email protected] html]# ll www/total 76drwxr-xr-x  2 nginx  nginx 4096 apr 28 17:42 adrwxr-xr-x 20 nginx nginx  4096  Apr 28 17:42 datadrwxr-xr-x  7 nginx nginx 16384 Apr  28 17:42 dede-rwxr-xr-x  1 nginx nginx 1150 apr 28 17:42  favicon.icodrwxr-xr-x  6 nginx nginx 4096 Apr 28 17:42  imagesdrwxr-xr-x 14 nginx nginx  4096 apr 28 17:42  include-rwxr-xr-x  1 nginx nginx 1267 apr 28 17:42  index.phpdrwxr-xr-x  5 nginx nginx 4096 apr 28 17:42  Installdrwxr-xr-x  3 nginx nginx 4096 apr 28 17:42 mdrwxr-xr-x   5 nginx nginx 4096 apr 28 17:42 memberdrwxr-xr-x  5 nginx nginx 4096 apr 28 17:42  plus-rwxr-xr-x  1 nginx nginx   505 apr 28 17:42  robots.txtdrwxr-xr-x  2 nginx nginx 4096 apr 28 17:42  special-rwxr-xr-x  1 nginx nginx   874 apr 28 17:42  tags.phpdrwxr-xr-x  6 nginx nginx 4096 apr 28 17:42  templetsdrwxr-xr-x  8 nginx nginx 4096 apr 28 17:42 uploads  [[email protected] html]# cd www/
# Here we need to write to several directories without write permission, enter: [[email protected] www]# Chmod-r 555 Include/install/include/plus/images/member/spec ial/templets/a/m/[[email protected]]# chmod555 index.php tags.php
5, create a Web site database, and users:
mysql> CREATE DATABASE dede_db; Query OK, 1 row Affected (0.00 sec) Mysql> Grant all on dede_db.* [email protected] identified by ' dd123456 '; Query OK, 0 rows Affected (0.00 sec) Mysql> Grant all on dede_db.* [email protected] identified by ' dd123456 '; Query OK, 0 rows Affected (0.00 sec) mysql> FLUSH privileges; Queryok, 0 rows Affected (0.00 sec)
6, installationDedecms

Visit Http://www.25linux.com/install, click Confirm to enter the server environment monitor, we can see the server situation.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7F/96/wKiom1cjLFKhX_z1AAFTgtRMsIE394.png "style=" float: none; "title=" 1.jpg.png "alt=" Wkiom1cjlfkhx_z1aaftgtrmsie394.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7F/94/wKioL1cjLSHBUBANAAEdzoUm_HQ925.png "style=" float: none; "title=" 2.png "alt=" Wkiol1cjlshbubanaaedzoum_hq925.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7F/94/wKioL1cjLSGzjacPAAENrNKIi8I148.png "style=" float: none; "title=" 3.png "alt=" Wkiol1cjlsgzjacpaaenrnkii8i148.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7F/96/wKiom1cjLFOB-YksAADXgS1ZIEI738.png "style=" float: none; "title=" 4.png "alt=" Wkiom1cjlfob-yksaadxgs1ziei738.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7F/96/wKiom1cjLFSS4PIgAABb9-ta8vc114.png "style=" float: none; "title=" 5.png "alt=" Wkiom1cjlfss4pigaabb9-ta8vc114.png "/>

To delete an installation file:

[Email protected] www]# RM-RF install/
7, testing:

To access the site management background: www.25linux.com/dede/

System Recommendation: The name of your admin directory contains the default name Dede , it is recommended to FTP change it to a different name, it will be more secure.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7F/96/wKiom1cjLUPQPg0tAAEJ3YLZ95o102.png "style=" float: none; "title=" 1.png "alt=" Wkiom1cjlupqpg0taaej3ylz95o102.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7F/94/wKioL1cjLhLBhN7rAAIcMzETuzM961.png "style=" float: none; "title=" 2.png "alt=" Wkiol1cjlhlbhn7raaicmzetuzm961.png "/>

Weave the Dream CMS website to build complete!

This article is from the "Flood City time and Space" blog, please be sure to keep this source http://858004880.blog.51cto.com/7265424/1769076

Six, nginx build weaving Dream Dedecms website

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.