Post by klorinczi » Sun Mar 24, 2024 1:26 am

Installed OpenCart v4.0.2.3 on KeyHelp hosting control panel (https://www.keyweb.de/en/keyhelp/keyhelp/)

After installing OpenCart, after first login, I get a Security Notification pop-up dialog:
----
Important Security Notification!

Storage path
It is very important that you move the storage directory outside of the web directory (e.g. public_html, www or htdocs).

Current Path
/home/users/myuser/www/mysite.com/opencart/system/storage/
New Path
/home/users/myuser/ => files/mysite.com/opencart/system/storage/
----
If I place a full path there, like
files/mysite.com/opencart/system/storage/
after pressing the Move button, the hour glass goes round forever, never finishes.

It seems there are missing some checks to find out path, permission, error problems.

I found the following info in the PHP log:
PHP Warning: is_dir(): open_basedir restriction in effect. File(/home/users/myuser/storage/) is not within the allowed path(s): (/home/users/myuser/www:/home/users/myuser/files:/home/users/myuser/tmp)
File: /home/users/myuser/www/mysite.com/opencart/admin/controller/common/security.php
Line: 162

I would like to use the following input string as target path:
files/mysite.com/opencart/system/storage/

Could be possible to fix the Security Notification pop-up dialog to allow using target path above?


Thanks!

Newbie

Posts

Joined
Sun Mar 24, 2024 12:40 am

Post by straightlight » Mon Mar 25, 2024 3:53 am

klorinczi wrote:
Sun Mar 24, 2024 1:26 am
Installed OpenCart v4.0.2.3 on KeyHelp hosting control panel (https://www.keyweb.de/en/keyhelp/keyhelp/)

After installing OpenCart, after first login, I get a Security Notification pop-up dialog:
----
Important Security Notification!

Storage path
It is very important that you move the storage directory outside of the web directory (e.g. public_html, www or htdocs).

Current Path
/home/users/myuser/www/mysite.com/opencart/system/storage/
New Path
/home/users/myuser/ => files/mysite.com/opencart/system/storage/
----
If I place a full path there, like
files/mysite.com/opencart/system/storage/
after pressing the Move button, the hour glass goes round forever, never finishes.

It seems there are missing some checks to find out path, permission, error problems.

I found the following info in the PHP log:
PHP Warning: is_dir(): open_basedir restriction in effect. File(/home/users/myuser/storage/) is not within the allowed path(s): (/home/users/myuser/www:/home/users/myuser/files:/home/users/myuser/tmp)
File: /home/users/myuser/www/mysite.com/opencart/admin/controller/common/security.php
Line: 162

I would like to use the following input string as target path:
files/mysite.com/opencart/system/storage/

Could be possible to fix the Security Notification pop-up dialog to allow using target path above?


Thanks!
Contact your host to resolve this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by hpwebdesign » Thu Apr 25, 2024 12:25 pm

Well, it doesn't matter where you place the storage folder.

But: you have to write the correct path on config.php and admin/config.php

HP Web Design
Powering Digital Commerce | http://hpwebdesign.io | http://opencart.id
Opencart Professional Services | Create OpenCart Online Store | OpenCart Tutorials


User avatar
Active Member

Posts

Joined
Wed Aug 15, 2018 6:58 am
Location - Yogyakarta
Who is online

Users browsing this forum: No registered users and 2 guests