Gossamer Forum
Home : Products : Links 2.0 : Installation -- Windows :

Can't open admin.pl

Quote Reply
Can't open admin.pl
I'm trying to get Links going under Apache running on a Novell server.

(Perl on Novell requires the .pl extension, so I changed all .cgi files to .pl's and went through the scripts themselves to make sure calls to .cgi were changed to .pl - just like I used to have to do for problematic NT installs).

Everything looks ok to me as far as permissions and paths go, but when I try to open admin.pl I get this error: "Can't open perl script "admin.pl": No such file or directory"

However since it starts reading the header before it displays this message, I know it's seeing the file - if it were truly not finding the file I'd get a straight 404 error from the server.

I have a script that shows me the environment variables running ok. The path it shows says this:
REQUEST_URI="/cgi-bin/links/admin/printenv.pl"
SCRIPT_FILENAME="sys:/perl/scripts/links/admin/printenv.pl"

The path setup in links.cfg looks like this:
$db_script_path = "sys:/perl/scripts/links/admin";
$db_dir_url = "http://g17nw/cgi-bin/links/admin";
and
$db_cgi_url = "http://g17nw/cgi-bin/links";

Apache has the cgi-bin set up as follows:

ScriptAlias /cgi-bin/ "sys:/perl/scripts/"
<Directory "sys:/perl/scripts/">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

The permissions for user "public" are currently full (777 equivalent) for the links dir and everything beneath it, as well as the dir where Links will build the web pages.

Any suggestions on what's causing this? Thanks in advance.

Bobb Menk
bmenk@ll.mit.edu

Quote Reply
Re: Can't open admin.pl In reply to
You definitely have admin.pl here:

sys:/perl/scripts/links/admin/admin.pl ?

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: Can't open admin.pl In reply to
Yes the file definitely lives in that location.

Quote Reply
Re: Can't open admin.pl In reply to
Double check your MIME types in Apache to make sure that you have specified .pl extension correctly. Usually that error message (Can't open...) means that the extension has not been configured correctly.

Regards,

Eliot Lee
Quote Reply
Re: Can't open admin.pl In reply to
I'm running the .pl file that checks my environment variable for me ok, so I don't think that's the problem.