admin管理员组文章数量:1387390
I have recently taken over a WordPress website.
Once I got access to the server I found that there were more than 70 installations of WordPress spread across it (files and DBs).
What is the quickest/easiest way for me to determine which installation is the one that is running the actual live website?
I thought of putting a PHP file into each installation (a file that echoed something along the lines of $_SERVER['PHP_SELF'];
) - then try and access that file from the site itself, from there I know which installation is the correct one (I can then work out which DB is the correct one from the wp-config).
But surely there is an easier way? I have access to wp-admin, is there anything I can do in there to show me the base install path of this particular WordPress?
I have recently taken over a WordPress website.
Once I got access to the server I found that there were more than 70 installations of WordPress spread across it (files and DBs).
What is the quickest/easiest way for me to determine which installation is the one that is running the actual live website?
I thought of putting a PHP file into each installation (a file that echoed something along the lines of $_SERVER['PHP_SELF'];
) - then try and access that file from the site itself, from there I know which installation is the correct one (I can then work out which DB is the correct one from the wp-config).
But surely there is an easier way? I have access to wp-admin, is there anything I can do in there to show me the base install path of this particular WordPress?
Share Improve this question asked Mar 14, 2020 at 14:02 JimmeryJimmery 1354 bronze badges 1- Are the files that are spread across the server in folders? You might try checking the domain itself to see which folder it points to. Depending on the host company, that info should be in the Control Panel/Plesk interface - for example, with IONOS you'd go to Domains, then click on the domain to see it's details including it's destination (folder) – Trisha Commented Mar 17, 2020 at 23:53
1 Answer
Reset to default 1If you haven't already figured this out, as you have admin access to the dashboard, just go into Appearance->Theme Editor then add some PHP into the theme's footer.php or functions.php to echo out the location of the install on the server.
本文标签: wp filesystemFinding the path of a specific WordPress install
版权声明:本文标题:wp filesystem - Finding the path of a specific WordPress install 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744544877a2611836.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论