SPUG: Re: Playing with Ingy's kwiki package

Jeremy Mates jmates at sial.org
Sat Aug 9 17:42:57 CDT 2003


* Scott Blachowicz <scott+spug at mail.dsab.rresearch.com>
>     [Sat Aug  9 14:08:55 2003] [error] [client 127.0.0.1] file permissions deny server execution: /usr/lib/cgi-bin/my-kwiki/css/Display.css
> 
> Why would it try to execute that file?

The cgi-bin directory is likely marked in httpd.conf with ScriptAlias[1],
which passes the contents off to the mod_cgi handler[2], including the
non-executable CSS style definitions. The above error is probably due to
various +x bits being unset on the file in question, which would not
solve the Apache-wants-to-run-the-style-file problem.

Solutions would be to locate my-kwiki outside of the cgi-bin directory
and enable .cgi handling for the Directory in question:

  AddHandler cgi-script .cgi

Or to rework my-kwiki to look for the CSS file outside of cgi-bin.

[1] - ScriptAlias: http://httpd.apache.org/docs/mod/mod_alias.html#scriptalias

[2] - mod_cgi: http://httpd.apache.org/docs/mod/mod_cgi.html



More information about the spug-list mailing list