File Permissions

I hate to ask this: Is there a listing of suggested permissions for all of the directories and files for Multi-vendor. I set them to what I think they should be, but I'm not a developer. In the other carts that I use they have a list of all the required permissions by directory and file level.

Thanks

Bill

ezhobbies.com

Multi-Vendor 4.5.2.SP2

Hi

Hopefully this will help.......

http://docs.cs-cart.com/4.5.x/install/useful_info/permissions.html?highlight=permissions

Regards

Barry

Thanks Barry

Do I need to go through each and ever single file and directory to change these permissions? Is there an automated way of doing this? Seems like a lot to go into each directory to change file permissions. and to go into all sub-directories to change those permissions. I must be missing something.

Is there an automated way of doing this? Seems like a lot to go into each directory to change file permissions. and to go into all sub-directories to change those permissions. I must be missing something.


If you have ssh access to your server, you can change files/directories permissions in bulk with the commands below.
Go to your CS-Cart installation directory which will looks like:

/var/www/vhosts//httpdocs/your_cscart_root_directory/ - for Linux with Plesk panel

or

/home/username/public_html/your_cscart_root_directory/ - for Linux with cPanel

or it will have an another path depending of your current server installation/configuration. Then execute the commands below:

For directories:

find . -type d -exec chmod 755 {} \;

For files:

find . -type f -exec chmod 644 {} \;

755 and 644 is just an example. It could be 777 and 666 as well (again it depends on your server configuration).

I just use filezilla and highlight the main folders and click change all folders in it to 755 then all files to 644.