In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.