Post by vsaravind007 » Wed May 14, 2014 8:54 pm

Hello,

I'm currently on the way to running an Opencart v1.5.6 based online shop. I'm using an Amazon EC2 instance to run my server. So far its working & performing fine. Now, I need to move the images to an Amazon S3 bucket. I've searched the forum for ways to do this but I couldn't find any. I've tried to change the file config.php in both the root & inside the admin folders, assuming that my Opencart installation is at the root of http://www.mydomain.com:

Code: Select all

define('DIR_IMAGE', '/var/www/html/opencart/image/');
to

Code: Select all

define('DIR_IMAGE', 'http://images.mydomain.com/');
Please note that http://www.mydomain.com is an Elastic IP associated with my EC2 instance & http://images.mydomain.com is a CNAME mapping to my S3 bucket where all the files & folders in the image directory is stored & having permissions set to be read by everyone.
I've read somewhere that Opencart can load images from a sub domain, But still it isn't working.If I open up the address http://images.mydomain.com/no_image.jpg on the browser, the image file opens up, so no issues there, I believe.

I've tried the following:
http://forum.opencart.com/viewtopic.php ... 75#p194975
http://forum.opencart.com/viewtopic.php?t=23708

But, None worked & my store loads up with no images. If I try to view the source of my page, all the image src's are blank, like this <img src="" ..../>. Is there any way I can solve this? Any help is appreciated :)

Thank you

Newbie

Posts

Joined
Wed May 14, 2014 7:48 pm

Post by LongerVogue » Fri May 04, 2018 5:11 pm

Where do you edit this config.php in ec2?

Newbie

Posts

Joined
Sat Mar 24, 2018 8:24 pm
Who is online

Users browsing this forum: No registered users and 22 guests