hakermania Posted May 8, 2011 Share Posted May 8, 2011 Hmm, hello everyone, i'm running my php in an ubuntu server and I'm trying to run a command using exec (i.e. 'echo 1 > /var/www/test.txt') but I always get a permission denied issue, although i've already changed the permissions to 777 (read-write-execute) Any solution? Quote Link to comment https://forums.phpfreaks.com/topic/235866-exec-function-permission-denied/ Share on other sites More sharing options...
MasterACE14 Posted May 9, 2011 Share Posted May 9, 2011 you sure it doesn't mean permission is denied for using the exec() function? Quote Link to comment https://forums.phpfreaks.com/topic/235866-exec-function-permission-denied/#findComment-1212645 Share on other sites More sharing options...
hakermania Posted May 9, 2011 Author Share Posted May 9, 2011 Yes, I am sure, the ubuntu server is mine, and I can do other things with the exec() function like ls or things like this, but I cannot touch any file Quote Link to comment https://forums.phpfreaks.com/topic/235866-exec-function-permission-denied/#findComment-1212961 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.