Post by zaidladha » Sat May 20, 2017 1:33 pm

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/

Active Member

Posts

Joined
Wed Jun 05, 2013 3:07 pm

Post by IP_CAM » Sun May 21, 2017 2:17 am

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

Please don't send me OC Forum Personal Messages, just contact: jti@jacob.ch
---
OC 1.5.6.5 LIGHT Test Site: http://www.bigmax.ch/shop/
OC 1.5.6.5 V-PRO Test Site: http://www.jacob.ch/shop/
My Github OC Site: https://github.com/IP-CAM
2'450+ FREE OC Extensions from the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by zaidladha » Sun May 21, 2017 1:42 pm

Hi,
Thanks, any chance you can tell me the command I should run? Should any files need to be 777? vqmod?

Active Member

Posts

Joined
Wed Jun 05, 2013 3:07 pm

Post by victorj » Sun May 21, 2017 6:17 pm

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

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by artcore » Sun May 21, 2017 6:33 pm

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 :)

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+ ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands
Who is online

Users browsing this forum: No registered users and 39 guests