View previous topic :: View next topic |
Author |
Message |
rz -
Joined: 11 Sep 2005 Posts: 4
|
Posted: Sun Sep 11, 2005 5:43 pm Post subject: CGI interpreter path |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Sep 12, 2005 12:47 am Post subject: |
|
|
Check your error.log file for extra information and tell us what it says. |
|
Back to top |
|
|
rz -
Joined: 11 Sep 2005 Posts: 4
|
Posted: Mon Sep 12, 2005 2:42 am Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Sep 12, 2005 3:06 am Post subject: |
|
|
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 |
|
|
rz -
Joined: 11 Sep 2005 Posts: 4
|
Posted: Mon Sep 12, 2005 8:10 pm Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Sep 12, 2005 11:57 pm Post subject: |
|
|
I don't know , wait for Aprelium to reply if it didn't work. LateR! |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Sep 13, 2005 3:19 pm Post subject: |
|
|
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 |
|
|
rz -
Joined: 11 Sep 2005 Posts: 4
|
Posted: Tue Sep 13, 2005 11:28 pm Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Wed Sep 14, 2005 12:44 am Post subject: |
|
|
Im glad you got it working , I wasn't sure on the Type to use. |
|
Back to top |
|
|
|