Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

LinksSQL and CGIWrap

Quote Reply
LinksSQL and CGIWrap
I am trying to use LinksSQL v1.11 with CGIWrap but, when I do and try to bring up the admin script, I get this error message. Any ideas as to what is wrong?

Code:
CGIWrap Error: Execution of this script not permitted

Execution of (BookstoreSQL) is not permitted for the following reason:

Script is not a regular file

Server Data:

Server Administrator/Contact: webmaster@orphanage.com
Server Name: goodstuff.orphanage.com
Server Port: 80
Server Protocol: HTTP/1.0

Request Data:

User Agent/Browser: Mozilla/4.7 [en] (Win95; I)
Request Method: GET
Remote Host: is1-dial82.flnt.mi.voyager.net
Remote Address: 209.153.189.235
Remote Port: 2014
Query String: do=html_body
Extra Path Info: /BookstoreSQL/admin/admin.cgi
In my Apache web configuration (httpd.conf), I have the following line:

Code:
ScriptAlias /BookstoreScript /usr/local/bin/cgiwrap/bobsie/BookstoreSQL
Could the aliasing be causing the problem?

Any help would be appreciated.

- Bobsie
bobsie@orphanage.com
http://goodstuff.orphanage.com/
Quote Reply
Re: LinksSQL and CGIWrap In reply to
I don't use CGIWrap, since I run my own server with no other access to the box, but a few guesses.

Are you running mod_perl (will mod_perl run with cgiwrap??)? If so, you can't use "scriptalias" directives.

Also, try adding a final '/' to the alias and paths. Maybe you need to really force it to be a "directory" path not default to the Unix flags.

These are just guesses. I'm assuming you checked the scripts weren't binary, currupted, the permissions were set, etc. ad nauseum.



http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: LinksSQL and CGIWrap In reply to
I was kinda hoping for more replies especially from someone who uses CGIWrap. Since there have been no others, I will reply to yours Smile
In Reply To:
Are you running mod_perl (will mod_perl run with cgiwrap??)?
No, mod_perl is not installed that I know of.
In Reply To:
Also, try adding a final '/' to the alias and paths.
I tried that, but got the same errors.

I will try it without the Aliases.

- Bobsie
bobsie@orphanage.com
http://goodstuff.orphanage.com/
Quote Reply
Re: LinksSQL and CGIWrap In reply to
Hi!

cgiwrap adds its own set of headaches. You should:

1. Make sure script runs from telnet by typing ./BookstoreSQL from the command prompt. If it doesn't run, then 1. path to perl is wrong, 2. uploaded in binary, 3. permissions not set.

2. If it does run, then make sure it is not set 777, or the directory it sets in is not 777, or the directory back, etc. cgiwrap does not like any program or directory a program is in to be 777.

Hope this helps,

Alex



--
Gossamer Threads Inc.
Quote Reply
Re: LinksSQL and CGIWrap In reply to
In Reply To:
Make sure script runs from telnet by typing ./BookstoreSQL from the command prompt.
I don't follow this. BookstoreSQL is not an executable program. It is the directory in which the scripts reside. Are you sure that is what I am supposed to execute and, if so, from which directory?

- Bobsie
bobsie@orphanage.com
http://goodstuff.orphanage.com/
Quote Reply
Re: LinksSQL and CGIWrap In reply to
Sorry, that should be ./admin.cgi. Strange about the cgiwrap error message. It really sounds like a permissions problem, make sure things are not too lax (i.e. 777).

Cheers,

Alex

--
Gossamer Threads Inc.