1

UPDATED: It's working on Ubuntu but not on Windows, is there installation problem with Composer ?

Package: https://packagist.org/packages/chetan85/yii2-app-advanced-for-shared-hosting

Command: php composer.phar create-project chetan85/yii2-app-advanced-for-shared-hosting test_shared 2.0.11.2

Error: enter image description here

Same is happening with yii2-advanced app installation: enter image description here enter image description here

BUT: all the update and install command are working fine. If we downdload .zip file from: https://github.com/chetan85/yii2-app-advanced-for-shared-hosting/releases/tag/2.0.11.2

and do php ../composer.phar install It works perfectly fine. enter image description here

Chetan Sharma
  • 2,539
  • 5
  • 25
  • 41
  • I recommend you'd look here: http://www.yiiframework.com/wiki/392/creating-yii-applications-with-composer/ – King Reload May 08 '17 at 09:33
  • Your second error is not the same. That's when you try to install two incompatible libraries, ie maybe they both depend on a different version of each library. Try deleting the global composer.lock and updating your libs. – delboy1978uk May 08 '17 at 19:08
  • Second error is, I tried to install the FXP plugin, it's not working either. But if I download the package and then do "composer install", everything works fine. Same happens for Yii2 as well. – Chetan Sharma May 15 '17 at 07:52
  • Guys, I have tried this on Ubuntu, its working fine there, Only problem is with windows. I'm not able to install YII2 as well. – Chetan Sharma May 22 '17 at 05:38

2 Answers2

0

Can try this php composer.phar create-project chetan85/yii2-app-advanced-for-shared-hosting test_shared

also check if composer is installed globally try with php composer create-project chetan85/yii2-app-advanced-for-shared-hosting test_shared

Anubhav Tiwari
  • 427
  • 4
  • 12
0

@All, The problem here was command i.e Old command

php composer.phar create-project chetan85/yii2-app-advanced-for-shared-hosting test_shared 2.0.11.2

New Command

./composer.phar create-project chetan85/yii2-app-advanced-for-shared-hosting test_shared 2.0.11.2

We SHOULD NOT be using PHP in command i.e

php composer.phar create-project chetan85/yii2-app-advanced-for-shared-hosting test_shared 2.0.11.2

Then everything works fine.

Chetan Sharma
  • 2,539
  • 5
  • 25
  • 41