• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue PHP Composer does not recognize json file

f0rtem

New Pleskian
Server operating system version
centos-7.9-x86_64
Plesk version and microupdate number
Plesk Obsidian Web Admin Edition 18.0.51 Update #1
Hey,

I am trying to install FFMPEG on my server, and I am trying to do that using PHP Composer.

My composer.json file that is in the server's root .composer folder has:
JSON:
{
    "require": {
        "php": ">=7.0",
        "ffmpeg-php/ffmpeg-php": "^0.14.0"
    },
    "config": {
        "allow-plugins": {
            "plesk/composer-command-info": true
        }
    }
}

Then I go to Websites & Domains > PHP Composer > Scan. Simply nothing happens. I tried restarting the server, but it doesn't help. Maybe someone is facing the same issue and could give me advice on what I can do about it?

PHP Version: 8.2.4.
 
I've only recently started using Composer so I'm still very very much new to it (I still remember having to download the zip files, extract the PHP files, and upload manually while manually making sure everything met the requirements and such) but iirc your web host settings would need to be pointing to the /public directory before composer picks up anything, at least that's what I had to do for a few applications I was installing that utilized composer before it was picked up.
 
The Plesk composer function scans for any composer.json file that's inside the domains document root or any directories inside the document root. The document root being the /httpdocs directory by default (but could be another directory if configured differently or when using a sub domain or add-on domain).
 
Last edited:
The Plesk composer function scans for any composer.json file that's inside the domains document root or any directories inside the document root. The document root being the /httpdocs directory by default (but could be another directory if configured differently or when using a sub domain or add-on domain).
I have tried changing directories, putting it pretty much everywhere where it would make sense, didn't worked. I guess the extension has such a **** rating for a reason :D. Installed via ssh console instead.
 
Back
Top