Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing issue when vhost run on php 7.4 but main server php version is 8 or above #474

Open
jbonlinea opened this issue Mar 28, 2023 · 1 comment

Comments

@jbonlinea
Copy link

Hi there,

I've been using this tool a while ago with great success, however I can't deploy it out of the box at the moment.

My server has several PHP versions installed, so I can choose the one I need for each or my Vhost. The default php version is 8.1, but one of my wp site is still running on php 7.4.

when it try to deploy this tool on this wp site I get this error message :

Dependency resolution completed in 0.001 seconds
Your requirements could not be resolved to an installable set of packages.
Problem 1
    - typisttech/image-optimize-command[0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.3.0] require php ^7.1 -> your php version (8.1.14) does not satisfy that requirement.
    - typisttech/image-optimize-command[0.3.1, 0.4.0, 0.4.1, 0.4.2] require php ^7.2 -> your php version (8.1.14) does not satisfy that requirement.
    - Root composer.json requires typisttech/image-optimize-command @stable -> satisfiable by typisttech/image-optimize-command[0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2].
Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
---
Error: Package installation failed (Composer return code 2).
Reverted composer.json.

As I understand your tool check for my php version, and get the default php version the serve use, not the php version that is used by the vhost i'm deploying it into.

Plus the error message says it should be above 7.2, not the it could not be 8+

I guess I can tweak your code to change the requirement but, isn't there any classier way to deploy it for a site in the above context ?

Thank's in advance for your feedback

@KuraMiYanko
Copy link

I have the same issue. Did you find the solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants