简体   繁体   English

WordPress是否引用主安装文件夹(和数据库)之外的任何文件?

[英]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-contentuploads目录指定备用路径。

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.

相关问题 如何更改 sqlite 数据库以使用 JAVA 在任何其他文件夹而不是临时文件夹中创建临时文件? - How to change sqlite database to create temporary files in any other folder instead of temp folder using JAVA? 如何在不丢失 wordpress 站点的情况下删除 wordpress 数据库中的主表? - How remove main table in database in wordpress without losing wordpress site? 哪个MySQL数据库是我的WordPress安装使用的? - Which MySQL database is my WordPress install using? Docker数据库文件:容器内部还是外部? - Docker database files: inside or outside the container? PostgreSQL是否在某个地方安装数据库? - Does PostgreSQL install a database somewhere? 如何使用 wordpress 数据库到 Laravel? 有什么办法吗? - how to use wordpress database to laravel? is there any way? 是否有任何解决方法可以在 Windows 上安装 Greenplum 数据库 - Is there any workaround to install Greenplum database on Windows 如何在htdocs文件夹之外访问XAMPP mysql数据库 - How to access XAMPP mysql database outside of htdocs folder Wordpress:将文件从媒体库导入数据库 - Wordpress: Import files from media library into database 数据库表可以在不违反任何设计原则的情况下引用多个表吗? - Can a database table refer to more then one table without breaking any design principles
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM