Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  Shopping Carts FAQ  >  OpenCart FAQ  >  How to Change OpenCart Installation Folder?
Top Scroll

How to Change OpenCart Installation Folder?

 2 min

Let’s assume that you have installed the OpenCart at and you want to move it to

To move the OpenCart from one folder to other, you will have to edit the following two files.


In both these files, you will find following lines that should be modified:


define('HTTP_SERVER', '');

define('HTTP_IMAGE', '');

define('HTTP_ADMIN', '');


define('HTTPS_SERVER', '');

define('HTTPS_IMAGE', '');

// DIR

define('DIR_APPLICATION', '/home/username/public_html/newfolder/catalog/');

define('DIR_SYSTEM', '/home/username/public_html/newfolder/system/');

define('DIR_DATABASE', '/home/username/public_html/newfolder/system/database/');

define('DIR_LANGUAGE', '/home/username/public_html/newfolder/catalog/language/');

define('DIR_TEMPLATE', '/home/username/public_html/newfolder/catalog/view/theme/');

define('DIR_CONFIG', '/home/username/public_html/newfolder/system/config/');

define('DIR_IMAGE', '/home/username/public_html/newfolder/image/');

define('DIR_CACHE', '/home/username/public_html/newfolder/system/cache/');

define('DIR_DOWNLOAD', '/home/username/public_html/newfolder/download/');

define('DIR_LOGS', '/home/username/public_html/newfolder/system/logs/');

In the above lines replace with your domain name, username with cPanel username and new folder with the directory name where your OpenCart is installed.

If you are not able to change the folder, contact us our team will fix it for you.

If you are looking for a quality OpenCart hosting provider, visit

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
Claim the discount before it’s too late. Use the coupon code:
Note: Copy the coupon code and apply it on checkout.