Menu
I’m having a heck of a time chowning files through php…
php’s chown function didn’t work, so i’m trying to use:
exec(“sudo chown root /filename.txt”);
and it’s not working.
exec(“whoami”) confirmed that php is running as the user “apache”…
so i added the following to my sudoers file:
apache ALL NOPASSWD: ALL
and it’s still not working. i have no idea what else to check for, does anyone else have any other ideas?