CANT CHMOD MY CGI SCRIPTS, SO THEY CANT WORK, HOW DO I CHMOD

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


Joined: 25 May 2004
Posts: 16

PostPosted: Tue May 25, 2004 11:26 pm    Post subject: CANT CHMOD MY CGI SCRIPTS, SO THEY CANT WORK, HOW DO I CHMOD Reply with quote

HI THERE, I CAN NOT CHMOD MY SCRIPTS, I EVEN INSTALLED A FTP TO SEE IF I CAN, I CANNOT, SO THEY CANT WORK, I RESTED WITH

http://127.0.0.1/cgi-bin/first.cgi

this dont work, the path to perl i placed, i tried with 3 things

C:\Perl\bin\perl.exe
#!C:\Perl\bin\perl.exe

but the path is not the problem the path is okay, i cant chmod them, I get this message when i try to load them

Error 500

Internal Server Error

Abyss Web Server X1
© Aprelium Technologies - 2001-2004
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Tue May 25, 2004 11:31 pm    Post subject: Reply with quote

HI THERE YOU DON'T CHMOD BECAUSE THERE ISN'T A CHMOD ON WINDOWS. IF THEY DON'T WORK IT'S BECAUSE YOU HAVEN'T CONFIGURED THEM PROPERLY! TRY SEARCHING THE FORUMS FOR CHMOD FOR MORE DETAILS. Oh, and fix that caps lock.
Back to top View user's profile Send private message
ivanmiller
-


Joined: 25 May 2004
Posts: 16

PostPosted: Tue May 25, 2004 11:54 pm    Post subject: Reply with quote

what do you mean configure them properly? they are chmoded at 666 and that dont change, but what can be wrong with this simple test script i uploaded

C:\Perl\bin\perl.exe
print "Content-type: text/html\n\n";
print "Hello, world!\n";
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Wed May 26, 2004 12:10 am    Post subject: Reply with quote

If you run Windows, you will not be able to CHMOD. It is that simple. CHMOD is a Unix command that changes the file permissions of a file, because Unix is very strict when it comes to permissions.

If you want to see if your Perl installation works, then make a script that says:
Code:
#!C:/Perl/bin/perl.exe
print "Content-type: text/html\n\n";
print "Hello, world!\n";

However, it is a default setting in Abyss to disregard the #! line. If you have your interpreter set up propely with Abyss, then this should work. If you don't, read http://aprelium.com/abyssws/perl.html for directions.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
toothen
-


Joined: 25 Oct 2004
Posts: 1

PostPosted: Mon Oct 25, 2004 3:04 am    Post subject: Reply with quote

"#!C:/Perl/bin/perl.exe "

:| #! is part of Unix shells, not Perl.
Back to top View user's profile Send private message
ellada
-


Joined: 03 Apr 2003
Posts: 2

PostPosted: Mon Jan 24, 2005 3:12 am    Post subject: #!perl Reply with quote

#!perl

the above is the correct shebang for windows
Back to top View user's profile Send private message
ellada
-


Joined: 03 Apr 2003
Posts: 2

PostPosted: Mon Jan 24, 2005 3:21 am    Post subject: also Reply with quote

also i think that the shebang is not nessecery in Abyss, i have

Resolve interpreter using the Windows Registry: No
Resolve interpreter using the script's #! line: No

and works fine
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1295

PostPosted: Mon Jan 24, 2005 11:03 pm    Post subject: Re: also Reply with quote

If you setup Perl support in Abyss Web Server as explained in http://www.aprelium.com/abyssws/perl.html , you can remove shebang #! lines as Abyss Web Server will rely on the file name extensions only to know which interpreter to run for .pl or .cgi files.
Back to top View user's profile Send private message
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