[SOLVED]how install composer (for PHP applications)?

Don't miss a thing. Post your questions and discussion about other uncategorized NAS features here.
Post Reply
rikiko
Starting out
Posts: 23
Joined: Tue Jun 18, 2013 7:33 pm

[SOLVED]how install composer (for PHP applications)?

Post by rikiko »

Hi,
I'd like to use symfony2 (symfony.com) on my QNAP TS-569L.
But I stopped at first step :-P

as described at http://symfony.com/doc/current/book/installation.html
I try to run :
curl -s https://getcomposer.org/installer | php
... or better...
curl -sS -k https://getcomposer.org/installer | /usr/local/apache/bin/php

-k to turn off cur'l verification of certificate.

but does not work!

it sais to me:
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The detect_unicode setting must be disabled.
Add the following to the end of your `php.ini`:
detect_unicode = Off

A php.ini file does not exist. You will have to create one.
If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times.
I try to modify php.ini by web interface... but nothing
Why!?

Thank you in advance for answering (or just reading) my questions!

Rikiko



SOLUTION:
curl -sS -k https://getcomposer.org/installer | /mnt/ext/opt/apache/bin/php -d detect_unicode=Off
ChiefORZ
Starting out
Posts: 17
Joined: Tue Apr 03, 2012 3:52 pm

Re: [SOLVED]how install composer (for PHP applications)?

Post by ChiefORZ »

Have you managed to Install Composer Globally??

I've tried to run following commands and none of those seems to work ...

Code: Select all

php composer.phar install

/mnt/ext/opt/apache/bin/php -v composer.phar install

mv composer.phar /usr/local/bin/composer
cd /usr/local/bin/
/mnt/ext/opt/apache/bin/php -v composer install

A local installation in my Project would be ok aswell
... by the way ... was someone hearing about a coming update to PHP ?
Post Reply

Return to “Miscellaneous”