RE: Problem with "shell_exec"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It seems most probably a permission problem.  If I were you I would
check the permissions on the bin directory and the files in it.  PHP
will probably run under the uid of the webserver, which, on most
systems is either "apache" or "nobody" depending on the configuration.

Richard L. Buskirk


-----Original Message-----
From: Boyan Penev [mailto:boyan.mp@xxxxxxxxxxxxxx] 
Sent: Sunday, October 31, 2010 11:16 AM
To: php-general@xxxxxxxxxxxxx
Subject:  Problem with "shell_exec"

Hello,

i have installed php 5.2.14 on an embedded system. I have run a couple of
test scripts and everything works fine,
 but i can't get "shell_exec" to work. When i invoke "shell_exec", the
script doesn't get interpreted, instead
i get prompted to download the whole .php file. I have tried both /bin/php
and /bin/php-cgi- same problem.
When i try to execute it per command line instead of web server, with both
php and php-cgi i get "Segmentation fault"
and nothing happens. I use busybox http as a web server, if it's relevant.
Does anybody have an idea what the problem
might be? Any help would be appreciated.

Best regards,

Boyan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux