httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Requena <>
Subject [users@httpd] Command not found error on apache version 2.2.3 in CentOs
Date Wed, 15 Jun 2011 10:03:23 GMT
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  
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,


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message