Setzen der PATH Umgebungsvariable: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Laemmi (Diskussion | Beiträge) Die Seite wurde neu angelegt: „Category:Mac == I. Variante: /etc/paths == sudo vi /etc/paths Hinweis: Global für alle User! == II. Variante: /etc/paths.d == cd /etc/paths.d Hinweis: G…“ |
(kein Unterschied)
|
Aktuelle Version vom 22. September 2021, 19:35 Uhr
I. Variante: /etc/paths
sudo vi /etc/paths
Hinweis: Global für alle User!
II. Variante: /etc/paths.d
cd /etc/paths.d
Hinweis: Global für alle User!
III. Variante: .profile
vi .profile export PATH=$PATH:/usr/local/...
Hinweis: Setzt die Pfade nur für den User!
Apache2/PHP did not find a program to execute on its configured path
sudo vi /System/Library/LaunchDaemons/org.apache.httpd.plist
Folgendes hinzufügen:
<key>EnvironmentVariables</key> <dict> <key>PATH</key> <string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin</string> </dict>
Restart Apache2
PHP FPM PATH Variable
Open fpm configuration for pool and add following:
env[PATH] = /usr/local/bin:/usr/bin:/bin