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.

PHP currently runs as a CLI module.
Now my questions are:
ALL help is GREATLY appreciated.
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.

PHP currently runs as a CLI module.
Now my questions are:
- is it normal that files and diretories are chowned to the respective useraccounts in DA
- What are the correct settings for files and directories
- Do I need to change the way PHP runs?
ALL help is GREATLY appreciated.