Page 1 of 1

keyhelp-php-domain

Posted: Mon 16. Feb 2026, 23:42
by 24unix
Irgendwie stelle ich mich zu doof an, oder habe ein Verständnisproblem.

Ich will jetzt auch nicht manuell an den Berechtigungen rumfummeln, weil es später mal für alle funktionieren soll.
02-16-2026, 23-36-18.png
02-16-2026, 23-41-05.png
Mein Problem:

Code: Select all

❯ keyhelp-php-domain
zsh: permission denied: keyhelp-php-domain

Code: Select all

❯ ll /home/keyhelp/www/keyhelp/bin/keyhelp_php_domain.php
.rwxr-xr-x keyhelp keyhelp 7.9 KB Tue Apr  9 12:25:27 2024   keyhelp_php_domain.php
Aber so weit komme ich gar nicht:

Code: Select all

❯ id
uid=5001(tracer) gid=5001(tracer) groups=5001(tracer),113(bind),126(docker)
❯ /home/keyhelp/
zsh: permission denied: /home/keyhelp/
Ist bei mir etwas vergnaddelt, oder mache ich etwas falsch?

Re: keyhelp-php-domain

Posted: Tue 17. Feb 2026, 08:26
by Tobi
24unix wrote: Mon 16. Feb 2026, 23:42

Code: Select all

uid=5001(tracer) 
Vielleicht mal in den root wechseln?
Usern ist der Zugriff auf /home/keyhelp/ selbstverständlich verboten.
Sonst könnte es lustig werden 😉

Re: keyhelp-php-domain

Posted: Tue 17. Feb 2026, 10:06
by 24unix
Tobi wrote: Tue 17. Feb 2026, 08:26
24unix wrote: Mon 16. Feb 2026, 23:42

Code: Select all

uid=5001(tracer) 
Vielleicht mal in den root wechseln?
Usern ist der Zugriff auf /home/keyhelp/ selbstverständlich verboten.
Sonst könnte es lustig werden 😉
Darum frage ich ja, ob ich etwas falsch verstehe.

Die Domain um die es geht, hat php8.4 ausgewählt, und ich will in einem Shell-Script auch genau die Version haben.

Ich könnte keyhelp-ph84 ausführen, aber der Ansatz mit keyhelp-php-domain gefällt mir eigentlich besser.

Re: keyhelp-php-domain

Posted: Tue 17. Feb 2026, 13:52
by Alexander
Wie Tobi schon sagte, keyhelp-php-domain benötigt root Rechte, da es auf Inhalte in /home/keyhelp zugreifen muss.

Re: keyhelp-php-domain

Posted: Tue 17. Feb 2026, 14:06
by 24unix
Alexander wrote: Tue 17. Feb 2026, 13:52 Wie Tobi schon sagte, keyhelp-php-domain benötigt root Rechte, da es auf Inhalte in /home/keyhelp zugreifen muss.
Was wäre dann ein praktisches Einsatszenario?

"You can also use the keyhelp-php-domain command to automatically select the appropriate PHP version depending on where the script to be executed is located.
The PHP version is determined by the PHP version of the domain associated to the location of the script."

Ich habe angenommen, dass das im Kontext des Besitzers der Domain läuft.

Re: keyhelp-php-domain

Posted: Tue 17. Feb 2026, 17:16
by Alexander
24unix wrote: Tue 17. Feb 2026, 14:06 Was wäre dann ein praktisches Einsatszenario?
viewtopic.php?t=13022

Re: keyhelp-php-domain

Posted: Tue 17. Feb 2026, 17:41
by 24unix
Alexander wrote: Tue 17. Feb 2026, 17:16
24unix wrote: Tue 17. Feb 2026, 14:06 Was wäre dann ein praktisches Einsatszenario?
viewtopic.php?t=13022
Ah, ok, danke. Innerhalb einer CI/CD Pipeline könnte ich das nutzen (Ansible: become: true), aber nicht im update script das im Userkontext läuft.