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

From NT to Unix

Quote Reply
From NT to Unix
okay, as what i'd planned, everything has already been set. but after transfering all datas to the Unix server(Hispeed), an error prompt out:
Execution of (/usr/local/www/htdocs/myname/cgi-bin/lnk/admin) is not permitted for the following reason:
Script is not a regular file

I'm not sure anything about this Unix server. In facts, I'm only familiar with installing Perl or CGI in Windows NT. Please help. Thanks.
Quote Reply
Re: From NT to Unix In reply to
Couple of things:


That should be a directory... since files are stored in 'admin' in the default configuration. It seems your server is trying to execute that file, or is giving you a strange error message that means directory listings are not enabled, and this file is not executable, try again.

Also, perl scripts MUST be uploaded in ASCII mode, and your FTP program may be uploading in binary based on the .cgi extension. You can force ASCII upload, or you can set the .cgi, .pl, .pm extensions to also be TEXT.

You need to make sure your file file permissions are set correctly.

chmod 755 *.cgi

and make sure your directory is ALSO chmod 755. 755 is the default directory mask on most system. But you can check:

chmod 755 /usr/local/www/htdocs/myname/cgi-bin/lnk


chmod 755 /usr/local/www/htdocs/myname/cgi-bin/lnk/admin

and then

chmod 755 /usr/local/www/htdocs/myname/cgi-bin/lnk/*.cgi

chmod 755 /usr/local/www/htdocs/myname/cgi-bin/lnk/admin/*.cgi