I've set in my custom.conf file in apache2 this:
SetEnv PATH $PATH:/opt/local/lib/mysql5/bin:/this-is-a-test
However it's not working. When I call:
$hey = shell_exec('env'." 2>&1"); var_dump($hey);
I get:
... PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/opt/local/bin
Can anyone help? I'm on Mac using Macports for my development environment.
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…