PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Permission denied trying to execute shell commands from Perl/CGI on Apache.
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Permission denied trying to execute shell commands from Perl/CGI on Apache.

Réponse
 
LinkBack Outils de la discussion
Vieux 23/08/2006, 14h23   #1
oleg106@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Permission denied trying to execute shell commands from Perl/CGI on Apache.

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.

  Réponse avec citation
Vieux 28/08/2006, 07h40   #2
sanjay
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Permission denied trying to execute shell commands from Perl/CGI on Apache.


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.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h53.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,83538 seconds with 10 queries