Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lukegalea16's avatar

Plesk PHP Extensions Missing

Trying to run composer require intervention/image on my Plesk Server and apart from getting the following error Do not run Composer as root/super user! See https://getcomposer.org/root for details , I keep getting errors for missing extensions such as requires phpoffice/phpspreadsheet. After installing an extension I usually get prompted to install another extension and so on.

0 likes
8 replies
Sinnbeck's avatar

Are you sure they arent just suggestions? Can you show the exact "error" ?

lukegalea16's avatar

Your requirements could not be resolved to an installable set of packages.

Sinnbeck's avatar

Is that the only line you are getting? There should be alot more.

Sinnbeck's avatar

And are you using plesk as your development server? You should only require packages on development while developing..

lukegalea16's avatar

I installed the package locally and it worked, but installing the package on my plesk server did not work. There are a lot of other errors but all related to phpoffice/phpspreadsheet

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

You are supposed to make a working version of composer.json and composer.lock. Then those files go onto your plesk server, where you simply run

composer install

This will install packages based on those files (meaning versions etc will match)

Sinnbeck's avatar

No worries. It is a common misconception when starting out. But having the exact same versions of all packages, ensures that things work as expected.

Actually this is the version I use, but I suggest you read up on it as you get comfortable with it

composer install --prefer-dist --no-scripts --no-dev -q -o;
1 like

Please or to participate in this conversation.