|
Pages: [1]
|
 |
|
Author
|
Topic: Problem with CGI under OS X (Read 589 times)
|
|
cavva
|
I all, i'm following the tutorial to get starting with CGI, (this is the tutorial) I'm logged in as "root" so i think that i have all the privileges, but if i try to call a very basic cgi (the first example of the tutorial, just print "hello world") apache show me this message: [error] (13)Permission denied: exec of /Library/WebServer/CGI-Executables/now.cgi failed What? permission denied? I assume that the problem is not the script, because it runs perfectly if i lunch it from the shell... I can't figure out the problem....
|
|
|
|
|
Logged
|
|
|
|
|
leke
|
I am not sure if this will help, but does it work when launching your scripts like this http://localhost/now.cgi or http://127.0.0.1/now.cgi in your web browser?
|
|
|
|
|
Logged
|
|
|
|
|
cavva
|
mmm, no, the problem persist...
i try with localhost, 127.0.0.1 and with the IP but notthing...
|
|
|
|
|
Logged
|
|
|
|
|
Gabriele
|
Judging from the path, you're on Mac OS X, aren't you?
Note that the permission denied message does not need that YOU don't have permissions, it means that APACHE does not have permissions. If you start a terminal window, cd to the script's directory, and issue the command ls -l, the script's permissions should show as rwxr-xr-x. The same should be for the REBOL interpreter; the directory where they reside must be readable by Apache too.
|
|
|
|
|
Logged
|
|
|
|
|
cavva
|
this are the result of my "ls -l": the directory and the files of the interpreter drwxrwxrwx 13 cavva cavva 442B 4 Sep 17:45 REBOL_Core_2.5.6
-rwxrwxrwx 1 cavva cavva 116K 12 Aug 2003 changes.html -rwxrwxrwx 1 cavva cavva 74K 12 Aug 2003 changes.txt drwxrwxrwx 5 cavva cavva 170B 4 Sep 17:45 graphics -rwxrwxrwx 1 cavva cavva 2K 12 Aug 2003 license.txt -rwxrwxrwx 1 cavva cavva 365K 12 Aug 2003 rebol -rwxrwxrwx 1 cavva cavva 165B 12 Aug 2003 rebol.r -rwxrwxrwx 1 cavva cavva 38K 12 Aug 2003 setup.html -rwxrwxrwx 1 cavva cavva 2K 12 Aug 2003 setup.r -rwxrwxrwx 1 cavva cavva 24K 12 Aug 2003 setup.txt -rwxrwxrwx 1 cavva cavva 2K 12 Aug 2003 words.r
and this from the directory of my cgi drwxrwxrwx 5 root admin 170B 20 Sep 21:08 CGI-Executables
-rwxrwxrwx 1 root admin 191B 20 Sep 21:08 now.cgi -rwxrwxrwx 1 root admin 69B 15 Sep 18:24 test.cgi
all can do all.... it doesnt work! But, if i cahnge the "User" and "Group" n the httpd.conf file (User and Group that Apache use to start) i finally got the cgi to work... but dunno why :blink:
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |
News: 01-09-08 Alpha version of REBOL 3 has been released!
2315 Posts in 597 Topics by 4206 Members
Latest Member: amoutbroodo
|