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? 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? 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 Link to comment https://forums.phpfreaks.com/topic/235866-exec-function-permission-denied/#findComment-1212961 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.