| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
ArrayCase solved! Thanks all, thanks Axel.
(
[0] => export FOO="/bar"
[1] => export OLDPWD
[2] => export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
[3] => export PWD="/Library/WebServer/Documents"
[4] => export SHLVL="1"
)
Le 16 avr. 08 à 17:26, Burt Crépeault a écrit :Hello Burt,
Disappointment, it didn't work. I:
1) made sure mod_env is loaded
2) added this to httpd.conf:
<IfModule env_module>
SetEnv FOO /bar
</IfModule>
3) restarted apache
4) got the same results from my previously posted script. No FOO environment variable to be seen...
Can this have to do with the fact that my script is PHP? When SetEnv passes variables to CGI, does that include PHP?
No, on a stock Mac OS X install, PHP runs as an apache module, not as a CGI module.
Perhaps could you try by adding a "EnvironmentVariables" key to the
/System/Library/LaunchDaemons/org.apache.httpd.plist
file (be sure to keep a copy of the original file).
More info in the man pages for launchctl(1) and launchd.plist(5).
HTH,
Axel _______________________________________________http://lists.apple.com/mailman/options/web-dev/email@hidden
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/web-dev/email@hidden This email sent to email@hidden
| References: | |
| >Apache2, PHP5 and environment variables (From: "Burt Crépeault" <email@hidden>) | |
| >Re: Apache2, PHP5 and environment variables (From: "Brian Williams" <email@hidden>) | |
| >Re: Apache2, PHP5 and environment variables (From: "Burt Crépeault" <email@hidden>) | |
| >Re: Apache2, PHP5 and environment variables (From: "Burt Crépeault" <email@hidden>) | |
| >Re: Apache2, PHP5 and environment variables (From: Axel Luttgens <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.