Home > OS >  Symfony deployment problem on hostinger, impossible to download dependencies
Symfony deployment problem on hostinger, impossible to download dependencies

Time:11-18

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

CodePudding user response:

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.

CodePudding user response:

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

  • Related