Hi,
I need to install fresh copy of opencart on a server already running an opencart site. The idea is that this fresh copy will ultimately go live and replace the old site. Let's say that old site is at mydomain.com, would it be okay if I make fresh installation on mydomain.com/new and do all the development there. When ready, I delete all the directories from mydomain.com and shift contents of new folder there and change links in config.php files. My question is, would this work? Without creating any issues of broken links etc.?
What exactly is the best practice for my mentioned scenerio?
Basically this will work without any problems.talentive wrote: ↑Wed Jun 25, 2025 11:48 pmHi,
I need to install fresh copy of opencart on a server already running an opencart site. The idea is that this fresh copy will ultimately go live and replace the old site. Let's say that old site is at mydomain.com, would it be okay if I make fresh installation on mydomain.com/new and do all the development there. When ready, I delete all the directories from mydomain.com and shift contents of new folder there and change links in config.php files. My question is, would this work? Without creating any issues of broken links etc.?
But a second option could be, let the new store inside the subfolder and point via the server config (Plesk, cPanel) to this new folder.
Doing so, let you untouched both sites, but you can still access the old and and the new store.
To be able to call also the old store in future, copy the content if the oldstore also into another subfolder, rewrite both config files (the paths).
Just to have a, accessable copy of the old site if any error might come up in future ..
And if the old store is finally not needed anymore, you can delete then all there ..
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Thanks for your suggestion to be able to keep both sites for a while, I am not a server guy and our setup has cPanel. Can you please point me in the right direction on how to achieve what you said in cPanel? Your help is really appreciated
I for myself do not use cPanel, have Plesk where such a task is a matter of 2 seconds.
In cPanel it should also be possible, it's only a pointer to the directory .. but maybe one of the user here using cPanle can help you better.
In cPanel it should also be possible, it's only a pointer to the directory .. but maybe one of the user here using cPanle can help you better.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Who is online
Users browsing this forum: Majestic-12 [Bot] and 8 guests