Setzen der PATH Umgebungsvariable
Zur Navigation springen
Zur Suche springen
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