Articles in this section

Failed to attach the instance to PHP Composer in Plesk: Domain another-domain.tld has standard forwarding configured.

kb: technical Plesk Obsidian for Linux ext: composer

Symptoms

Lavarel scan for any domain fails with the following error:

PLESK_ERROR: Failed to attach the instance in '/var/www/vhosts/example.com/httpdocs' to PHP composer: Domain another-domain.tld has standard forwarding configured. This operation is available only for domains with web hosting.

Cause

Bug in Plesk PHP Composer extension with #EXTPHPCOMP-239 ID.

Resolution

  1. Connect to the server via SSH
  2. Backup composer SQLite DB:

    # cp /usr/local/psa/var/modules/composer/composer.sqlite3 /usr/local/psa/var/modules/composer/composer.sqlite3.bkp

  3. Log into SQLite and remove records for the orphan domain:

    # sqlite3 /usr/local/psa/var/modules/composer/composer.sqlite3
    SQLite version 3.7.17 2013-05-20 00:56:22
    Enter ".help" for instructions
    Enter SQL statements terminated with a ";"
    sqlite> select * from Application where domainId=240;
    1|john-doe/phpthumb|www/another-domain.tld/phpThumb/composer.json|24|1585894494
    sqlite> delete from Application where domainId=24;

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.