|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I just installed Apache and I am trying to call a script that should output some stuff to my browser. I can't get this to work at all. Simple script #! /usr/bin/perl -w print "Content-type:text/html\n\n"; print `ls`; The screen is blank. httpd logs indicate permission denied ... [Tue Aug 22 14:54:32 2006] [error] [client 172.25.31.80] ls: ., referer: http://salrhellog01/maillog/ [Tue Aug 22 14:54:32 2006] [error] [client 172.25.31.80] : Permission denied, referer: http://host/log/ Any idea? The script works just fine locally, but not via the web. I tried exec and system, same deal. User nobody has access to everything it needs. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
oleg106@yahoo.com wrote: > Hi, > > I just installed Apache and I am trying to call a script that should > output some stuff to my browser. I can't get this to work at all. > > > Simple script > > > #! /usr/bin/perl -w > print "Content-type:text/html\n\n"; > print `ls`; > > > The screen is blank. httpd logs indicate permission denied ... > > > [Tue Aug 22 14:54:32 2006] [error] [client 172.25.31.80] ls: ., > referer: http://salrhellog01/maillog/ > [Tue Aug 22 14:54:32 2006] [error] [client 172.25.31.80] : Permission > denied, referer: http://host/log/ > > > Any idea? The script works just fine locally, but not via the web. I > tried exec and system, same deal. User nobody has access to everything > > it needs. Hi oleg106, Its not possible to give a one liner answer just looking at this post. Many a information is missing here. However confirm if the apache user is indeed "nobody" and not "apache" or similar thing, and this directory holding the script has read execute permission properly placed. |
|
![]() |
| Outils de la discussion | |
|
|