Welcome Guest, Not a member yet? Register   Sign In
Message: mkdir(): Permission denied
#20

(This post was last modified: 09-30-2015, 04:00 PM by jLinux.)

(09-30-2015, 03:56 PM)Lykos22 Wrote:
(09-30-2015, 03:49 PM)jLinux Wrote: P.S.

You seem surprised by the fact that when YOU run some commands (chmod) via the command line, it works, as opposed to when you run the commands via PHP exec(), which dont work.

You realize the commands you run via shell are being ran as a totally different user, right?

Im just saying that because your "It worked!" statement seemed like you were surprised, but you shouldnt be.

Yes it seems like that, but in this case which is the correct one ??? What user and what permissions should have my uploads, my posts and my thumbnails folders to work properly ???

Well I guess its not as important that the web user not be the same as your local user when running locally, but I still highly recommend against it... So lets debug it and fix it the right way!

Ill help you debug it.

Can you provide me a phpinfo() output by any chance?


And maybe the output of: 

Quote:lsof -i:80

as well as:

Quote:ps aux |grep -i [h]ttp

And this is Apache were working with right? not nginx or anything else?
Reply


Messages In This Thread
Message: mkdir(): Permission denied - by Lykos22 - 09-29-2015, 03:13 PM
RE: Message: mkdir(): Permission denied - by jLinux - 09-30-2015, 04:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB