Re: Is anyone else doing CGI on Mac OS X 10.5.7, Euphoria 4.x?
- Posted by jeremy (admin) Jul 08, 2009
- 1506 views
Based on http://www.digitaledgesw.com/node/31 and a few other web pages that I foudn with google...
It is likely that apache runs as a different user than the user you run the shell on. So stuff in any .plist file or in .profile/.bash_profile/etc will not show up. (Only env vars set in /etc/launchd.conf are truly global.)
Even so, I'd expect apache's own CGI env vars to show up without issue.
That is true. You must set EUDIR as a system wide env variable, using mod_env w/apache or simply put a euinc.conf file in the local directory (which is what I'd do as it will work anywhere). An example euinc.conf file would be:
-batch -i /Applications/Euphoria/include -i /Users/me/custom/euinc/dir
The -batch causes it to not issue the "Press ENTER to continue" error message when an error does happen. The euinc.conf file will accept any command line argument to euphoria.
Then setup your actual cgi app such as:
#!/usr/bin/env eui -- Code here
Jeremy