I’d like to create a Sylius project but I can’t install the initial project following the instructions in the documentation.
the command compose
compose create-project sylius/sylius-standard MyFirstShop
works but when I create .env.local which contains :
DATABASE_URL=mysql://root@localhost/my_project?serverVersion=8
then I run the command :
php bin/console sylius:install
this is where the installation crashes.
I have the following error :
then I create the database on phpmyadmin then I re-run the command with the database created but empty:
I tried to launch the creation of the database with doctrine and then do the migration but still the same as the image above.
Someone who has already had the same problem 🙁
2
Answers
! UPDATE ! : I solved the problem by changing the php version to 8.0.30 !
The environment variables file should be named
.env
instead of.env.local
.env file should presents in folder’s structure
The sylius standard front-end app