Alter APACHE PATH environment variables for PHP

In phpinfo(); under Apache Environment section, you will see PATH

On the mac this was stuck at /usr/bin:/bin:/usr/sbin:/sbin

One way to remedy this is to edit the launchDaemon plist file...
vi /System/Library/LaunchDaemons/org.apache.httpd.plist


Add the following key
EnvironmentVariables
PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

No comments: