CGI interpreter path

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
rz
-


Joined: 11 Sep 2005
Posts: 4

PostPosted: Sun Sep 11, 2005 5:43 pm    Post subject: CGI interpreter path Reply with quote

I have been running a script language, ODBscript (odbic.com) with an Apache server. The config is set up with both a virtual path and an interpreter pointer.

ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/"
AddType application/x-httpd-odb .odb
Action application/x-httpd-odb "/cgi-bin/odb.exe"

When I run a script such as http://localhost/foo.odb the interpreter works fine.

I can not get Abyss set up to work the same. I tried moving the cgi-bin directory under htdocs so a virtual path was not needed and made the following settings:

Interpreter Path: C:\Program Files\Abyss Web Server\htdocs\cgi-bin\odb.exe
Ext: odb

Script Paths:
/cgi-bin/*.exe
/*.odb

When I run a script such as http://localhost/foo.odb the interpreter executes but with the "foo.odb" not being passed correctly to it.

Any help will be appreciated.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Sep 12, 2005 12:47 am    Post subject: Reply with quote

Check your error.log file for extra information and tell us what it says.
Back to top View user's profile Send private message Visit poster's website
rz
-


Joined: 11 Sep 2005
Posts: 4

PostPosted: Mon Sep 12, 2005 2:42 am    Post subject: Reply with quote

TRUSTpunk,

The cgi.log is empty.

The ODB interpreter displays a file not found message if it can not find the named script file. It runs a default script if no script file is specified. There is no error log file.

The interpreter is runniing the default script as if no file was given. So it is not even recognizing the foo.odb is there. It is like I entered http://localhost/cgi-bin/odb.exe

Also, the interpreter recognizes the file (foo.odb) if I include a path to the interpreter - http://localhost/cgi-bin/odb.exe/foo.odb
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Sep 12, 2005 3:06 am    Post subject: Reply with quote

Im sorry , I forgot that cgi.log carries the scripting errors , my apologies. You
can use ODBScript with Abyss Web Server , here's the easy installation setup.

01. Download the Win32 Zip file from.
http://www.odbic.com/odbscript/

02. Install ODBScript into C:\ODBScript

03. Open your Abyss Web Server console and click on "Scripting Parameters"
and click Add in the Interpreters table and follow my settings , its simple. :-)

Interpreter: C:\ODBScript\odb.exe

Type: PHP Style [Edit: This is correct]

Associated Extensions: odb

Now exit "Scripting Parameters" and click Index Files , type index.odb and
restart Abyss Web Server. You will need to install the ODBC DB Server. You
don't really have to use a cgi-bin path like they say you do. LateR!

I hope your script works after trying this new method.

Sincerely , TRUSTpunk


Last edited by TRUSTAbyss on Wed Sep 14, 2005 12:45 am; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website
rz
-


Joined: 11 Sep 2005
Posts: 4

PostPosted: Mon Sep 12, 2005 8:10 pm    Post subject: Reply with quote

TRUSTpunk,

"Interpreter: C:\ODBScript\odb.exe
Type: Standard [I believe this is correct.]
Associated Extensions: odb "

This looks like what I did except that I called the directory cgi-bin instead of odbscript. Does that mess things up?

rz
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Sep 12, 2005 11:57 pm    Post subject: Reply with quote

I don't know , wait for Aprelium to reply if it didn't work. LateR!
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Sep 13, 2005 3:19 pm    Post subject: Reply with quote

rz,

We are currently processing your email support request. Please expect an answer within a few hours.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
rz
-


Joined: 11 Sep 2005
Posts: 4

PostPosted: Tue Sep 13, 2005 11:28 pm    Post subject: Reply with quote

Thanks for your email reply. Your advice was right on. TRUSTpunk, what I had wrong was using Standard style instead of PhP style.

Works great now!
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Sep 14, 2005 12:44 am    Post subject: Reply with quote

Im glad you got it working , I wasn't sure on the Type to use.
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group