A
A
Anton2015-01-04 15:41:28
Yii
Anton, 2015-01-04 15:41:28

How to install yii 2 on openserver?

Hello!
I can't install yii. I even stopped at the fact that Composer was not installed correctly. Such an error appears - dl2.joxi.net/drive/0001/3964/98172/150104/aa8f1ac9...
I also tried through the openserver console - the same situation, only before it reported that some libraries were missing. I downloaded dll files and uploaded them to my computer. Outcome: the same error appeared again. There is a file in that folder, I checked.
What could be the problem?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
@
@idel, 2015-01-05
@Yadalay

I also had some problem with Composer. As a result, Yii2 was installed in the following way:
1. Run the command on the command line:
The composer.phar file will appear in the folder.
2. Now Yii2 is installed using the command:

php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta4"
php composer.phar create-project --prefer-dist yiisoft/yii2-app-basic projectname

You will also need to enter the password from your Github account.
PS. Use the console from OpenServer. There, if I'm not mistaken, all the paths are written in both php and mysql.

R
Rafail Dunyashev, 2016-08-08
@NoizeMC

I realize the question was asked a long time ago, but the search still leads to this page. Started learning yii2 today and ran into the same problem. Perhaps someone will help.
The solution turned out to be very simple.
1. Composer is already built into Openserver , you do not need to install it
2. From the first point it follows that to install yii you only need to use the composer command
Example:
In the official guide to install yii2, you need to do:
php composer.phar global require "fxp/composer- asset-plugin:~1.1.1"
in the openserver console you need to type ONLY this:
Then you type accordingly:
Those php composer.phar change to composer and everything works
PS when executing composer create-project yiisoft/yii2-app-basic basic 2.0.9 is better go to the root folder of your site or specify the address when creating, for example:
This will create the internet-shop folder in the standard Openserver domains repository , where base yii2 will be hosted. The name basic can of course also be changed.
In order to configure Openserver to run a project on yii2 in the browser viewshop.ru instead of shop.ru/basic/web I
advise you to refer to this article , there are two simple solutions

S
Sergey, 2015-01-04
@TsarS

Try another apache enable for 5.6 or enable 5u4. And Composer is already "built-in" into openserver there - you don't need to install it

I
Igor Pushkarsky, 2015-01-04
@RainMEN

Oponserver full version? Installed and unpacked as administrator? What version of openserver?

D
Dmitry, 2015-01-04
@ExileeD

Launch the built-in console from the Open Server menu and then launch Composer in it

S
suppot4545, 2016-08-26
@suppot4545

Here is a detailed guide for installing yii2 on open server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question