Cloudwebhosting: Php Skript auf der Konsole ausführen

  • Linux-Basics bekannt?
    Unter Linux nennt man Ordner "Verzeichnisse", das nur als kleiner Tipp. ;)


    Der Rest ist da beschrieben.
    Wo allerdings das Script liegt, muss man schon wissen und dann in das Verzeichnis wechseln.

    Schöne Grüße aus der Lüneburger Heide!
    Thomas

  • Genau das ist die Frage. In welchen Verzeichnis sind die PHP executables in den neuen Webhostingpaketen zu finden?

    Code
    bash-4.1$ php
    bash: php: command not found



    In dem Konkreten geht es mir unter dem Link finden Reiter "Update per Konsole" und dort um den 2. Schritt:
    Wechseln Sie in den Ordner (Verzeichnis) update und starten Sie den Updatevorgang mit dem Befehl php update.php

  • ok laut phpinfo ist der pfad unter /usr/bin

    Code
    Variable	Value
    PATH	/sbin:/usr/sbin:/bin:/usr/bin
    PWD	/etc/rc.d/init.d


    Code
    './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite3' '--disable-phar' '--disable-fileinfo' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem'


    nur leider gibt es diese Verzeichnisse nicht.

    Code
    bash-4.1$ cd /usr/lib
    lib/     libexec/
    bash-4.1$ cd /usr/lib
    bash-4.1$ ls
    openssh
    bash-4.1$ cd /usr/libexec/
    bash-4.1$ ls
    openssh



    Whereis ist nicht installiert. Es gibt hier nur:

    Code
    bash-4.1$ cd /bin/
    bash-4.1$ ls
    bash   cp    false   gunzip  id    ls     mv   rmdir  tail   true  zip
    cat    curl  grep    gzip    less  mkdir  pwd  scp    tar    vi
    chmod  du    groups  head    ln    more   rm   sh     touch  wget
  • und in diesem Verzeichnis ist nur openssh enthalten.....



    Ich denke mal, dass das Linux in den Webhostingpaketen im Gegensatz zu einem normalen Server irgendwie beschränkt ist.

    Code
    bash-4.1$ cd /usr/lib
    bash-4.1$ ls
    openssh
    bash-4.1$ cd /usr/libexec/
    bash-4.1$ ls
    openssh

    Einmal editiert, zuletzt von weissollo () aus folgendem Grund: Rechtschreibung

  • Neu erstellte Beiträge unterliegen der Moderation und werden erst sichtbar, wenn sie durch einen Moderator geprüft und freigeschaltet wurden.

    Die letzte Antwort auf dieses Thema liegt mehr als 365 Tage zurück. Das Thema ist womöglich bereits veraltet. Bitte erstellen Sie ggf. ein neues Thema.

    • :)
    • :(
    • ;)
    • :P
    • ^^
    • :D
    • ;(
    • X(
    • :*
    • :|
    • 8o
    • =O
    • <X
    • ||
    • :/
    • :S
    • X/
    • 8)
    • ?(
    • :huh:
    • :rolleyes:
    • :love:
    • :pinch:
    • 8|
    • :cursing:
    • :wacko:
    • :thumbdown:
    • :thumbup:
    • :sleeping:
    • :whistling:
    • :evil:
    • :saint:
    • <3
    • :!:
    • :?:
    Maximale Anzahl an Dateianhängen: 10
    Maximale Dateigröße: 1 MB
    Erlaubte Dateiendungen: bmp, gif, jpeg, jpg, pdf, png, txt, zip