If this is your first visit, check our documentation. To post, register or login.

permissions

Started by keneso on 10 Dec 2020, 11:27 PM · Views: 2,788

Results 1 to 2 of 2
10 Dec 2020, 11:27 PM
#1
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

permissions

Just installed 1.5.7b, and noticed there was no mention of setting directory permissions, and to only check the configure files to have restricted permissions.
I checked to see the permissions were correct, and noticed that while the includes/configure.php had a 444 the admin/includes/configure.php had a 664, don't know if something didn't go as it should have, and I set that too to 444.

Is this correct?

Thank you.

10 Dec 2020, 11:37 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: permissions

If you wish to enforce deeper security by making your configure.php files restricted, you're welcome to do so.

In the past most of the instructions around "you gotta make these 7 directories writable" was because of older approaches to how PHP would run on servers, where PHP couldn't write to files it didn't create in the first place. Most modern servers don't have those same limitations.
If you want to test yours, use the admin Define Pages Editor to change a file. And try uploading images for products via the admin. And if you're allowing customer uploads via attributed products, test that. If you run into issues there, make the requisite folders/files writable on a broader level.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.