Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Problem with CGI under OS X
Pages: [1] Print
Author Topic: Problem with CGI under OS X  (Read 578 times)
cavva
Newbie
*
Offline Offline

Posts: 6


View Profile
Problem with CGI under OS X
« on: September 19, 2005, 02:13:10 PM »

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
Jr. Member
**
Offline Offline

Posts: 92


View Profile WWW
Problem with CGI under OS X
« Reply #1 on: September 20, 2005, 01:49:38 AM »

I am not sure if this will help, but does it work when launching your scripts like this
Code:
http://localhost/now.cgi
or
http://127.0.0.1/now.cgi
in your web browser?
Logged

cavva
Newbie
*
Offline Offline

Posts: 6


View Profile
Problem with CGI under OS X
« Reply #2 on: September 20, 2005, 12:31:39 PM »

mmm, no, the problem persist...

i try with localhost, 127.0.0.1 and with the IP but notthing...
Logged
Gabriele
Full Member
***
Offline Offline

Posts: 182


View Profile WWW
Problem with CGI under OS X
« Reply #3 on: September 21, 2005, 04:55:54 AM »

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
Newbie
*
Offline Offline

Posts: 6


View Profile
Problem with CGI under OS X
« Reply #4 on: September 21, 2005, 02:06:16 PM »

this are the result of my "ls -l":

the directory and the files of the interpreter
Code:
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
Code:
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] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Problem with CGI under OS X
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 07:23:11 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2291 Posts in 593 Topics by 3742 Members
Latest Member: CorHorgeExpex

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc