mariaczi
(Marekurbanowicz)
November 12, 2013, 11:34pm
1
Hello,
I am developing with Yii, not 2.0 yet.
I was going to switch/try Yii 2.0 but after I saw quite complicated way to install it, I resigned.
Maybe it is not rocket science, but it used to be solution "out of box",
just download, quick configure and use.
Is it going to be simply *.zip file to just unpackage, simply config and ready to go?
One line in console, what can be simpler?..
mariaczi
(Marekurbanowicz)
November 13, 2013, 12:23am
3
I am working on Windows, this “one line” doesn’t work
Pathfinder
(Buffermic)
November 13, 2013, 8:08am
4
I am working on windows either.
Everything works all right.
Just follow the steps from documentation
https://github.com/yiisoft/yii2/blob/master/docs/guide/apps-basic.md
To install composer there is .exe file.
samdark
(Alexander Makarov)
November 13, 2013, 1:55pm
5
There will be zip when 2.0 will be stable and released but before that moment composer only.
tgr
(Trond)
November 13, 2013, 5:59pm
6
I just installed 2.0 on windows and had only one small problem that was quickly fixed by googling the error message.
Btw: the first impression of 2.0 is impressive!
gimox
(Modogio)
November 13, 2013, 7:14pm
7
Composer is the right way for a profesional framework.
All good framework use it and is a foundamental component for a good app maintanance.
It can bevinstalled in windows. I suggest you to install it and understand the foundamentals.
I installed Yii2.0 on Windows PC with WAMP as the server.
The issues I faced was
After installing the Composer from the Installer, The windows did not recognize composer.phar file. Also as mentioned in the guide, it was
php composer.phar (rest of the command)
Instead I use composer.bat (rest of the command)
OR
php Full/path/composer.phar (rest of the command) (php should be in your PATH)
Had to install Git from http://msysgit.github.io/ . That was pretty straight forward.
Now comes the most confusing part. It is required that the PHP supports the php_openssl extension. I tried to load the extension from the front-end of the WAMP server and it did not work in-spite of the WAMP server showing that it is loaded. Also tried to modify the php.ini file from the front link. But too it did not work.
The only way is to open the source of WAMP in my case C:\wamp\bin\php\php5.4.16\php.ini and edit it in this file.
remove ; from ;extension=php_openssl.dll and it will start working.
Thnx
Dinesh
tgr
(Trond)
November 16, 2013, 4:36pm
9
@dannythebestguy
Great post. I think that pretty much sums up what you need to do on a windows PC.
I got the problem with the php_openssl, but if I remember correctly, the error message basically tells you what you need to do.
Also, It is worth mentioning that there is a Windows installer for Composer that simplifies things a bit.
Guys, Windows is bad for webdev.
Why don’t you use virtual machines or something.
amnah
(Jellysandwich5+1)
November 17, 2013, 11:25pm
11
dannythebestguy:
After installing the Composer from the Installer, The windows did not recognize composer.phar file. Also as mentioned in the guide, it was
php composer.phar (rest of the command)
Instead I use composer.bat (rest of the command)
OR
php Full/path/composer.phar (rest of the command) (php should be in your PATH)
That’s a bit odd. If you installed composer via the installer, you should be able to just use “composer (rest of command) ”, as it adds the command to your PATH.
Errr, no. Windows is perfectly fine for development. This thread is more about composer installation anyway.
shgninc
(Shgninc)
November 18, 2013, 5:36am
12
When the stable version will release?
It is too prolongated!!!!
samdark
(Alexander Makarov)
November 18, 2013, 7:32am
13
Windows is OK for development if configured properly.
Shahcheraghean
We don’t have any date set yet. You can make release date closer by solving issues: https://github.com/yiisoft/yii2/issues?state=open
shgninc
(Shgninc)
November 18, 2013, 8:54am
14
As i saw that, It maybe release for 1,2,3,4,5,6,… years later;)
Isn’t it !?
samdark
(Alexander Makarov)
November 18, 2013, 3:40pm
15
Well, we hope it will not be N years.
Amjad_Khan
(Amjad Khan)
November 21, 2013, 7:24pm
17
I am getting these errors after installing the yii2 basic app with composer on windows 7 with wamp.
if anyone knows please help me
Make sure there’s a file D:\wamp\www\mybasic\vendor\autoload.php
Pathfinder
(Buffermic)
November 22, 2013, 6:17am
19
Amjad Khan , you need to follow the next steps:
find where your composer has installed itself
In composer.bat add new line with a pause command. So you will see the result of composer work. There might be some error message.
The absence of autoload.php says that composer was not able to install the system properly.
I had the same error.
The solution is to add option --prefer-dist to your command. So it will look like this:
Amjad_Khan
(Amjad Khan)
November 22, 2013, 3:17pm
20
Pathfinder:
Amjad Khan , you need to follow the next steps:
find where your composer has installed itself
In composer.bat add new line with a pause command. So you will see the result of composer work. There might be some error message.
The absence of autoload.php says that composer was not able to install the system properly.
I had the same error.
The solution is to add option --prefer-dist to your command. So it will look like this:
Thanks a lot sir, i have installed the yii2 basic application by just adding --prefer-dist, thanks very much i am really obliged.