skip to Main Content

I have been trying for several days to deploy a Symfony site. All the files are well in the public folder with the .htaccess, I only need the dependencies for the site to be functional. The problem is that when I run the command

php composer.phar update

Serveur ssh error

I get several error messages concerning my version of PHP.
The host is hostinger. I know the problem comes from the composer.json file and the version of the bundles but I don’t know how to solve the problem.

Thanks

composer.json

2

Answers


  1. Chosen as BEST ANSWER

    I contacted hostinger, and the problem is that the server was in PHP7 after changing to PHP8 it worked. Thank you all for your responses


  2. you need php version 8.1 as the message says. Normally, for a deployment you should not launch a composer update. It would rather be a composer install.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search