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

composer create is not working #1288

Open
AIC-BV opened this issue Jan 17, 2025 · 8 comments
Open

composer create is not working #1288

AIC-BV opened this issue Jan 17, 2025 · 8 comments

Comments

@AIC-BV
Copy link
Contributor

AIC-BV commented Jan 17, 2025

Winter CMS Build

dev-develop

PHP Version

8.1

Database engine

MySQL/MariaDB

Plugins installed

No response

Issue description

I am trying to set up a new sideproject using the following command from the WinterCMS website:
composer create-project wintercms/winter my-project

This works untill the command runs php artisan winter:install
There is no option to select a database type and errors will be spammed untill it crashes.

Operation System: Windows
PHP version: PHP 8.2.11 (cli) (built: Sep 26 2023 15:25:14) (NTS Visual C++ 2019 x64)

Image

Image

Steps to replicate

composer create-project wintercms/winter my-project

Workaround

No response

@LukeTowers
Copy link
Member

Do you have SQLite support on your environment?

@LukeTowers
Copy link
Member

What OS are you using?

@AIC-BV
Copy link
Contributor Author

AIC-BV commented Jan 17, 2025

What OS are you using?

Windows

@AIC-BV
Copy link
Contributor Author

AIC-BV commented Jan 17, 2025

Do you have SQLite support on your environment?

I don't think so
(But I have no idea. Don't find anything about "Hosting provider + SQLite" when I quickly google it)

@LukeTowers
Copy link
Member

You're paying for a remote server that's running Windows? Windows is really only supported for local development, running it as a production server for a PHP application is a bit wild...

@damsfx
Copy link
Contributor

damsfx commented Jan 18, 2025

@AIC-BV I had the same problem with Windows Os.
WinterCMS is installed without any user interaction.
The result is an installation with default values and no idea of the password given to the site administrator.

I'm always forced to run a second installation with the --force option (php artisan winter:install --force).

It seems that composer on Windows can't run interactive commands.
See: #1242 (comment)

So what have been put in place to simplify WinterCMS installation for Linux and Mac Os users, complicates it for the minority of Windows users.

@AIC-BV
Copy link
Contributor Author

AIC-BV commented Jan 20, 2025

You're paying for a remote server that's running Windows? Windows is really only supported for local development, running it as a production server for a PHP application is a bit wild...

Oh no the remote server is Linux
But my device is Windows and I can't set it up using composer create-project wintercms/winter my-project

@AIC-BV
Copy link
Contributor Author

AIC-BV commented Jan 20, 2025

It seems that composer on Windows can't run interactive commands. See: #1242 (comment)

You are right, manually doing the php artisan winter:install does work.
I don't need the --force flag because the automatic install doesn't do anything anyways it just crashes instantly

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

No branches or pull requests

3 participants