Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of installing DedeCMS under Linux

Shulou Source: shulou.com Published: 2022-06-02 05:06:37 10月03日 Update

Editor to share with you how to install DedeCMS under Linux, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

How to install DedeCMS under Linux?

1. Installation preparation

Linux (Ubuntu)

Apache2

MySQL5

PHP5.3

The server needs to have the above basic environments. Generally, Linux's Web operating system will install these components by default. Of course, you can also install them yourself. The specific installation method can be obtained through some online documentation, so we won't go any further here.

two。 Download and extract the latest version of DedeCMS

Download the latest version of DedeCMS through www.dedecms.com. Generally, the download package is in DedeCMS****.tar.gz format. You can use the command line under Linux:

Tar-zxvf DedeCMS-****.tar.gz

Upload the extracted uploads directory to the root directory of the site. The root directory of our system site here is: / var/dedecms/

3. Install DedeCMS

Visit http:// my site / install, click OK to enter the server environment monitoring, we can see the server situation (figure 1).

Here we found that several directories do not have write permissions, we need to divide this directory into permissions.

First you need to bind the user of the apache service to the site directory, using the command line:

Sudo chown-R www-data / var/dedecms/

This specifies that the permission user for the site directory is www-data

Here, we need to remove write permission from several directories that do not need write permission, and enter:

Sudo chmod-R 755 / var/dedecms/data/sudo chmod-R 755 / var/dedecms/html/sudo chmod-R 755 / var/dedecms/uploads/sudo chmod-R 555 / var/dedecms/include/sudo chmod-R 555 / var/dedecms/install/sudo chmod-R 555 / var/dedecms/dede/sudo chmod-R 555 / var/dedecms/plus/sudo chmod-R 555 / var/dedecms/images/sudo chmod-R 555 / var/dedecms/member/sudo chmod-R 555 / var/dedecms/special/ Sudo chmod-R 555 / var/dedecms/templets/sudo chmod 555 / var/dedecms/index.phpsudo chmod 555 / var/dedecms/tags.php

So let's move on to the next step (figure 2).

4. Set execution permissions

We can give DedeCMS several directories to turn off executable permissions. Here, executable means that the php script cannot be run in Apache, then we can set the following settings in the Apache directory configuration (the virtual machine can set .htaccess)

... php_admin_flag engine offphp_admin_flag engine offphp_admin_flag engine offphp_admin_flag engine offphp_admin_flag engine off

Because we have PHP5 here, we can set it according to the above method. If it is an older version of PHP, it can only be done through:

Order allow,deny Deny from all

To set up.

5. Complete the installation

The above are all the contents of the method of installing DedeCMS under Linux. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Directory permission method site service server content command latest version root directory environment user article system such as figure operating system not much can pass most cases Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux OPPO Reno Redmi Shulou Tech Info Huawei