Page 1 of 1

[SOLVED] - Changing folder permisson to 775 broke admin

Posted: Fri May 08, 2020 1:52 am
by spiner
Hi all,
I have fresh install of OC v2302, I need to change folder permissions to 775 (folders: admin, catalog and system) for facebook ads extension.
After changing permissions admin don't work, I can't to login, redirect me to front 404 Page not find!

Ane help, please?

Re: Changing folder permisson to 775 broke admin

Posted: Fri May 08, 2020 4:00 am
by OSWorX
775 is very unusual!
Standard would be 0755
Sometimes it could ba also somewhat else, in such case you have to ask your provider.

Re: Changing folder permisson to 775 broke admin

Posted: Fri May 08, 2020 4:55 am
by spiner
OSWorX wrote:
Fri May 08, 2020 4:00 am
775 is very unusual!
Standard would be 0755
Sometimes it could ba also somewhat else, in such case you have to ask your provider.
Thanks for reply.
Jup that is unusual, but Facebook Ads Extension for Opencart need that because extension put some files in server.
https://github.com/facebookincubator/Fa ... L_GUIDE.md
Pre-requisites prior to installing the plugin
Section 4

Re: Changing folder permisson to 775 broke admin

Posted: Fri May 08, 2020 3:14 pm
by OSWorX
When I look at the screenshot for the file/folder permissions of this extension and see something like 0777 (in this case the vqmod folder), I see only that here is something going very wrong!

As written, 0755 must be enough for folders, 0644 for files.
In some very rare cases, and only if the provider/hoster has some other rules, they can vary slightly.

What I can see also with this 0770 is, that the "Others" group can do nothing (who could with 0755).
Have you ever tried it with that?

What I assume is, that your server is running under some strange conditions, suphp using or something else.
And now the wrong group "Others" will have access and has not, that's why the 404 error.

For anybody with technical interest, read this here:
https://www.tutorialspoint.com/unix/uni ... ission.htm
https://www.guru99.com/file-permissions.html

And something to "play" with: http://permissions-calculator.org/

Re: Changing folder permisson to 775 broke admin

Posted: Sat May 09, 2020 7:38 am
by spiner
OSWorX wrote:
Fri May 08, 2020 3:14 pm
When I look at the screenshot for the file/folder permissions of this extension and see something like 0777 (in this case the vqmod folder), I see only that here is something going very wrong!

As written, 0755 must be enough for folders, 0644 for files.
In some very rare cases, and only if the provider/hoster has some other rules, they can vary slightly.

What I can see also with this 0770 is, that the "Others" group can do nothing (who could with 0755).
Have you ever tried it with that?

What I assume is, that your server is running under some strange conditions, suphp using or something else.
And now the wrong group "Others" will have access and has not, that's why the 404 error.

For anybody with technical interest, read this here:
https://www.tutorialspoint.com/unix/uni ... ission.htm
https://www.guru99.com/file-permissions.html

And something to "play" with: http://permissions-calculator.org/
Thanks for reply.