• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Getting Composer to recognise auxiliary json files

Dengro

New Pleskian
Support for Composer is a rather welcome addition to Plesk (many thanks for this!), especially if you're reliant on shared hosting. Unfortunately, I'm having trouble making good use of it on MediaWiki installations.

The problem is that while MediaWiki comes with its own composer.json file, it defers any additional extensions and libraries to a file called composer.local.json. From the docs:

"MediaWiki core "owns" $IP/composer.json and will change the contents of that file in both tarball and Git managed updates. In order to allow local installs to use Composer to load optional libraries and/or manage extensions with Composer, a special plugin for Composer named composer-merge-plugin was developed. This plugin and the MediaWiki core composer.json configuration allow a local deployment to add required extensions and libraries to a file composer.local.json inside the root MediaWiki directory."

Is there any way we can tell Plesk to look for composer.local.json files as well? If not, could such a feature be added to a future release?

Some useful links:
Composer - MediaWiki
Help:Installation/Example "composer.local.json" file - semantic-mediawiki.org
 
I know this post reporting this issue is quite old but I would like to know if someone knows about it or if the Plesk team is working on it.

Thanks in advance, and thank you @Dengro for reporting it.
 
Back
Top