Page 1 of 1

User Permission for apache?

Posted: Sat May 20, 2017 1:33 pm
by zaidladha
Hi,
I am having a problem with permissions for my site. I know that nothing should be 777,
Folder should be 755 and files 644 but if I do this I get permission denied errors.
I am on a dedicated host, so if its a hosting problem then its probably me...

I think I have to grant apache permission? Could that be it? Something like this? How do I know exactly what the user etc is?
# chown -R apache: /var/www/html/

Re: User Permission for apache?

Posted: Sun May 21, 2017 2:17 am
by IP_CAM
How do I know exactly what the user etc is?

Probably at best, by asking our friend Google ;)
Apache Permission setting for Opencart
https://www.google.com/search?q=Apache+ ... r+Opencart

Re: User Permission for apache?

Posted: Sun May 21, 2017 1:42 pm
by zaidladha
Hi,
Thanks, any chance you can tell me the command I should run? Should any files need to be 777? vqmod?

Re: User Permission for apache?

Posted: Sun May 21, 2017 6:17 pm
by victorj
File permissions and how to set them, largly depends on wich system is used.
in whm cpanel all folders should be 755 and files 644, and all should work well.
When on direct admin there are more setting, files folders users and owners.
here you frequently need permissions to be 777 for files and folders that will write files.
very often user needs to be reset to have owner right as well.
Its easy to do with build in file manager,just select desired folders and reset user rights

Re: User Permission for apache?

Posted: Sun May 21, 2017 6:33 pm
by artcore
Permissions also rely on the usergroup. I suspect your server doesn't have apache suexec module installed which is probably why default user 'nobody' is the owner in stead of the account-user. This might be it but it's just a hunch, since you're on dedicated/unmanaged :)