Post by budbecks » Sat Sep 02, 2023 6:38 pm

so I had my website on Cloudways but only accessible to ourselves for editing and configuring.

Recently changed my domain from Godaddy to Point to the Cloudways server location. This seems to have gone ok and it redirects just fine.

I edited the config.php files to the new domain but something isn't right and it's not working. I believe its to do with the 'DIR_OPENCART' but I'm not sure what I should have exactly.

Spoke to Cloudways and they pointed me back to here for help.

Can anyone help with my configuration, please?

<?php
// APPLICATION
define('APPLICATION', 'Catalog');

// HTTP
define('HTTP_SERVER', 'http://lovetolaser.co.uk/');

// HTTPS
define('HTTPS_SERVER', 'https://lovetolaser.co.uk/');


// DIR
define('DIR_OPENCART', 'lovetolaser.co.uk/');
define('DIR_APPLICATION', DIR_OPENCART . 'catalog/');
define('DIR_EXTENSION', DIR_OPENCART . 'extension/');

Newbie

Posts

Joined
Sat Sep 02, 2023 6:31 pm

Post by Johnathan » Sat Sep 02, 2023 9:19 pm

DIR_OPENCART should be the root directory of your OpenCart installation on the server. For example, that might look like this:

Code: Select all

define('DIR_OPENCART', '/home/myusername/public_html/');

The path depends on how your server is structured, so you should ask your web host about that.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by budbecks » Sat Sep 02, 2023 9:53 pm

right, managed to getthis working and yeah you are correct. i didnt know what the full path was so managed to get it from help at cloudways.

Trouble i have now is the images are not showing. everything else seems to work ok

Newbie

Posts

Joined
Sat Sep 02, 2023 6:31 pm

Post by budbecks » Sun Sep 03, 2023 7:00 pm

re-installed. other things were messed up. Updated certain table in database to bring back settings.

Newbie

Posts

Joined
Sat Sep 02, 2023 6:31 pm

Post by Johnathan » Sun Sep 03, 2023 10:22 pm

Yeah, re-installation was probably the best choice in your case. Sometimes it's easier if you're having that many issues. I'll go ahead and mark this post as [SOLVED]

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by EvolveWebHosting » Tue Sep 05, 2023 8:45 am

One thing I have noticed (among other issues) with the built in upgrade script is that it never updates the config.php files. If you have the server space, create a subdomain or subfolder and run a quick upload / install of the new version of Opencart that you are going to use. This will generate the correct format for the config.php files. Save them to your local hard drive and then delete that subdomain or subfolder install. Then you can manually compare and apply the changes to your config.php files for what's going to be your live install.

Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA
Who is online

Users browsing this forum: No registered users and 2 guests