Post by dev_irl_ab » Mon Oct 04, 2021 3:18 am

Hi Everyone,
I am self hosting my company s website before i publish it using an Ubuntu 20.4 host with Apache, MySql and PHP 7.4.

I struggled through issues as this was my first self host but i was able to find answers to all issues that came up using these forums.

However i can not find a similar issue to my own.

On the webserver the site runs like a dream if i use it locally on that machine using localhost:
http://127.0.0.1/store

I have two issues if i view it from across the internal LAN.
http://99.99.99.10/store
1. The site does not load and only loads in raw text
2. If i try click on any of the links the URL changes and also tries to load the localhost ip which wont load and not the server ip

I believe i have made a configuration mistake if the site is trying to move to the localhost ip and not stay on the actual server ip

I have attached screen shots of what i mean as i hope i am explaining that correctly

Thank you all in advance

Attachments

store2.jpg

store2.jpg (65.53 KiB) Viewed 574 times

store1.jpg

store1.jpg (72.42 KiB) Viewed 574 times


Newbie

Posts

Joined
Mon Oct 04, 2021 3:08 am

Post by ADD Creative » Mon Oct 04, 2021 4:06 pm

You would need to update your config,php to use the new address.

www.add-creative.co.uk


Expert Member

Posts

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

Post by linkfm » Mon Oct 18, 2021 1:07 pm

Do you have a backup Config file?

Open the config file in notepad or any editor you are using, replace all old URL locations with a new one and upload new config file.

Developing OpenCart Sites ........


Newbie

Posts

Joined
Sat Sep 10, 2011 1:14 pm
Who is online

Users browsing this forum: georgefeichter and 48 guests