原文:why php command `exec("service apache2 restart");` does t work on ubuntu?
I need to execute some commands on my web server with php configured with apache. exec("service apache2 restart", $output); print_r($output); output: Array ( [0] => * Restarting web server ...