Permissions On Files/folders?

Currently I have 644 on files and folders to 755. However, I get this error:

Fatal error: Uncaught --> Smarty: unable to write file /var/www/giftboundgifts/var/cache/templates/backend/wrt5a53619ef1a371_27167171
So does cache folder need 777? or do I use chmod g+w?

Hello!

Currently I have 644 on files and folders to 755. However, I get this error:

Fatal error: Uncaught --> Smarty: unable to write file /var/www/giftboundgifts/var/cache/templates/backend/wrt5a53619ef1a371_27167171
So does cache folder need 777? or do I use chmod g+w?

The var, images, and design directories, and all their subdirectories and files should have the 777 permissions.

Best regards,

Please take a look

http://docs.cs-cart.com/4.7.x/install/useful_info/permissions.html#permissions-for-cs-cart

Also make sure your config.local.php is not setting different permissions for generated files.

define('DEFAULT_FILE_PERMISSIONS', 0644);
define('DEFAULT_DIR_PERMISSIONS', 0755);