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
Add a comment  | 

1 Answer 1

Reset to default 1

If 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