i am not able to restart server by using exec("sudo service apache2 restart"); in php script. i have given 777 permission to /etc/init.d/apache2. also added www-data ALL=NOPASSWD: ALL to visudo.
still can't able to restart using php script.
i am not able to restart server by using exec("sudo service apache2 restart"); in php script. i have given 777 permission to /etc/init.d/apache2. also added www-data ALL=NOPASSWD: ALL to visudo.
still can't able to restart using php script.