WordPress Installation tool: Change directory Url
It needs a possibility to change the URL or reload the correct Url of the installtion.
Starting with WPT 4.6, WordPress administrators can automatically update their website URL in the WordPress database and wp-config.php file based on the actual current URL. This procedure is particularly useful after migrating a website from a different location like your local workstation. The Update Site URL feature is available in the “hamburger” (context drop-down menu) on a WordPress site card.
If you have feedback on this feature, let us know at our forum (https://talk.plesk.com) or other communication channels.
There should be the ability to specify WordPress installation path and site name during quick install.
This is critical capability as nearly all of my WP installs move directories at least once in their life cycle. Not only should you be able to change the WP installation dir, you should be able to move the WP install from the Wordpress tools.
I suggest NOT to install Wordpress with Plesk. Lot of problems for nothing.
Dean Miller commented
This is affecting me also. I am extremely surprised that this is not yet inbuilt functionality and that Plesk management are not placing a higher priority on fixing this. I updated the admin email address in the Plesk Wordpress app settings section, and now when I try to login to Wordpress, it's redirecting me to where the files used to reside and I can't login. Great job guys. I should NOT have to play around in the plesk database to manually update the installation path.
Marco Marsala commented
This became a security issue. If the Wordpress path is not correct, when you change something in Hosting Settings for that domain (for ex.: the preferred url), Plesk will broke your Wordpress installation while trying to reconfigure it, and you site will be down.
It happened to me and I discovered that after saving, Plesk changed the path (already correct) in Wordpress database with the wrong one = whole site down.
This is now a security issue.
Marco Marsala commented
The OP need to change the URL seen by Plesk APS. Even if you migrated Wordpress from temporary directory /wordpress to production directory / for example with Duplicator plugin, Plesk still sees the old URL and this may cause lots of troubles.
For example, we experienced issues in restoring subscriptions from backups due to that problem. And don't click Remove... Plesk will remove your site database and you will lose everything (because when you migrate Wordpress from test folder to production the DB name often stays the same).
Charles Mangin commented
Since I just finished wrestling with this myself, and this forum came up in my Google searches, I'm sharing my solution.
Note, this is on a Linux server.
As an admin user, at a terminal:
plesk db dump > PSA.sql
This creates a SQL dump, essentially a backup of your psa database.
Edit that (or a copy of it) looking for instances of "/wordpress" and "'wordpress'" in the following tables:
Remove the relevant parts, for instance:
(145,71,'urlPrefix','wordpress') becomes (145,71,'urlPrefix','')
(14,16,'/httpdocs/wordpress',0,14) becomes (14,16,'/httpdocs',0,14)
Pay special attention to string lengths in variables that look like this:
... s:19:\"/httpdocs/wordpress\" ...
so that your updated string would be:
... s:9:\"/httpdocs\" ...
Once your SQL file is duly scrubbed, import it back into the psa database thus:
plesk db < PSA.sql
To be satisfied that your update has worked, show one of the updated tables:
plesk db show apsResourcesParameters
The lines with "urlPrefix" should no longer contain "wordpress".
Log into Plesk, and go to Server Management -> Wordpress.
Click on a broken installation, to edit it. Click the "Refresh" button at the top of that page. The page should now show a proper Wordpress installation in the root instead of a sub-folder.
Share and enjoy!
It is possible to specify installation URL for WP if you perform Custom installation. Does this solve your problem?
Changing the application path for any installation done in a temporary directory - there needs to be a setting so this can be changed after a site goes live.