Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Korrekter PHP Binary Pfad wird nicht erkannt #266

Closed
webhebamme opened this issue Jun 2, 2018 · 16 comments
Closed

Korrekter PHP Binary Pfad wird nicht erkannt #266

webhebamme opened this issue Jun 2, 2018 · 16 comments

Comments

@webhebamme
Copy link

Hallo,
ich möchte gerne den Contao-Manger testen. Trotz korrekter Pfadangabe bekomme ich allerdings die Meldung : This path does not contain a valid PHP binary.
Dazu bin ich wie folgt vorgegangen:
Verzeichnis /web angelegt sowie Rechte überprüft. Domain rootet dort hin
[webhebamme.de]
contao-manager.phar binär in Verzeichnis /web hochgeladen und umbenannt in
contao-manager.phar.php
php 7 ini angepasst wie folgt:
memory_limit = 2G
max_execution_time = 900
max_input_time = 2000
memory_limit = 2G
Aufruf in der Browserzeile, Account kreiiert. Serverkonfiguration: Andere ausgewählt.
Pfadangabe: /opt/php-7.0/bin/php bzw. /opt/php-7.0/bin/php-cgi ausprobiert.

Heute morgen alles auf Anfang und es mit einer Subdomain nochmal probiert mit dem gleichen Ergebniss wie gestern. Muss ich evt. noch was in der PHP ini anpassen ?

@aschempp
Copy link
Member

aschempp commented Jun 3, 2018

Was ergibt folgender Aufruf bei dir auf der Kommandozeile?

/opt/php-7.0/bin/php /path/to/web/contao-manager.phar.php test

@webhebamme
Copy link
Author

Could not open input file:

@xchs
Copy link
Contributor

xchs commented Jun 3, 2018

Wo hast Du denn das Kommando ausgeführt? Hast Du /path/to/ entsprechend ersetzt?

@webhebamme
Copy link
Author

Habe ich gestern Abend gemacht. Der Tip wurde mir im Forum gegeben aber mom ich mache es nochmal

@webhebamme
Copy link
Author

Hm komme ich momentan nicht dran. Bekomme ein Timeout beim Verbinden. Also mein Befehl lautete
/opt/php-7.0/bin/php /contao4.4/web/contao-manager.phar.php test

@xchs
Copy link
Contributor

xchs commented Jun 3, 2018

Wahrscheinlich müsste das Kommando (bei Dir) so lauten:

/opt/php-7.0/bin/php contao4.4/web/contao-manager.phar.php test

Du könntest aber auch einfach per cd in das web/ Unterverzeichnis wechseln und dort dann

/opt/php-7.0/bin/php contao-manager.phar.php test

ausführen.

@webhebamme
Copy link
Author

Irgendwas mache ich falsch.... also ich bin nun in der Konsole und habe den Befehl eingegeben aber die Konsole gibt mir nix aus. Das kenn ich so noch überhaupt nicht auch wenn ich noch nicht so viel in der Konsole gemacht habe.
Was ist cd?

@xchs
Copy link
Contributor

xchs commented Jun 3, 2018

cdchange directory (Verzeichnis wechseln)

@webhebamme
Copy link
Author

ah ja da war was...
Nee kommt wieder: Could not open input file: contao4.4/web/contao-manager.phar.php

@xchs
Copy link
Contributor

xchs commented Jun 3, 2018

Könntest Du vielleicht die Konsolenausgabe komplett posten?

@webhebamme
Copy link
Author

/opt/php-7.0/bin/php /contao4.4/web/contao-manager.phar.php test Could not open input file: /contao4.4/web/contao-manager.phar.php

@xchs
Copy link
Contributor

xchs commented Jun 3, 2018

Du hast wieder das "falsche" Kommando ausgeführt! Bitte mal so versuchen, wie ich es oben gepostet hatte:

/opt/php-7.0/bin/php contao4.4/web/contao-manager.phar.php test

Ob das nun aber richtig oder falsch ist, hängt klarerweise davon ab, wo Du das Kommando ausführst.

@webhebamme
Copy link
Author

webhebamme commented Jun 3, 2018

Okay jetzt bin ich raus... ich bin im root-Verzeichnis
pwd
ls -al zeigt mir an welche dateien drin sind, wo hab ich den jetzt den Hänger, es wird mir langsam peinlich. Ich seh noch nicht einmal den Unterschied zwischen den beiden Komandos. schäm

okay jetzt gesehen....
/opt/php-7.0/bin/php contao4.4/web/contao-manager.phar.php test
Could not open input file: contao4.4/web/contao-manager.phar.php

Edit: ich bin nun auch ein Verzeichnis höhergegangen und habe den Befehl ausgeführt, mit dem gleichen Ergebnis.

@xchs
Copy link
Contributor

xchs commented Jun 3, 2018

Bitte melde Dich im Forum! Dort können wir das gerne weiterdiskutieren. Hier im Ticket können wir nicht auch noch einen Crashkurs für die Benutzung einer Linux-Konsole geben.

@webhebamme
Copy link
Author

{"version":"7.0.7","version_id":70007,"sapi":"cli"}root@1a-8767:~#

@Toflar
Copy link
Member

Toflar commented Jun 7, 2018

Bitte wiedereröffnen falls es sich um einen Bug handelt. Support ansonsten wie von @xchs bereits erwähnt im Forum.

@Toflar Toflar closed this as completed Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants