Re: Installing Euphoria for CGI
- Posted by c.k.lester <euphoric at cklester.com> Jan 24, 2007
- 646 views
Chris Bensler wrote: > Assuming you are using Apache... > Create a file named .htaccess in your htdocs directory if one doesn't exist > already. I've modified my .htaccess to be as follows: SetEnv EUDIR c:\euphoria AddHandler eu-cgi .esp Action eu-cgi c:\euphoria\bin\exwc.exe Options +ExecCGI -Indexes DirectoryIndex index.esp index.html index.htm > You will need to create a cgi app that will pass the fully qualified script > path to the interpretter via the command line. Could you explain this part? How do I do it? :) > All you need is SetEnv but using the mime type, you don't need a shebang in > your scripts. I've taken the shebang out of my script and get this error in logs/error.log: [Wed Jan 24 13:59:44 2007] [error] [client 127.0.0.1] C:/htdocs/bbcms/index.esp is not executable; ensure interpreted scripts have "#!" first line [Wed Jan 24 13:59:44 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/htdocs/bbcms/index.esp