i have problem trying change date in rpi php. if write:
shell_exec('sudo date --set="15 nov 2015 12:43:10"'); i don't feedback, output "", if execute
shell_exec('date --set="15 nov 2015 12:43:10"'); i recived
15 nov 2015 12:43:10 as output nothing change in rpi
i added www-data sudoers visudo command, , add
www-data all=(all) nopasswd: but didn't worked.
i've tried
chmod 777 /bin/date, nothing.. try make .sh file command , run , without sudo.. same result.
any idea? all!
ps.sorry english
i solved problem... after add sudo group command adduser www-data sudo , re-execute first intuitive cmd sudo date --set... runs ok!!
Comments
Post a Comment