Plesk

PHP Composer does not detect the composer.json file: No applications were found

Symptoms

The domain was scanned. No applications were found

Cause

The example.com domain's document root folder is shared across several domains and it is excluded from the scan. This is expected behavior according to the PHP Composer scanning logic.

A request EXTPHPCOMP-173 has been created to improve the generic "No applications were found" message to communicate the cause of this issue more clearly.

Resolution

As a workaround, consider one of the following options:

# mv /var/www/vhosts/example.com/httpdocs/composer.json /var/www/vhosts/example.com/

Note: Doing this will make the PHP Composer scan the entire /var/www/vhosts/example.com/ directory and all subdirectories

Exit mobile version