我需要在我的网络服务器上执行一些指挥系统,配备了一批藏匿点。
exec("service apache2 restart", $output);
print_r($output);
输出:
Array (
[0] => * Restarting web server apache2
[1] => Action start failed.
[2] => The Apache error log may have more information.
[3] => ...fail!
)
My guess is it s because of permissions of php on my ubuntu! What do you suggest?