While trying to use wget and image magic on my mac via a call to apache,

calls to exec where failing when doing

exec($cmd = 'wget '. escapeshellarg($remote_url) .' -O '. escapeshellarg($local_path) .' 2>&1', $out, $status);

I fix this by changing the path for my _www user.

mate /System/Library/LaunchDaemons/org.apache.httpd.plist

and

<key>EnvironmentVariables</key>
<dict>
    <key>PATH</key>
    <string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin</string>
</dict>

Restarting apache i can no make calls to wget and git.Main entry continued