Ich habe SSH-Zugriff auf meine 1and1 Server. Ich versuche, den Komponisten herunterzuladen.Composer kann nicht heruntergeladen werden - 1and1 mit ssh Zugriff auf Server
Nach Anweisungen von http://getcomposer.org/download/
Versuch 1:
user:~ > curl -sS https://getcomposer.org/installer | php
X-Powered-By: PHP/4.4.9
Content-type: text/html
<br />
<b>Parse error</b>: syntax error, unexpected '{' in <b>-</b> on line <b>316</b><br />
Versuch 2:
php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
Error in argument 1, char 2: option not found r
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
php <file> [args...]
-a Run interactively
-b <address:port>|<port> Bind Path for external FASTCGI Server mode
-C Do not chdir to the script's directory
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse <file>. Implies `-q'
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z <file> Load Zend extension <file>.
Bin ich etwas offensichtlich falsch?
Ich weiß, dass es heißt, dass ich PHP 4.4.9 ausführen, aber wenn ich phpinfo() ausführen, heißt es PHP Version 5.4.21
läuft. Irgendwelche Vorschläge, was hier vor sich geht?
phpinfo()
php -v
verwenden od Sie den letzten PHP laufen? –
Das ist das seltsame Ding ... Wenn ich PHPinfo ausführen, bekomme ich 'PHP Version 5.4.21' – Gravy
Was gibt' php -v' Ihnen? –