-2

I host a website on linux server, I have got an error chmod permission denied error. Basically i want to change file permission chmod(0755) after file upload for security purpose..Any one has any idea.. PHP upload permission problem

Upendra
  • 3
  • 4
  • So I guess you are lacking the required permissions to issue that command. Just a wild guess though. – domsson Jun 30 '17 at 08:22
  • Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See [What topics can I ask about here](http://stackoverflow.com/help/on-topic) in the Help Center. Perhaps [Super User](http://superuser.com/) or [Unix & Linux Stack Exchange](http://unix.stackexchange.com/) would be a better place to ask. – jww Jun 30 '17 at 19:44

1 Answers1

0

Assuming you are running PHP under apache. You will need to make sure apache has permission to perform this action. If you are calling php via the command line, make sure the user that calls the script has permission to perform this action

Dan Hastings
  • 3,241
  • 7
  • 34
  • 71