A
A
Alexander2016-02-17 12:40:15
open server
Alexander, 2016-02-17 12:40:15

How to update composer via OpenServer console?

There was a problem, I decided to install a library for the framework through php composer. I work with OpenServer, it has composer installed by default. Through the console, OpenServer began to download the library and received a message that my composer needs to be updated. I started updating with the c:\openserver\modules\php\PHP-5.3\composer.phar self -update command , as a result, Windows displays the message joxi.ru/J2bNBJXS45dZk2 cannot open the composer.phar file
What is the problem?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Maxim Timofeev, 2016-02-17
@inviziblll

cd to the domains/your site folder and run
composer self-update

N
Nick Murzin, 2016-02-17
@R0s0maxa

>php c:\openserver\modules\php\PHP-5.3\composer.phar self -update

S
Stanislav Pochepko, 2016-02-17
@DJZT

composer.phar is a script file. It must be run with a php interpreter.
If you want to work with a regular team composer, then download the installation version from the site. She works a little faster. Than portable.

B
biggdred, 2017-02-24
@bigdred

composer self-update
if it didn't work then go to w:\modules\php\PHP-5.6 folder and composer self-update there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question