Post by stefan-franz » Tue Nov 07, 2023 3:29 pm

Hello,
i installed opencart-4.0.2.3 fresh to my ubuntu 22.04 Server.
But i can't move the storage directory. The browser feature doesn't work and nothing is moved.
How ist the workaround (maybe some permissions i have to set....?)

Attachments

Storage Move not possible.png

Storage Move not possible.png (29.82 KiB) Viewed 2121 times


Newbie

Posts

Joined
Tue Nov 07, 2023 3:14 pm

Post by ADD Creative » Tue Nov 07, 2023 6:01 pm

Check both the PHP and OpenCart error logs. Also check your web browser's developer console for messages.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by stefan-franz » Tue Nov 07, 2023 7:35 pm

I moved the folder as here described.
https://stackoverflow.com/questions/487 ... -directory

Moved the storage folder
mv /var/www/html/opencart/system/storage /var/www/html/storage

Adjusted this Line in the config.php and admin/config.php
define('DIR_STORAGE', '/var/www/html/storage/');

Now it works.

Newbie

Posts

Joined
Tue Nov 07, 2023 3:14 pm

Post by Cue4cheap » Tue Nov 07, 2023 9:53 pm

stefan-franz wrote:
Tue Nov 07, 2023 7:35 pm
I moved the folder as here described.
https://stackoverflow.com/questions/487 ... -directory

Moved the storage folder
mv /var/www/html/opencart/system/storage /var/www/html/storage

Adjusted this Line in the config.php and admin/config.php
define('DIR_STORAGE', '/var/www/html/storage/');

Now it works.
Judging my the "www" in your line there... you didn't move it to the right place.

Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by stefan-franz » Wed Nov 08, 2023 12:47 am

Where do you recommend to move it?

Newbie

Posts

Joined
Tue Nov 07, 2023 3:14 pm

Post by Cue4cheap » Wed Nov 08, 2023 1:12 am

stefan-franz wrote:
Wed Nov 08, 2023 12:47 am
Where do you recommend to move it?
Outside of your web (www) or public_html.
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by stefan-franz » Wed Nov 08, 2023 2:10 am

Hmmm.....opencart runs here: /var/www/html/opencart
I'm a newbie in this. I thought if i move outside the path above, it's save. Opencart suggested in the admin login the path / or /var or /var/www to remove (that doesn't work).
But i'm free: What do you recommend? How to move it that it's save and "tidy" installation on my ubuntu server?

Newbie

Posts

Joined
Tue Nov 07, 2023 3:14 pm

Post by Cue4cheap » Wed Nov 08, 2023 11:36 pm

stefan-franz wrote:
Wed Nov 08, 2023 2:10 am
Hmmm.....opencart runs here: /var/www/html/opencart
I'm a newbie in this. I thought if i move outside the path above, it's save. Opencart suggested in the admin login the path / or /var or /var/www to remove (that doesn't work).
But i'm free: What do you recommend? How to move it that it's save and "tidy" installation on my ubuntu server?
Not completely understanding what you are writing but I would suggest anything that is outside of the www/html path.
So /var or
/
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am
Who is online

Users browsing this forum: No registered users and 4 guests