[英]Does WordPress refer to any files outside of the main install folder (and database)?
Meaning, if I install WordPress in the /wp folder... would any files in the main root of the domain folder "/" be accessed, or any other folder outside of the /wp folder for that matter? 意思是,如果我在/ wp文件夹中安装WordPress ...是否可以访问域文件夹“ /”的主根目录中的任何文件,或访问/ wp文件夹之外的其他任何文件夹? Meaning, are all of the WordPress files continuously self-contained to just the install folder (/wp in my case) and it's subfolders? 意思是,所有WordPress文件是否都连续地自我包含在安装文件夹(在我的情况下是/ wp)及其子文件夹中?
(Thus, if this is true, to remove WordPress, can we just delete the install folder...and vice-versa, if we install into a particular folder, we know no other files/folder would be affected?) (因此,如果是这样,要删除WordPress,是否可以只删除安装文件夹...反之亦然,如果将其安装到特定文件夹中,我们知道其他文件/文件夹都不会受到影响?)
Thank you! 谢谢!
No, WordPress does not depend on any files outside of the WordPress root directory, under normal circumstances . 不, 在正常情况下 ,WordPress不依赖WordPress根目录之外的任何文件。
There are ways to setup WordPress so you have dependencies outside of the WordPress directory. 有几种方法可以设置WordPress,以便您在WordPress目录之外具有依赖项。 For example, you can specify alternate paths for the wp-content
and uploads
directory. 例如,您可以为wp-content
和uploads
目录指定备用路径。
It's also fairly common to update the wp-config.php
file to reference another file, outside of your web root, that contains all of your database credentials. 更新wp-config.php
文件以引用您的Web根之外的另一个文件(包含所有数据库凭据)也很常见。
Out of the box however WordPress is completely self contained. 开箱即用,但是WordPress是完全独立的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.