View previous topic :: View next topic |
Author |
Message |
ivanmiller -
Joined: 25 May 2004 Posts: 16
|
Posted: Tue May 25, 2004 11:26 pm Post subject: CANT CHMOD MY CGI SCRIPTS, SO THEY CANT WORK, HOW DO I CHMOD |
|
|
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 |
|
|
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Tue May 25, 2004 11:31 pm Post subject: |
|
|
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 |
|
|
ivanmiller -
Joined: 25 May 2004 Posts: 16
|
Posted: Tue May 25, 2004 11:54 pm Post subject: |
|
|
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 |
|
|
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Wed May 26, 2004 12:10 am Post subject: |
|
|
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 |
|
|
toothen -
Joined: 25 Oct 2004 Posts: 1
|
Posted: Mon Oct 25, 2004 3:04 am Post subject: |
|
|
"#!C:/Perl/bin/perl.exe "
:| #! is part of Unix shells, not Perl. |
|
Back to top |
|
|
ellada -
Joined: 03 Apr 2003 Posts: 2
|
Posted: Mon Jan 24, 2005 3:12 am Post subject: #!perl |
|
|
#!perl
the above is the correct shebang for windows |
|
Back to top |
|
|
ellada -
Joined: 03 Apr 2003 Posts: 2
|
Posted: Mon Jan 24, 2005 3:21 am Post subject: also |
|
|
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 |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1296
|
Posted: Mon Jan 24, 2005 11:03 pm Post subject: Re: also |
|
|
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 |
|
|
|