Wie kann ich php-cli auf meinem VServer installieren ?

TrippleEx

New Member
Hallo,

wie wird php-cli aktiviert bzw. Installiert übder die Konsole.

Es ist ein VServer mit SuseLinux 10.1 64Bit + Plesk 8.

Über Yast habe ich mit der Suche nichts mit cli gefunden.
Es soll mit apt4rpm funktionieren, habe aber keine ahnung wie.

Kann mir jemand an dieser Stelle weiterhelfen?

Gegoogelt habe ich auch schon aber nichts gefunden.

In der phpinfo.php bekomme ich:

Configure Command '../configure' '--prefix=/usr' '--datadir=/usr/share/php5' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--with-libdir=lib64' '--includedir=/usr/include' '--sysconfdir=/etc/php5/apache2' '--with-config-file-path=/etc/php5/apache2' '--with-config-file-scan-dir=/etc/php5/conf.d' '--with-exec-dir=/usr/lib64/php5/bin' '--enable-magic-quotes' '--enable-libxml' '--enable-session' '--with-mm' '--with-pcre-regex' '--enable-xml' '--enable-simplexml' '--enable-spl' '--enable-safe-mode' '--disable-debug' '--enable-memory-limit' '--enable-inline-optimization' '--enable-zend-multibyte' '--disable-rpath' '--with-apxs2=/usr/sbin/apxs2' '--disable-all' '--disable-cli'

Danke schon mal im voraus.
 
Last edited by a moderator:
Configure Command '../configure' '--prefix=/usr' '--datadir=/usr/share/php5' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--with-libdir=lib64' '--includedir=/usr/include' '--sysconfdir=/etc/php5/apache2' '--with-config-file-path=/etc/php5/apache2' '--with-config-file-scan-dir=/etc/php5/conf.d' '--with-exec-dir=/usr/lib64/php5/bin' '--enable-magic-quotes' '--enable-libxml' '--enable-session' '--with-mm' '--with-pcre-regex' '--enable-xml' '--enable-simplexml' '--enable-spl' '--enable-safe-mode' '--disable-debug' '--enable-memory-limit' '--enable-inline-optimization' '--enable-zend-multibyte' '--disable-rpath' '--with-apxs2=/usr/sbin/apxs2' '--disable-all' '--disable-cli'

Da hast du das Problem. Du musst PHP neu compilieren mit --enable-cli.
 
Da hast du das Problem. Du musst PHP neu compilieren mit .

Wie mache ich das, mit "--enable-cli" ??

Ich bekomme folgendes angezeigt wenn ich das Script ausführe, das ich installeren möchte:

which: no php in (//sbin://bin:/sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin)
Error: Installer requires a working copy of the PHP CLI binary in your path
 
Last edited by a moderator:
Ich habe mal

yast -i php5

ausgeführt und apache auch neu gestartet, jedoch ohne Erfolg.....

Ich bekomme die Meldung:

which: no php in (//sbin://bin:/sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin)
Error: Installer requires a working copy of the PHP CLI binary in your path
 
Back
Top