Macports, Apache PATH evn?
ryandesign at macports.org
Fri May 14 16:41:15 PDT 2010
On May 14, 2010, at 18:37, Joel Taylor wrote:
> On May 14, 2010, at 6:34 PM, Ryan Schmidt wrote:
>> On May 14, 2010, at 18:11, Joel Taylor wrote:
>>> Can someone help me add to my system (or apache) the PATH to Macports mysql, so I can use "shell_exec" in PHP?
>> I believe the correct way to do what you want is to edit /opt/local/bin/env-vars. Note however that this file too will be overwritten when you upgrade apache and your changes will be lost. In this case, however, this is a bug; the port should be fixed to not do that:
>> Until that bug is fixed, make sure you keep a copy of your modified env-vars (e.g. call it "env-vars.mine") so that if an apache upgrade wipes out your changes in env-vars, you can easily copy env-vars.mine back on top of env-vars to restore your changes.
> Thanks so much for responding. I actually restarting my mac, stopped and started apache, and it seems to be working now!
> Prob. solved for now though!
Certainly you would need to restart apache for any changes in the configuration to take effect. Glad you got it working.
More information about the macports-users