osx - PHP does not load environment variables if executed with sudo in CLI in Yosemite -
i setting environment variable follows:
launchctl setenv variablename value //for sudo sudo launchctl setenv variablename value when check see if variables set, sudo , normal user, are:
launchctl getenv variablename however, sudo, not loaded in php -i.
if run in terminal
php -i i can see variables @ end of ouptut. if do:
sudo php -i the variables not appear. how can create variables appear when using sudo , php ?
php osx environment-variables osx-yosemite
No comments:
Post a Comment