How should I write this path? (I am a beginner ~)

Source: Internet
Author: User
How should I write this path? (I am a Cainiao ~~~~~) My dedecms website has three directories under the virtual host: & nbsp; php + mysql, & nbsp; web, & nbsp; Data, & nbsp; logo I want to move the database folder data under the web directory to the Data directory under the VM. The & nbsp; folder has been moved OK. How can I change the relative paths of these two configuration files? How should I write this com path? (I am a Cainiao ~~~~~)
My dedecms website is php + mysql. There are three directories under the VM: web, Data, and logo.

Now I want to move the database folder data under the web directory to the Data directory under the VM. the folder has been moved OK.


How can I change the relative paths of these two configuration files?


This is the path to change the common. inc. php file:

Define ('destdata', DEDEROOT. '/data ');


This is the path to change the cache Directory of the system background template:

/Data/tplcache
------ Solution --------------------
Try $ _ SERVER ['document _ root']
Define ('destdata', $ _ SERVER ['document _ root']. '/data ');

------ Solution --------------------
DEDEROOT should be defined to point to the web, and you move the data directory to the level directory Data of the web directory. Therefore, DEDEROOT cannot be used as the top-level path. You can re-define a constant to the Data directory, and then connect the new constant to the data directory.

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.