Symptoms
A domain fails to be recognized by the WP Toolkit due to having an incorrect Installation Path.
[ root@server ~]# wp-toolkit info -domain-name $domain.tld -path /home/domain/public_html
ID 1111
Installation Path /public_html/home/domain/public_html
Owner ID 2323
GUID 1dsdsgrefsdf-3211-34fs-2123-0406efb7320d
State Broken
Website URL http://$domain.tld
Description
The WP Toolkit won't recognize the WordPress installation due to an incorrect Installation Path.
Workaround
You'll need to detach and then register the domain with the following commands:
Detaching the instance
[root@server ~]# wp-toolkit --detach -instance-id $instance-id
Registering the instance
If the file /home/$user/public_html/.wp-toolkit-ignore exists this will need to be removed.
[root@server ~]# rm /home/waterdri/public_html/.wp-toolkit-ignore
rm: remove regular file '/home/waterdri/public_html/.wp-toolkit-ignore'? y
Then you'll need to register the domain. To register the WordPress instance you'll need to ensure to use a relative path (relative to the Document Root).
[root@server ~]# wp-toolkit --register -domain-name $domain.tld -path /
WordPress installation was added to WP Toolkit.
Finally, verify that the instance was registered correctly.
[root@server ~]# wp-toolkit --list -domain-name $domain.tld ID Installation Path Owner ID State Hidden Website URL Name Version 1602 /public_html 2118 Working false https://$domain.tld $name $wp-version
Comments
0 comments
Please sign in to leave a comment.