In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the method of migrating the data directory under the DedeCMS root directory to a directory outside web. I hope you will gain a lot after reading this article. Let's discuss it together.
How do I migrate the data directory under the DedeCMS root to a directory other than web?
The method of migrating the data directory under the DedeCMS root directory to a directory outside web
Recommended study: dream weaving cms
Data directory is the directory of system cache and configuration files, which generally has read and write permissions. As long as it is able to write to the directory, there may be security risks, and many webmasters even give this directory executable permissions, which is very dangerous, so we recommend that this data directory be moved out of the Web accessible directory. This article describes how to move the data directory out of the Web access directory.
Note:
This operation requires users to have a high understanding of the DedeCMS system, if you feel that you do not have a good grasp, you can consider choosing the relevant services of the dream weaving administrator's home. Click View
1. Transfer the data directory to a non-Web directory
Our example here is "D:dedecmsv57" as the root directory of our system, we need to migrate the data folder under the directory (figure 1) to a higher level directory (non-Web directory), a simple way to cut or copy directly.
Let's move to the directory one level up and observe the file path.
two。 Modify the configuration constant of the DEDEDATA directory
Find the / include/common.inc.php file in the system directory and change the DEDEDATA constant to your system directory.
3. Configure the tplcache cache file directory
Go to the system background and modify the tplcache directory in the configuration to match the directory you want.
4. Modify the index.php file in the root directory
Line 9, change / data/ to: /.. / data/
All right, so we can migrate the data directory smoothly.
Note:
This operation is currently only valid for testing in V57 systems, and other versions of the system may need to be adjusted.
After reading this article, I believe you have a certain understanding of the method of migrating the data directory under the DedeCMS root directory to a directory outside web. Want to know more about it. Welcome to follow the industry information channel. Thank you for your reading!
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.