Shell access to files created by Apache user in PHP

Posted by Alexandru Trandafir Catalin on Stack Overflow See other posts from Stack Overflow or by Alexandru Trandafir Catalin
Published on 2012-08-28T15:03:40Z Indexed on 2012/08/28 15:38 UTC
Read the original article Hit count: 481

Filed under:
|
|
|
|

My website creates files with owner apache:apache when uploading a file, like this:


drwxr-xr-x    2 apache apache   4096 Aug 28 14:07 .
drwxr-xr-x 9118 apache apache 233472 Aug 28 14:07 ..
-rw-r--r--    1 apache apache  41550 Aug 28 14:07 468075_large.jpg
-rw-r--r--    1 apache apache  26532 Aug 28 14:07 468075_medium.jpg
-rw-r--r--    1 apache apache  50881 Aug 28 14:07 468075_original.jpg
-rw-r--r--    1 apache apache   4316 Aug 28 14:07 468075_small.jpg

Now I am trying to create a file inside the same folder with the user that owns that domain in Plesk and I get permission denied.

How can I have both apache and shell user with permissions over that files?

Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about apache