Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not open input file: composer.phar #1116

Closed
Chrysweel opened this issue Sep 17, 2012 · 8 comments
Closed

Could not open input file: composer.phar #1116

Chrysweel opened this issue Sep 17, 2012 · 8 comments

Comments

@Chrysweel
Copy link

I have a problem!
I try create a project new symfony2.1. I did the following steps:

1º curl -s http://getcomposer.org/installer | php
2º sudo mv composer.phar /usr/local/bin/composer
3º php composer.phar create-project symfony/framework-standard-edition var/www/myproject

My folder /usrl/local/bin has a 777 permit

I do in my folder project : php composer.phar

But I have this error: Could not open input file: composer.phar

In my http://localhost/myproject/web/config.php

I have three problems:
Vendor libraries are missing. Install composer following instructions from http://getcomposer.org/. Then run "php composer.phar install" to install them.
Set the "date.timezone" setting in php.ini* (like Europe/Paris).
Add "phar" to suhosin.executor.include.whitelist in php.ini*.

But php composer.phar install doesnt run.

Please help me, I have a project in symfony2.0.x and I want update to symfony2.1, but I do not know do it.

@bamarni
Copy link
Contributor

bamarni commented Sep 17, 2012

of course it doesn't work you're trying to interpret a script you just moved!

You shouldn't run the command n°2, or use "composer create-project ..." (assuming the directory you moved the script to is in your PATH)

@Chrysweel
Copy link
Author

So I have to do in this folder all the commands with composer.phar .. ok

How can I solve the three problems ? And What do I have to do to update my project to symfony2.1 ?

thanks : )

@stof
Copy link
Contributor

stof commented Sep 17, 2012

@Chrysweel either use php composer.phar without moving the phar to /usr/local/bin, or use composer if you moved it as a global installation

@Seldaek
Copy link
Member

Seldaek commented Sep 18, 2012

Stof said it all I think. Closing the issue.

@Seldaek Seldaek closed this as completed Sep 18, 2012
@zidorsml
Copy link

hi everybody! i'm beginer on php and yii2 framework, i have a probem with my composer.phar, i tried yo install a extention of yii2 here is the error message that i got: could not open the input file: composer.phar" so thank to you to help me resolve this problem, remember that i'm beginner in programation world, thank you

@xabbuh
Copy link
Contributor

xabbuh commented Apr 28, 2015

@zidorsml Are you sure that the composer.phar file is located in the same directory you are executing the command? Have you successfully download the Composer binary before?

@zidorsml
Copy link

thank you @xabbuh, i don't know if composer.phar file is located in the same directory, can you help me to verify and set it

@sathishfreaks5
Copy link

I think you composer may old. so please update with command as "php composer.phar self-update"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants