Messed up my server: folder rights

el_dorito

Verified User
Joined
Nov 1, 2012
Messages
10
Hello everyone,

Last sunday I decided to install Varnish cache on my DA server Running CentOS 6. I followed a guide I found online and last sunday all was working well.

Yesterday my server crashed and I got 503 responses from my server. I panicked and taught that there was something wrong with the varnish cache. So I tried uninstalling it and during this I really messed stuff up. I messed up the default templates and it took me a while to restore the server. I'm not really sure but during the troubleshooting I think I rebuild PHP but I'm not sure.

Anyway my website are online since yesterday but it turns out that there is a problem with the folder permissions. I host Worpress websites and my clients are unable to upload new media or update their installation. Chmodding the uploads folder to 777 works but I don't really want to do this to all websites.

When I check the permissions all files are chowned to the user of the website. Files have -rw-r--r-- permissions and directories have drwxr-xr-x permissions.

Screen Shot 2014-03-25 at 19.17.42.png

PHP currently runs as a CLI module.

Now my questions are:
  1. is it normal that files and diretories are chowned to the respective useraccounts in DA
  2. What are the correct settings for files and directories
  3. Do I need to change the way PHP runs?

ALL help is GREATLY appreciated.
 
Please do not post multiple posts if your post doesnt appear instantly. It takes a while for a moderator to see and approve a moderated post. I don't know why your post was moderated, but I have approved it.

I've approved the first post you made, and deleted three other similar posts. I've also verified your account so it won't be as hard for you to post in the future.

Welcome to DirectAdmin forums!

Jeff
 
Thanks Jeff,

This wasn't deliberately. I received an error while trying to post. Din't know the post actually went online...

I'm sorry and thanks for fixing it.

BEst regards,
GEert
 
Back
Top