httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <i.ga...@brainsware.org>
Subject Re: [users@httpd] Command not found error on apache version 2.2.3 in CentOs
Date Thu, 16 Jun 2011 10:17:04 GMT


----- Original Message -----
> Hi Igor,
> many thanks for your help, I found the problem when I was
> desesperated
> for it. I've disabled SELinux from server to can finish the
> configuration. The problem was that the errors wasn't detailed to
> know
> something about this SELinux.
> Many thanks,

You're welcome,
but please keep discussions on the list

> Dani
> On Jun 15, 2011, at 2:39 PM, Igor Galić wrote:
> 
> >
> > CentOS implies SELinux, that won't allow random execution.
> >
> > ----- Original Message -----
> >> Hi,
> >> when I try to execute a php order using shell_exec or backtick
> >> operator, the command never returns anything. Also, appears a new
> >> line
> >> in error_log file each time php file is called from url, with the
> >> next
> >> information:
> >> sh: hostname: command not found.
> >> I've tried to put the complete path when calling `hostname`
> >> command,
> >> using echo `/bin/hostname` php order, and then appears the next
> >> error
> >> in error_log:
> >> sh: hostname: permission denied
> >> The user apache is well-configurd in system and pointed in
> >> httpd.conf
> >> file as
> >> User apache
> >> Group apache
> >> Can anyone help me?
> >> Many thanks,
> >>
> >> Dani
> >>
> >> ---------------------------------------------------------------------
> >> The official User-To-User support forum of the Apache HTTP Server
> >> Project.
> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >
> > --
> > Igor Galić
> >
> > Tel: +43 (0) 664 886 22 883
> > Mail: i.galic@brainsware.org
> > URL: http://brainsware.org/
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> > Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> 
> 

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message