2

I'm setting up a development server on a HP microserver with CentOS 6.3. I'm relatively new to Linux and have ran into some issues/confusion. I have the server fully setup/updated with yum. It's a headless server & I'm connecting via PuTTY. For the following installs of OpenCart, I'm logged in via SSH as a regular non-root user.

I'm trying to do a clean install of OpenCart 1.5.4.1. I tried setting OC up with Yum first and came up against permission/ownership issues, so I forgot about doing it that way. Then I just extracted the files locally on my windows machine and FTP'ed them into my required directory. I was still getting folder unwritable errors when trying to install OC. I set the req'd folders to their recommended permissions (755) and temporarily turned off SELinux. It still wouldn't allow me to install, I was still getting the folder unwritable errors. I eventually changed the owner of these directories to Apache and this seemed to allow it to install.

Is this correct? Can anyone help me with what the group and owner should be set to? I know it's only a dev server but I want to try and simulate a live server and have it as secure as possible and learn to do things the correct way. Even a link to a page/tutorial that would point me in the right direction would be great.

I've trawled the web & posted a Q on the OpenCart forums but got no reply. As I'm quite new to the Linux world my knowledge is limited & I just can't figure it out.

closed as too broad by Jeff Schaller, user34720, MelBurslan, Thomas Dickey, daisy Jun 7 '16 at 2:49

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.