CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript, Python code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Tue Mar 19, 2024 9:25 am

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Can't create Symfony project because error.
PostPosted: Thu Jul 29, 2021 5:48 pm 
Offline

Joined: Mon Oct 26, 2020 1:32 pm
Posts: 78
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Can't create Symfony project because error.
PostPosted: Fri Jul 30, 2021 6:48 am 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3931
Hi.

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

Thanks,
Codelobster Team.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Can't create Symfony project because error.
PostPosted: Fri Jul 30, 2021 12:27 pm 
Offline

Joined: Mon Oct 26, 2020 1:32 pm
Posts: 78
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Can't create Symfony project because error.
PostPosted: Fri Jul 30, 2021 12:52 pm 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3931
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Can't create Symfony project because error.
PostPosted: Fri Jul 30, 2021 1:33 pm 
Offline

Joined: Mon Oct 26, 2020 1:32 pm
Posts: 78
Thanks for the fast answer.
I don't have an Apache installed. I thought Codelobster will do all the needed things for me?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Can't create Symfony project because error.
PostPosted: Fri Jul 30, 2021 1:43 pm 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3931
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Can't create Symfony project because error.
PostPosted: Fri Jul 30, 2021 9:49 pm 
Offline

Joined: Mon Oct 26, 2020 1:32 pm
Posts: 78
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Can't create Symfony project because error.
PostPosted: Mon Aug 02, 2021 6:39 am 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3931
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Can't create Symfony project because error.
PostPosted: Mon Aug 02, 2021 11:43 am 
Offline

Joined: Mon Oct 26, 2020 1:32 pm
Posts: 78
Thanks. It seems to work. Now I can beginn zu learn Symfony / Laravel :-)


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Can't create Symfony project because error.
PostPosted: Tue Aug 03, 2021 3:46 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject: Re: Can't create Symfony project because error.
PostPosted: Tue Aug 03, 2021 3:47 pm 
Offline

Joined: Mon Oct 26, 2020 1:32 pm
Posts: 78
It was me again. Forget to login. Sorry.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Can't create Symfony project because error.
PostPosted: Sat Aug 14, 2021 1:00 pm 
Offline

Joined: Mon Oct 26, 2020 1:32 pm
Posts: 78
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 24 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2016 phpBB Group