CodeLobster IDE
http://codelobster.com/forum/

Can't create Symfony project because error.
http://codelobster.com/forum/viewtopic.php?f=8&t=25020
Page 1 of 1

Author:  TheQuestionmark [ Thu Jul 29, 2021 5:48 pm ]
Post subject:  Can't create Symfony project because error.

I want to test Symfony / Laravel-Framework, but if I want to create a new project, i get error:
Quote:
Can't create Symfony project because error:
Critical error: Setup symfony error

Same with Laravel.

Any idea, what I do wrong?

Author:  Admin [ Fri Jul 30, 2021 6:48 am ]
Post subject:  Re: Can't create Symfony project because error.

Hi.

Could You, please, send us the content of Output Window.

Thanks,
Codelobster Team.

Author:  TheQuestionmark [ Fri Jul 30, 2021 12:27 pm ]
Post subject:  Re: Can't create Symfony project because error.

Thanks for your response:
Quote:
Creating project
Directory: C:/Users/***/AppData/Roaming/CodelobsterIDE/ Command: "C:/Web/php/php.exe" composer-setup.php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl

I use this PHP: https://windows.php.net/download/

Do I have to install something, bevore creating a project? I think Codelobster will do all for me?

Author:  Admin [ Fri Jul 30, 2021 12:52 pm ]
Post subject:  Re: Can't create Symfony project because error.

Hi.

Please, uncomment the following line:

Code:
;extension=php_openssl.dll

to
Code:
extension=php_openssl.dll

in your php.ini file and restart apache server.

Thanks,
Codelobster Team.

Author:  TheQuestionmark [ Fri Jul 30, 2021 1:33 pm ]
Post subject:  Re: Can't create Symfony project because error.

Thanks for the fast answer.
I don't have an Apache installed. I thought Codelobster will do all the needed things for me?

Author:  Admin [ Fri Jul 30, 2021 1:43 pm ]
Post subject:  Re: Can't create Symfony project because error.

Hi.

Looks like You have installed a web server already in C:\Web
(but most probably it is IIS, not apache).
But it doesn't matter.
Please, restart your web server after applying these changes in php.ini file.

Regards,
Codelobster Team.

Author:  TheQuestionmark [ Fri Jul 30, 2021 9:49 pm ]
Post subject:  Re: Can't create Symfony project because error.

Thanks. I installed XAMPP, todays version with PHP 8.0.8. Now I get error:
Quote:
Directory: C:/Users/***/AppData/Roaming/CodelobsterIDE/ Command: "C:/xampp/php/php.exe" composer-setup.php
All settings correct for using Composer
SHA384 is not supported by your openssl extension

Seems like it is to old
Quote:
The error means you are using composer of version 1.7.2or below. You have to uninstall composer and then install a composer version 1.7.3 and above.
https://stackoverflow.com/a/57807668, https://github.com/composer/composer/issues/7802
Did I something wrong again?

Author:  Admin [ Mon Aug 02, 2021 6:39 am ]
Post subject:  Re: Can't create Symfony project because error.

Hi.

1) We have changed composer installer on our server side.
Please, try to install Symfony or Laravel once more.

2) If it doesn't help then, please, comment backward
Code:
;extension=php_openssl.dll

and try once more.

Thanks,
Codelobster Team.

Author:  TheQuestionmark [ Mon Aug 02, 2021 11:43 am ]
Post subject:  Re: Can't create Symfony project because error.

Thanks. It seems to work. Now I can beginn zu learn Symfony / Laravel :-)

Author:  Guest [ Tue Aug 03, 2021 3:46 pm ]
Post subject:  Re: Can't create Symfony project because error.

Laravel seem to be fine. I get an default startpage after install.

Not so by Symfony 5. If I created the project and go to the page I get an "Index of" site. If I click to "public"-folder I get an connection error. See my screenshots.

Image
Image

Author:  TheQuestionmark [ Tue Aug 03, 2021 3:47 pm ]
Post subject:  Re: Can't create Symfony project because error.

It was me again. Forget to login. Sorry.

Author:  TheQuestionmark [ Sat Aug 14, 2021 1:00 pm ]
Post subject:  Re: Can't create Symfony project because error.

Have found the reason.
Could you please add an option to use
Quote:
composer create-project symfony/skeleton my_project_name
instead of
Quote:
composer create-project symfony/website-skeleton my_project_name

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/