Post by JackD » Wed Dec 27, 2017 7:41 am

Hi All,
I am hosting OpenCart websites, mostly 2.x ones.
As I am getting familiar with version 3.x, I just want to know more about this storage folder moving outside the web directory, what pops up as an important security notfication at first OC setups.
As a sysadmin, I just simply don't get this security solution. I've never met something like this before using other engines.
Why is this important? And what are the exact permission requirements for the moved folder?
Can anyone explain these for me from a sysadmin point of view? I couldn't find any specific details in documentation.
???

Newbie

Posts

Joined
Wed Dec 27, 2017 7:32 am

Post by straightlight » Thu Dec 28, 2017 1:12 am

Requires domain permissions for Opencart to write its cache data when either using vendors, cache and extensions. Move your system/storage outside your public_html folder. Then, set recursive settings to the storage folder with CHMOD 0755. In your config.php and admin/config.php files, edit your DIR_STORAGE definition folder to its new destination as well as from your .htaccess file (if found in your .htaccess file as well).

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Guru Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by JackD » Thu Jan 04, 2018 7:43 am

If I have multiple Opencart 3.x sites hosted on my linux server, virtualhosts stored in /var/www/, should I move storage directories of all sites to different directories outside /var/www/{site}/, named diferently after the sites?
e.g.:
/var/www/site1/system/storage -> /var/www/site1_storage
/var/www/site2/system/storage -> /var/www/site2_storage
/var/www/site3/system/storage -> /var/www/site3_storage
straightlight wrote:
Thu Dec 28, 2017 1:12 am
Requires domain permissions for Opencart to write its cache data when either using vendors, cache and extensions. Move your system/storage outside your public_html folder. Then, set recursive settings to the storage folder with CHMOD 0755. In your config.php and admin/config.php files, edit your DIR_STORAGE definition folder to its new destination as well as from your .htaccess file (if found in your .htaccess file as well).

Newbie

Posts

Joined
Wed Dec 27, 2017 7:32 am

Post by straightlight » Thu Jan 04, 2018 7:55 am

Good question. :)

Each domain should use their own storage folder so to avoid cache conflict. Although, each config.php and admin/config.php files of each stores must also be configured accordingly as well as each .htaccess files from the OC root store path by remove the entire line where the system/storage is located.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


Guru Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 7 guests