Code: Select all
sudo -u www-data /path/to/index.cgi
Code: Select all
sudo -u www-data /path/to/index.cgi
cgsullivan >> The "blank" in the error message you spoke of is filled in if I try to run it "like an interperted script".doug@doug-desktop:~/software/ccl$ sudo -u www-data /home/doug/dev/trunk/htdocs/index.cgi
[sudo] password for doug:
Content-type: text/html
This is a test
Code: Select all
#!/home/doug/software/ccl/ccl -I /home/doug/dev/trunk/htdocs/image[/quote]
The error looks like this:
[quote]
Couldn't load lisp heap image from /home/doug/dev/trunk/htdocs/image
[Fri May 08 10:51:21 2009] [error] [client 127.0.0.1] Premature end of script headers: index.cgi
[/quote]
You're indeed right, the two paths are not the same.
[quote]
[i]Terminal[/i]
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[i]Apache[/i]
/usr/local/bin:/usr/bin:/bin
[/quote]
However, the executable should be self contained since I prepended the kernel, I'm not seeing why it needs a path at all.
Anyways, I added the path to apache as you suggested and still had no luck.
I'm going to try saving it without prepending the kernel, maybe I'll be able to load the image by passing it to the CCL binary.
Wodin >> I get how the permissions work; running it as Opera was a brainfart indeed. And I downloaded SBCL from the site, not the repo. I've been using it and it works fine.
I shot an email off to the CCL dev list, I'll see if they can add anything to this.
Code: Select all
#!/bin/sh
/home/doug/software/ccl/ccl -I /home/doug/dev/trunk/htdocs/sitewire.app
Code: Select all
#!/bin/sh
/home/doug/dev/trunk/htdocs/index.cgi
If you save your lisp image, startup time (with no init file, of course) is very short.hrapof wrote:Funny thing: I'm doing the same right now! CGI isn't very "cool" today, and Lisp isn't supposed to be particularly suited for CGI due to long startup time, and yet there are two persons simultaneously making CGIs with CCL
Some changes to CCL were checked into the trunk several weeks ago to try to address this.hrapof wrote: My Clozure CGI works fine with Apache on Windows XP, but fails miserably with IIS (due to some error in CCL-DIRECTORY or USER-HOMEDIR-PATHNAME).