Murc to the rescue, hopefully.
Go on, someone here must know the answer.
I have created an upload, scale, copy system etc for my site and everything works great when the directories are chmod'd to 777, problem is I have to do this using my ftp program.
Using chmod("directory", 0777); doesn't work due to permissions, get an operation not allowed error, on checking my server I have noticed that all the directories are owned by 'UsernameHere'.
Reading around on forums etc it looks like chmod will only work when the directories are owned by 'nobody', how therefore do I go about altering the owner without doing it manually through an ftp client? lots of directories at issue here ~ 1500.
Can I change anything in my php.ini file (change username somewhere) to fix the issue so that it appears the owner 'me' is running my scripts.
Server is FreeBSD/Apache
Using chmod("directory", 0777); doesn't work due to permissions, get an operation not allowed error, on checking my server I have noticed that all the directories are owned by 'UsernameHere'.
Reading around on forums etc it looks like chmod will only work when the directories are owned by 'nobody', how therefore do I go about altering the owner without doing it manually through an ftp client? lots of directories at issue here ~ 1500.
Can I change anything in my php.ini file (change username somewhere) to fix the issue so that it appears the owner 'me' is running my scripts.
Server is FreeBSD/Apache
Comment