Installation errors when using Composer 2
I tried to install Cosum on a Linux server that has
- PHP 7.4
- Composer 2.0.8
- MariaDB
During installation I encountered two problems:
- Composer seems to be too recent when running
php artisan migrate
(cf. https://github.com/composer/composer/issues/9340). I updated laravel/framework and illuminate/foundation as indicated in the Github issue. - Re-running
php artisan migrate
leads to the next error: "CreateBansTable" is already defined (file2018_10_22_000000_create_bans_table.php
). I removed the file fromdatabase/migrations
and now the migration finishes without errors. The bans table is present in the database.
In my opinion, the installation instructions should be improved too. Someone who is not familiar with setting up Laravel applications, like me, might have a hard time to get the application to run. I will put this into a separate issue.
Edited by Daniel Appelt