Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to get Perl to run on Domino (Win2k)

Status
Not open for further replies.

joverton

Programmer
Mar 19, 2003
1
US
Hello all -

I am having a problem here, and I am completely stumped.

First: The env: Running Domino 5.0.8 on a Win2k (all updates installed) server.

I am trying to write a simple HTML form that will be parsed by a perl script, and put it on a Domino web server.

However, Errors come up whenever I try to access the script. I either get "Error: 500 - Unable to run CGI script", or simply "The page cannot be displayed (cannot find server or dns)". If I try to run the script directly, I get a download link.

I have looked though notes.net, and havent found anything that works. So far, I have:

-Added PERLBIN=c:\perl\bin\perl.exe to the Win2k environment vars.
-Added PERLBIN=c:\perl\bin\perl.exe to Notes.ini
-Added the Perl bin directory and all cgi directories to the windows PATH env var.
-Made sure the file has a .pl extension, and not .cgi.
-Tried changing the cgi-bin paths in the Domino administrator
-Tried all sorts of TARGET tags in my html page.
-Banged my head against the wall multiple times.
-Successfully ran the perl scripts from the command line.

For sake of simplicity, the perl script that I am trying to run is simply a one line script:

print "test";


To be noted: It appears that the cgi-bin directory in the Domino Administrator has not been changed from the original value. Currently the values are:
"CGI Directory: domino\cgi-bin"
"CGI URL path: /cgi-bin"

HOWEVER, where the main website files are HAS been changed. That is now "d:\ Despite this, it seems like the cgi-files are still accessed from the correct place, which is "D:\Lotus\Domino\Data\domino\cgi-bin".

Im really at the end of my rope here in terms of where to find information to get this to work. Every forum seems to say something different, and none of it has worked.

Hopefully someone here could point me in the right direction!

Thanks!
-Jeremiah
 
Unfortunately, I have perl running in the default locations, so I don't have this problem....

But from my understanding of this, you have to set a full path to your perl scripts in the CGI directory field and it has to be nested within the actual directory of your site.

So, if you have changed the site to where html resides in:

d:\
the CGI directory field should be:

d:\

which would allow the CGI URL path to remain:

/CGI-BIN



If all else fails, I think I would try setting everything back to the defaults and working with the relative default directory.

Hope this helps.

Leo L'Homme, PCLP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top