Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Proper permissions question...


Justin WFCOMICS

Recommended Posts

Posted

Hi,

 

I moved my osC dir and ended up with the permissions for all the files and directories set to 600.

 

I know that the following should be:

 

includes/configure.php to 644 (or 444 depending on server settings)

images/ directory to 777

admin/includes/configure.php to 644

admin/backups/ to 777

admin/images/ to 777

 

Will osC work with all the other files and directories set to 600? What about the "pub/" and "downloads/" directories? Others? Anything I need to look out for?

 

Thanks!!

Justin =)

Posted

Directories *need* 7 or 5 permissions (e.g. 755). Files need 4 permissions. Writeable files need 6 permissions. Writeable directories need 7 permissions.

 

Depending on how Apache runs 600 may or may not work for files (400 is probably better if it does). If not, 644 should work. All directories will need at least 500, or 555 (755 is usually better than 555 if 500 doesn't work).

 

To really answer your question, it matters

 

1. Who (and what group) owns the files?

 

2. As what user and group is Apache running? As what user/group are you editing the files (if you edit off server and upload, as what user are you uploading--probably the same as 1).

 

Hth,

Matt

Posted
Depending on how Apache runs 600 may or may not work for files (400 is probably better if it does).  If not, 644 should work.  All directories will need at least 500, or 555 (755 is usually better than 555 if 500 doesn't work).  

 

To really answer your question, it matters  

 

1.  Who (and what group) owns the files?

 

2.  As what user and group is Apache running?  As what user/group are you editing the files (if you edit off server and upload, as what user are you uploading--probably the same as 1).

Hi Matt :),

 

Thanks for chiming in. The store *seems* to be working fine with everything at 600, except for the files and dir mentioned in my first post, which I did change. Should I still change the permissions on all the files and directories?

 

The only test I've done is uploading an image in the admin, which seemed to work fine. What else can I test?

 

As for your questions...

 

1) owner

 

2) dunno :(... how can I tell? I am uploading off server and uploading via FTP.

 

Thanks!!!

Justin =)

Posted

What kind of server is it? Windows, Linux, what?

 

Thanks,

Matt

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...