Composer install log location on Ubuntu - composer-php

I am trying to install Drupal's OpenEdu project on Ubuntu 16.04 with composer by running the following command:
composer create-project imagex/openedu-project openedu
This produces a load of messages pertaining to PHP settings, and the project is not installed. The problem is that I cannot see all the messages on the screen (VMware console), only the last x lines.
The question is: where can I see the full result of the attempt at creation of the project?

You can redirect composer output to file:
composer create-project imagex/openedu-project openedu --no-interaction --no-progress > install.log 2>&1
And then use less to browse the file:
less install.log

Related

Composer 'create-project' command not downloading laravel

Already installed composer to 'C:/xampp/htdocs/crud' with cmd. However trying to install laravel via the 'composer create-project --prefer-dist laravel/laravel blog' command does not download or install anything. The 'composer global require laravel/installer' command produces the same result.
PS: don't know if it wrecks anything but, I was having trouble running the composer command at first, kept saying there is no app to open '.phar' files. I found an answer here that asked me run .phar files with php.exe by default and thats what i did.
A picture to show what happens when I run the composer commands to install laravel...

Incorrect command error for composer network deploy

I'm following this tutorial on macOS.
$ composer -v
v0.20.1
$ composer network deploy -a dist/iot-perishable-network.bna -A admin -S adminpw -c PeerAdmin#hlfv1 -f networkadmin.card
Incorrect command. Please see the list of commands above, or enter "composer network --help".
Available composer network commands in the list mentioned above: download, install, list, loglevel, ping, reset, start, upgrade
You are using Composer v0.20.1, the tutorial you are referring to is using Composer v0.15.0.
The deploy command has been removed since Hyperledger 0.19.0.
See https://github.com/hyperledger/composer/releases/tag/v0.19.0 :
The following commands are no longer valid:
composer runtime install
composer network deploy
composer network update
composer network undeploy
You now have to use the following commands instead :
composer network install
composer network start
composer network upgrade
See https://hyperledger.github.io/composer/latest/reference/commands for last valid commands.

Symfony 4 installation with composer faild

When I do sudo composer create-project monolog/monolog Experience2 it succed:
But When I try to install a fresh Symfony 4 application as describe in the official documentation: composer create-project symfony/skeleton Experience2 it faild:
I know about the warning message displayed by composer in fact about the information on composer website according to my understanding, the needed configuration can only be done in composer.json file which one I'll get only after successful istallation then how can I edit it ? since the installation does not succed (therefore there is no file such as ./Experience2/composer.json).

Getting Error in installation of yii2 advance template

I'm new to Yii2, I'm trying to install yii2 application advanced template.
I did follow these steps:
1 - Download yii2-app-advanced zip file from https://github.com/yiisoft/yii2-app-advanced
Follow GETTING STARTED guide:
My vendor directory Show Empty.
Please help, thanks in advance
Installing via Composer
If you do not already have Composer installed, you may do so by following the instructions at getcomposer.org. On Linux and Mac OS X, you'll run the following commands:
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
On Windows, you'll download and run Composer-Setup.exe.
Please refer to the Composer Documentation if you encounter any problems or want to learn more about Composer usage.
If you had Composer already installed before, make sure you use an up to date version. You can update Composer by running composer self-update.
With Composer installed, you can install Yii by running the following commands under a Web-accessible folder:
composer global require "fxp/composer-asset-plugin:~1.0.3"
composer create-project --prefer-dist yiisoft/yii2-app-advanced basic
The first command installs the composer asset plugin which allows managing bower and npm package dependencies through Composer. You only need to run this command once for all. The second command installs Yii in a directory named basic. You can choose a different directory name if you want.
Note: During the installation Composer may ask for your Github login credentials. This is normal because Composer needs to get enough API rate-limit to retrieve the dependent package information from Github. For more details, please refer to the Composer documentation.
composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced basic
Yii2 Installation Following command:
(1) First install Composer (LINUX):
Locally:
curl -sS https://getcomposer.org/installer | php
OR
(1) First install Composer (WINDOWS):
C:\Users\username>cd C:\bin
C:\bin>php -r "readfile('https://getcomposer.org/installer');" | php
Note: If the above fails due to readfile, use the http url or enable php_openssl.dll in php.ini
C:\bin>echo #php "%~dp0composer.phar" %>composer.bat*
C:\Users\username>composer -V
Composer version 27d8904
(2) Yii2 framework online downloads:
Basic App:
php composer.phar create-project yiisoft/yii2-app-basic basic 2.0.0-beta
Advanced App:
php composer.phar create-project yiisoft/yii2-app-advanced advanced 2.0.0-beta
(3) Other App Settings Command:
php init
php yii migrate
Refrence
use composer cos you need composer in future too!
and after unzip the advance project in www or htdocs you should navigate to your project with cmd or terminal and type yii migrate after that again type composer update

Laravel install in localhost

I am using windows 8 .I am using XAMPP.I installed XAMPP in D drive. My web root path is D:\php\htdocs. Location of php.exe file is D:\php\php. I would like to install Composer first then Laravel using composer. Could any one show me the whole process with step by step instruction ??
Add Php installation path to Environment Variable.
Cd to D:\xampp\php [Php Installation path]
Install composer using, php -r "readfile('https://getcomposer.org/installer');" | php
Create composer.bat file, using D:\xampp\php>echo #php "%~dp0composer.phar" %*>composer.bat
Check the installation using composer -V.
If it works fine, install laravel using the following command. composer create-project laravel/laravel myapp --prefer-dist
Download and run the Composer Windows Installer from here: https://getcomposer.org/download/
Go to web root directory D:\php\htdocs
Run composer create-project laravel/laravel myapp, this will install laravel project in D:\php\htdocs\myapp directory.

Resources