Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2011
    Posts
    76
    Plugin Contributions
    0

    Default Subdomain for testing setting issue

    I have a site all up and running but needed a test Zencart where I can play with so mistakes will not matter as i am new so there will be a lot ! , so I installed it under a subdomain (domain not active just a dummy so i will be using my IP) it all installs and i can access it fine but i get no Images ? The admin has images ?

    Spoke to my Provider who said i need to change some setting in my Configuration , but he could not tell me what !

    Settings

    I can access my site using my IP example below

    http://00.00.00.00/~mydomain/demosite.co.uk/

    Configuration.php... where am i going wrong ?


    Code:
    // Define the webserver and path parameters
      // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      define('HTTP_SERVER', 'http://00.00.00.00');
      define('HTTPS_SERVER', 'https://00.00.00.00');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', 'false');
    
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      define('DIR_WS_CATALOG', '/~mydomain/demosite.co.uk/');
      define('DIR_WS_HTTPS_CATALOG', '/~mydomain/demosite.co.uk/');
    Hope this makes sense

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Subdomain for testing setting issue

    Quote Originally Posted by psvialli View Post
    Configuration.php... where am i going wrong
    Code:
      define('DIR_WS_CATALOG', '/~mydomain/demosite.co.uk/');
      define('DIR_WS_HTTPS_CATALOG', '/~mydomain/demosite.co.uk/');
    Hope this makes sense
    Please provide a copy of the next two lines in your configure.php file. (Specifically, we need to know what you have set for
    define('DIR_WS_IMAGES'. '') ;

    tip: It should probably be
    define('DIR_WS_IMAGES'. 'images/') ;

    Cheers
    Rod

  3. #3
    Join Date
    Mar 2011
    Posts
    76
    Plugin Contributions
    0

    Default Re: Subdomain for testing setting issue

    Yes i left those as is

    Code:
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Subdomain for testing setting issue

    You've done this in a rather "clunky" way.

    I find that the EASIEST way is to create a new sub-folder in the public_html root. Call it " testing " or whatever...

    Then, create a CLONE of your live website (Copied database with a DIFFERENT name, and copied files - which are housed in testing.)

    configure.php for LIVE SITE looks like this:

    Code:
    // Define the webserver and path parameters
      // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      define('HTTP_SERVER', 'http://your-website.com');
      define('HTTPS_SERVER', 'https://your-website.com');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', 'false');
    
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
    
      define('DIR_WS_PHPBB', '/');
    
    // * DIR_FS_* = Filesystem directories (local/physical)
      //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
      define('DIR_FS_CATALOG', '/home/youraccount/public_html/');
    
      define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
      define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
      define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
      define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    
    // define our database connection
      define('DB_TYPE', 'mysql');
      define('DB_PREFIX', '');
      define('DB_CHARSET', 'latin1');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'youraccount_yourusername');
      define('DB_SERVER_PASSWORD', 'YoURPassWoRd');
      define('DB_DATABASE', 'youraccount_livedatabase');
    
      // The next 2 "defines" are for SQL cache support.
      // For SQL_CACHE_METHOD, you can select from:  none, database, or file
      // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
      // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
      // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
      define('SQL_CACHE_METHOD', 'database'); 
      define('DIR_FS_SQL_CACHE', '/home/youraccount/public_html/cache');
    
    // EOF
    configure.php for TESTING SITE looks like this:

    Code:
    // Define the webserver and path parameters
      // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      define('HTTP_SERVER', 'http://your-website.com');
      define('HTTPS_SERVER', 'https://your-website.com');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', 'false');
    
    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      define('DIR_WS_CATALOG', '/testing/');
      define('DIR_WS_HTTPS_CATALOG', '/testing/');
    
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
    
      define('DIR_WS_PHPBB', '/');
    
    // * DIR_FS_* = Filesystem directories (local/physical)
      //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
      define('DIR_FS_CATALOG', '/home/youraccount/public_html/testing/');
    
      define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
      define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
      define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
      define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    
    // define our database connection
      define('DB_TYPE', 'mysql');
      define('DB_PREFIX', '');
      define('DB_CHARSET', 'latin1');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'youraccount_yourusername');
      define('DB_SERVER_PASSWORD', 'YoURPassWoRd');
      define('DB_DATABASE', 'youraccount_testingdatabase');
    
      // The next 2 "defines" are for SQL cache support.
      // For SQL_CACHE_METHOD, you can select from:  none, database, or file
      // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
      // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
      // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
      define('SQL_CACHE_METHOD', 'database'); 
      define('DIR_FS_SQL_CACHE', '/home/youraccount/public_html/testing/cache');
    
    // EOF
    Last edited by schoolboy; 15 Mar 2013 at 09:36 AM.
    20 years a Zencart User

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Subdomain for testing setting issue

    I then use a htpasswd (configured in C-Panel) to restrict access to testing folder.

    I also alter html_header.php to force noindex,nofollow

    I ALSO CHANGE THE MAIN LOGO to alert me that this is the TESTING SITE AND NOT THE LIVE SITE! (As they would otherwise look identical, you could get confused about which one you are working on.) I sometimes make the background RED IN COLOUR:

    Code:
    body {
    	margin: 0;
    	font-family: verdana, arial, helvetica, sans-serif;
    	font-size: 62.5%;
    	color: #000000;
    	background-color: #ff0000;
    	}
    20 years a Zencart User

  6. #6
    Join Date
    Mar 2011
    Posts
    76
    Plugin Contributions
    0

    Default Re: Subdomain for testing setting issue

    thanks worked a treat !

 

 

Similar Threads

  1. Setting up a subdomain or Not?
    By bearlymakinit in forum General Questions
    Replies: 11
    Last Post: 12 Jun 2011, 11:44 PM
  2. Setting up a testing server
    By KADesign in forum General Questions
    Replies: 2
    Last Post: 10 May 2010, 06:40 PM
  3. Setting up a subdomain
    By philip56 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 22 Jan 2010, 12:18 PM
  4. Setting up ZC on a Local Testing Server
    By boukmn in forum Installing on a Windows Server
    Replies: 9
    Last Post: 29 Aug 2008, 10:26 PM
  5. setting up a testing site
    By Minnie Mouse in forum General Questions
    Replies: 2
    Last Post: 18 Apr 2007, 01:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg