You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-de@httpd.apache.org by "Oliver Etzel - GoodnGo.COM (R)" <ol...@goodngo.com> on 2002/10/09 12:07:59 UTC

PATH Variable ändern

Hallo Leute,
habe es selbst rausgefunden:

> Frage: Ich weiss es ist bischen aus der Reihe, aber wie trage ich denn
einen
> Dämon/Dienst in PATH ein??
root sein.
vi /etc/profile

dort findet Ihr

---snip
if [ `id -u` = 0 ]; then
        pathmunge /sbin
        pathmunge /usr/sbin
        pathmunge /usr/local/sbin
fi
---snip

Möchte man bspw. usr/local/apache/bin Apache Programme von überall ausführen
lassen,
WAS NICHT RATSAM ist und hier nur als Beispiel angeführt wird, dann muss man
/etc/profile  editieren wie folgt:

---snip
if [ `id -u` = 0 ]; then
        pathmunge /sbin
        pathmunge /usr/sbin
        pathmunge /usr/local/sbin
        pathmunge usr/local/apache/bin
fi
---snip

Nochmal ausloggen und nochmal einloggen
Schon funktionierts.

MfG
Oliver Etzel
preiswertes Hosting www.t-host.de
preiswertes Serverhousing www.housing-server.de
------------------------------------------------------
preis