Padding Padding
Janet
Systems
 Register  Login 
Telephone  01628 566 178
Website Design, Hosting and Software Services
  Search 
Padding
corner Padding corner
Padding Padding
corner Padding corner

Recently I cofigured a Zen Cart within the shop directory, from the main website. Once the website went live it was decided that the Zen Cart should operate from the root directory. Changing the operational directory for Zen Cart to the root directory. To make the change there are a couple of configuration files to be edited. given below are the original configuration files parameters, followed by their new values.

Original values

/includes/configure.php

  • define('HTTP_SERVER', 'http://shop.mywebsite.co.uk');
  • define('DIR_WS_HTTPS_CATALOG', '/mywebsite.co.uk/shop/');
  • define('DIR_FS_CATALOG', '/home/sites/mywebsite.co.uk/public_html/shop/');
  • define('DIR_FS_SQL_CACHE', '/home/sites/mywebsite.co.uk/public_html/shop/cache');

/admin/includes/configure.php

  • define('HTTP_SERVER', 'http://shop.mywebsite.co.uk');
  • define('HTTP_CATALOG_SERVER', 'http://shop.mywebsite.co.uk');
  • define('DIR_WS_HTTPS_ADMIN', '/mywebsite.co.uk/shop/admin/');
  • define('DIR_WS_HTTPS_CATALOG', '/mywebsite.co.uk/shop/');
  • define('DIR_FS_ADMIN', '/home/sites/mywebsite.co.uk/public_html/shop/admin/');
  • define('DIR_FS_CATALOG', '/home/sites/mywebsite.co.uk/public_html/shop/');
  • define('DIR_FS_SQL_CACHE', '/home/sites/mywebsite.co.uk/public_html/shop/cache');

New values

/includes/configure.php

  • define('HTTP_SERVER', 'http://www.mywebsite.co.uk');
  • define('DIR_WS_HTTPS_CATALOG', '/mywebsite.co.uk/');
  • define('DIR_FS_CATALOG', '/home/sites/mywebsite.co.uk/public_html/');
  • define('DIR_FS_SQL_CACHE', '/home/sites/mywebsite.co.uk/public_html/cache');

/admin/includes/configure.php.

  • define('HTTP_SERVER', 'http://shop.mywebsite.co.uk');
  • define('HTTP_CATALOG_SERVER', 'http://www.mywebsite.co.uk');
  • define('DIR_WS_HTTPS_ADMIN', '/mywebsite.co.uk/admin/');
  • define('DIR_WS_HTTPS_CATALOG', '/mywebsite.co.uk/');
  • define('DIR_FS_ADMIN', '/home/sites/mywebsite.co.uk/public_html/admin/');
  • define('DIR_FS_CATALOG', '/home/sites/mywebsite.co.uk/public_html/shop/');
  • define('DIR_FS_SQL_CACHE', '/home/sites/mywebsite.co.uk/public_html/cache');Fix cache mod

In addtion to the above changes it is likely that whilst moving your files around that the file permission settings have been changed. The confguration file /admin/includes/configure.php needs to have permission chmod value of 644.

NAT January 2007

  This article viewed: 26 times Back

Copyright © 2004-2007 Janet Systems Ltd.

Dedicated servers from Janet Systems
DotNetNuke Website Hosting
Custom DotNetNuke skins
Padding
Copyright 2002-2008 Janet Systems Ltd.   Terms Of Use  Privacy Statement Thursday, July 24, 2008