Results 1 to 2 of 2

https and images-Admin Tool Help Plz

This is a discussion on https and images-Admin Tool Help Plz within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; This appears to be somewhat of a common problem since I've seen a few posts about https and images but ...

      
  1. #1
    Lurker
    Join Date
    Jan 2003
    Posts
    2
    Rep Power
    0


    Default https and images-Admin Tool Help Plz

    This appears to be somewhat of a common problem since I've seen a few posts about https and images but not really any solutions.
    My problem is occurring only in the admin tool when it is set to work in SSL. The page images contained in the admin/images directory
    load fine but the product images contained in the catalog images directory fail to load. This has to be a problem in the
    admin/includes/configure.php but I've spent the last four hours working on getting the page to look in the right location
    with little success. Below is the modified code from admin/includes/configure.php which has come the closest to getting the page to look in the right place.

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)

    define('HTTP_SERVER', 'https://host10.ipowerweb.com/~pegasus-');// eg, http://localhost or - https://localhost should not be NULL for productive servers

    define('HTTP_CATALOG_SERVER', 'http://www.pegasus-book.com');

    define('HTTPS_CATALOG_SERVER', 'https://host10.ipowerweb.com/~pegasus-');


    define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/home/pegasus-/public_html'); // where the pages are located on the server
    define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
    define('DIR_FS_ADMIN', '/home/pegasus-/public_html/catalog/admin/'); // absolute pate required

    define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

    define('DIR_FS_CATALOG', '/home/pegasus-/public_html/catalog/'); // absolute path required
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

    define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

    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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

    // define our database connection
    define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers
    define('DB_SERVER_USERNAME', '******');
    define('DB_SERVER_PASSWORD', '*******');
    define('DB_DATABASE', '*******');
    define('USE_PCONNECT', 'false'); // use persisstent connections?
    define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

    With this I can get the page to look for the product images in https://host10.ipowerweb.com/catalog/images. This
    is the correct path except it is looking in the root directory of the server and not our account on the server.
    The correct path should be https://host10.ipowerweb.com/~pegasus/catalog/images

    I've tried about every variation I can think of with results ranging from the entire page failing to load, to all graphics
    failing to load, to all graphics loading but without SSL. Any help you could give on this would be greatly appreciated.
    Below is the originally modified code which loads all graphics correctly but without the SSL:

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://www.pegasus-book.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
    define('HTTP_CATALOG_SERVER', 'http://www.pegasus-book.com');
    define('HTTPS_CATALOG_SERVER', 'https://host10.ipowerweb.com/~pegasus-');
    define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/home/pegasus-/public_html'); // where the pages are located on the server
    define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
    define('DIR_FS_ADMIN', '/home/pegasus-/public_html/catalog/admin/'); // absolute pate required
    define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
    define('DIR_FS_CATALOG', '/home/pegasus-/public_html/catalog/'); // absolute path required
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
    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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

    // define our database connection
    define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers
    define('DB_SERVER_USERNAME', '******');
    define('DB_SERVER_PASSWORD', '*********');
    define('DB_DATABASE', '****');
    define('USE_PCONNECT', 'false'); // use persisstent connections?
    define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

    Thanks in advance for any help/comments you may have.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    I just had a look at your config, and I found this problem in the first config file. This is why it looks in the root dir. You haven't specified your home dir:

    Your file has this:
    define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
    It should be this :
    define('DIR_WS_ADMIN', '/home/pegasus-/catalog/admin/'); // absolute path required
    See if that help. Other than that, everything else looks good.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Admin tool will not work?
    By mclaudnic in forum osCommerce 2.2 Installation Help
    Replies: 3
    Last Post: 01-21-2005, 04:05 PM
  2. ADMIN TOOL
    By case510 in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 12-25-2004, 11:15 AM
  3. Please help!!! Error in admin tool with Customer info
    By Rosina in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 09-22-2004, 04:22 PM
  4. Admin tool install problem
    By bjrafferty in forum osCMax v1.7 Installation
    Replies: 3
    Last Post: 06-28-2004, 09:03 PM
  5. Losing images in admin with https
    By ozstar in forum osCommerce 2.2 Modification Help
    Replies: 7
    Last Post: 03-16-2003, 09:14 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
  •