osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

configure.php for oscmax setup on subdirectory

This is a discussion on configure.php for oscmax setup on subdirectory within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; hi i have decided to move my oscmax setup to a subdirectory, and im not sure how to configure the ...

      
  1. #1
    Active Member
    Join Date
    Nov 2009
    Posts
    157
    Rep Power
    3


    Default configure.php for oscmax setup on subdirectory

    hi

    i have decided to move my oscmax setup to a subdirectory, and im not sure how to configure the following code in the configure.php file:

    Code:
      define('HTTP_COOKIE_PATH', '/');
      define('HTTPS_COOKIE_PATH', '/');
      define('DIR_WS_HTTP_CATALOG', '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
      define('DIR_WS_IMAGES', 'images/');
    where should the subdirectory name be positioned in the above code, and should there be a trailing "/"...?

    but i think this code is correct anyway, the reason i ask is because i moved my store to a new server and onto a new subdirectory, and am getting and error:

    Code:
    The webpage at http://xxxxxxxxxx.com/xxxxxxxxxxx/product_info.php?products_id=32328&osCsid=dtn1jqgmo6f3dq3559b3nu5sq6 has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
    Code:
    Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

    thanks
    Last edited by spuhg; 12-24-2010 at 02:14 PM.

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Post Re: configure.php for oscmax setup on subdirectory

    Taken from configure.php.new
    Code:
      define('HTTP_SERVER', 'http://localhost');
      define('HTTPS_SERVER', 'http://localhost');
      define('ENABLE_SSL', false);
      define('HTTP_COOKIE_DOMAIN', 'localhost');
      define('HTTPS_COOKIE_DOMAIN', 'localhost');
      define('HTTP_COOKIE_PATH', '/dev_oscmax/catalog/');
      define('HTTPS_COOKIE_PATH', '/dev_oscmax/catalog/');
      define('DIR_WS_HTTP_CATALOG', '/dev_oscmax/catalog/');
      define('DIR_WS_HTTPS_CATALOG', '/dev_oscmax/catalog/');
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
      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', 'pub/');
      define('DIR_FS_CATALOG', 'C:/xampp/htdocs/dev_oscmax/catalog/');
      define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    Active Member
    Join Date
    Nov 2009
    Posts
    157
    Rep Power
    3


    Default Re: configure.php for oscmax setup on subdirectory

    mmm, well i changed my configure.php file to match the format of the one you posted, and i changed the rewrite rule for catalogs in the .htaccess file but i am still getting the following error when i click on a product from the mainpage:

    Code:
    The webpage at http://xxxxxxxxxx.com/xxxxxxxxxxx/product_info.php?products_id=32328&osCsid=dtn1jqgmo6f3dq3559b3nu5sq6 has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
    thanks

  4. #4
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    640
    Blog Entries
    1
    Rep Power
    27


    Default Re: configure.php for oscmax setup on subdirectory

    You're httacess rules are still not configured right - thats why you are getting that message.
    Your "RewriteBase /subfolder/catalog/" is what matters when trying to nest your site in a sub directory - not your rules
    once that is set, everything else flows.

  5. #5
    Active Member
    Join Date
    Nov 2009
    Posts
    157
    Rep Power
    3


    Default Re: configure.php for oscmax setup on subdirectory

    hi

    i've changed the rewrite rule in .htaccess to:

    Code:
    <IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    
    # Change "catalog" to your catalog directory name:
    RewriteBase /bodybuilding/
    ## If installed to the base home/root directory, uncomment the below code only:
    #RewriteBase /
    see waynesale.com/bodybuilding, and click on a product.

    thanks

  6. #6
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: configure.php for oscmax setup on subdirectory

    Hmm.
    Turn off the cache:
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 40961 bytes) in /home8/ultralow/public_html/bodybuilding/includes/functions/cache.php on line 131
    Hosting plans with installation, configuration, contributions, support and maintenance.

  7. #7
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: configure.php for oscmax setup on subdirectory

    Code:
      define('HTTP_SERVER', 'http://waynesale.com');
      define('HTTPS_SERVER', 'http://waynesale.com');
      define('ENABLE_SSL', false);
      define('HTTP_COOKIE_DOMAIN', 'waynesale.com');
      define('HTTPS_COOKIE_DOMAIN', 'waynesale.com');
      define('HTTP_COOKIE_PATH', '/bodybuilding/');
      define('HTTPS_COOKIE_PATH', '/bodybuilding/');
      define('DIR_WS_HTTP_CATALOG', '/bodybuilding/');
      define('DIR_WS_HTTPS_CATALOG', '/bodybuilding/');
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
      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', 'pub/');
      define('DIR_FS_CATALOG', '/home8/ultralow/public_html/bodybuilding/');
      define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    Hosting plans with installation, configuration, contributions, support and maintenance.

  8. #8
    Active Member
    Join Date
    Nov 2009
    Posts
    157
    Rep Power
    3


    Default Re: configure.php for oscmax setup on subdirectory

    mmm, there seems to be a couple caches, which one should i turn off?

    thanks

  9. #9
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: configure.php for oscmax setup on subdirectory

    Quote Originally Posted by spuhg View Post
    mmm, there seems to be a couple caches, which one should i turn off?

    thanks
    Start with ALL OF THEM!
    When you get this mess cleaned up, I strongly suggest that you read up on how to NOT make changes to the fallback template - use your own (a copy of fallback)!
    Hosting plans with installation, configuration, contributions, support and maintenance.

  10. #10
    Active Member
    Join Date
    Nov 2009
    Posts
    157
    Rep Power
    3


    Default Re: configure.php for oscmax setup on subdirectory

    hi

    where are the caches accessed?
    only from admin right?
    i've already tried to turn some to "false".
    maybe i'm not getting them all?

    thanks
    Last edited by spuhg; 12-30-2010 at 04:14 PM.

Page 1 of 2 12 LastLast

Similar Threads

  1. After install, no configure.php in oscmax dir
    By smarch in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 09-23-2010, 12:39 PM
  2. SSL Setup? For Configure.php?
    By sushiboiiii in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 12-22-2009, 01:00 PM
  3. OscMax Lab setup
    By dinotech in forum General Topics & Chit Chat
    Replies: 2
    Last Post: 11-03-2009, 07:51 PM
  4. SSL Setup for (admin) catalog/admin/includes/configure.php?
    By sushiboiiii in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 05-13-2009, 03:35 PM
  5. Replies: 0
    Last Post: 07-15-2007, 08:24 PM

Bookmarks

Posting Permissions

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