keyhelp-php-domain

Diskussionen zur Bedienung von KeyHelp.
Post Reply
User avatar
24unix
Posts: 2181
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

keyhelp-php-domain

Post 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?
Cheers Micha
--
Backup: The duplicate copy of crucial data that no one bothered to make;
used only in the abstract
User avatar
Tobi
Community Moderator
Posts: 3564
Joined: Thu 5. Jan 2017, 13:24

Re: keyhelp-php-domain

Post 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 😉
Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
User avatar
24unix
Posts: 2181
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: keyhelp-php-domain

Post 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.
Cheers Micha
--
Backup: The duplicate copy of crucial data that no one bothered to make;
used only in the abstract
User avatar
Alexander
Keyweb AG
Posts: 4734
Joined: Wed 20. Jan 2016, 02:23

Re: keyhelp-php-domain

Post by Alexander »

Wie Tobi schon sagte, keyhelp-php-domain benötigt root Rechte, da es auf Inhalte in /home/keyhelp zugreifen muss.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
24unix
Posts: 2181
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: keyhelp-php-domain

Post 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.
Cheers Micha
--
Backup: The duplicate copy of crucial data that no one bothered to make;
used only in the abstract
User avatar
Alexander
Keyweb AG
Posts: 4734
Joined: Wed 20. Jan 2016, 02:23

Re: keyhelp-php-domain

Post by Alexander »

24unix wrote: Tue 17. Feb 2026, 14:06 Was wäre dann ein praktisches Einsatszenario?
viewtopic.php?t=13022
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
24unix
Posts: 2181
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: keyhelp-php-domain

Post 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.
Cheers Micha
--
Backup: The duplicate copy of crucial data that no one bothered to make;
used only in the abstract
Post Reply