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.
before exec("sudo service apache2 restart"); this.
you need to set server configurations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With