1

I have a OrangePI PC board with Raspbian image and default LAMP stack on it. I am trying to run PHP exec function but there is no response.

exec("/bin/ls 2>&1", $out);
var_dump($out);

returns array(0) { }

It works perfectly when I run it manually with cli (php file.php), but when I access it via browser it returns empty array.

I have also tried echo test and there is no safe_mode directive in config files. What am I missing?

Jaka Kordež
  • 137
  • 1
  • 7

0 Answers0