Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: InternalServer Error 500 nach SSL Einrichtung

    OYOONY

    • Neu im Forum
    • Beiträge: 15
    InternalServer Error 500 nach SSL Einrichtung
    am: 29. Oktober 2014, 16:12:04
    Hallo liebe Modifiedgemeinde,

    ich habe gerade bei einer modifiedshop Installation versucht die den SSL Proxy einzurichten.
    Nun wird mir eine weisse Seite mit einem Internal Server Error 500 angezeigt.

    Iwi hat das nicht wirklich was hingehauen.

    Ich habe folgende Versionen:

    php5.4.4.14

    Bin mit meinem Latein am Ende.
    Vielleicht weiss von euch jemand Rat.

    Gruss OYO


    Linkback: https://www.modified-shop.org/forum/index.php?topic=31373.0

    Guenter59

    • Viel Schreiber
    • Beiträge: 1.485
    Re: InternalServer Error 500 nach SSL Einrichtung
    Antwort #1 am: 29. Oktober 2014, 16:23:46
    Hi OYO

    Poste mal die ersten Zeilen der defines aus
    includes/configure.php
    also :
     define('HTTP_SERVER', 'http://deinshop'); // eg, http://localhost - should not be empty for productive servers
      define('HTTPS_SERVER', 'https://deinshop.de'); // eg, https://localhost - should not be empty for productive servers
      define('ENABLE_SSL', true); // secure webserver for checkout procedure?
      define('USE_SSL_PROXY', true); // using SSL proxy?

     und

    aus admin/includes/configure.php

    define('HTTP_CATALOG_SERVER', 'http://deinshop');
      define('HTTPS_CATALOG_SERVER', 'https://deinshop');
      define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
      define('USE_SSL_PROXY', true); // using SSL proxy?

    Gruß
    Günter

    OYOONY

    • Neu im Forum
    • Beiträge: 15
    Re: InternalServer Error 500 nach SSL Einrichtung
    Antwort #2 am: 30. Oktober 2014, 10:39:15
    Hallo Günter,

    erst einmal danke für deine Antwort.

    /includes/configure.php
    Code: PHP  [Auswählen]
    <?php
    /* --------------------------------------------------------------
       $Id: configure.php 3072 2012-06-18 15:01:13Z hhacker $

       modified eCommerce Shopsoftware
       http://www.modified-shop.org

       Copyright (c) 2009 - 2013 [www.modified-shop.org]
       --------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce (configure.php,v 1.13 2003/02/10); www.oscommerce.com
       (c) 2003 XT-Commerce (configure.php)

       Released under the GNU General Public License
       --------------------------------------------------------------*/


    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
      define('HTTP_SERVER', 'http://takeandplay.net'); // eg, http://localhost - should not be empty for productive servers
      define('HTTPS_SERVER', 'https://takeandplay.net'); // eg, https://localhost - should not be empty for productive servers
      define('ENABLE_SSL', false); // secure webserver for checkout procedure?
      define('USE_SSL_PROXY', false); // using SSL proxy?
      define('DIR_WS_CATALOG', '/modified-shop/');
      define('DIR_FS_DOCUMENT_ROOT', '/web1/modified-shop/'); // absolute path required
      define('DIR_FS_CATALOG', '/web1/modified-shop/'); // absolute path required
      define('DIR_WS_ADMIN', 'admin/');
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_ORIGINAL_IMAGES', DIR_WS_IMAGES .'product_images/original_images/');
      define('DIR_WS_THUMBNAIL_IMAGES', DIR_WS_IMAGES .'product_images/thumbnail_images/');
      define('DIR_WS_INFO_IMAGES', DIR_WS_IMAGES .'product_images/info_images/');
      define('DIR_WS_POPUP_IMAGES', DIR_WS_IMAGES .'product_images/popup_images/');
      define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
      define('DIR_WS_INCLUDES', DIR_FS_DOCUMENT_ROOT . '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_FS_CATALOG . 'lang/');

      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
      define('DIR_FS_INC', DIR_FS_CATALOG . 'inc/');

    // define our database connection
      define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
      define('DB_SERVER_USERNAME', 'root');
      define('DB_SERVER_PASSWORD', 'root');
      define('DB_DATABASE', 'modified-shop');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
      define('DB_SERVER_CHARSET', 'latin1'); // set db charset utf8 or latin1
    ?>

    und /admin/includes/configure.php

    Code: PHP  [Auswählen]
     // Define the webserver and path parameters
      // * DIR_FS_* = Filesystem directories (local/physical)
      // * DIR_WS_* = Webserver directories (virtual/URL)
      define('HTTP_SERVER', 'http://takeandplay.net'); // eg, http://localhost - should not be empty for productive servers
      define('HTTP_CATALOG_SERVER', 'http://takeandplay.net');
      define('HTTPS_CATALOG_SERVER', 'https://takeandplay.net'); // eg, https://localhost - should not be empty for productive servers
      define('ENABLE_SSL_CATALOG', false); // secure webserver for catalog module
      define('USE_SSL_PROXY', false); // using SSL proxy?
      define('DIR_FS_DOCUMENT_ROOT', '/web1/modified-shop/'); // where the pages are located on the server
      define('DIR_WS_ADMIN', '/modified-shop/admin/');
      define('DIR_FS_ADMIN', '/web1/modified-shop/admin/'); // absolute pate required
      define('DIR_WS_CATALOG', '/modified-shop/');
      define('DIR_FS_CATALOG', '/web1/modified-shop/'); // absolute path required
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
      define('DIR_FS_CATALOG_ORIGINAL_IMAGES', DIR_FS_CATALOG_IMAGES .'product_images/original_images/');
      define('DIR_FS_CATALOG_THUMBNAIL_IMAGES', DIR_FS_CATALOG_IMAGES .'product_images/thumbnail_images/');
      define('DIR_FS_CATALOG_INFO_IMAGES', DIR_FS_CATALOG_IMAGES .'product_images/info_images/');
      define('DIR_FS_CATALOG_POPUP_IMAGES', DIR_FS_CATALOG_IMAGES .'product_images/popup_images/');
      define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
      define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
      define('DIR_WS_CATALOG_ORIGINAL_IMAGES', DIR_WS_CATALOG_IMAGES .'product_images/original_images/');
      define('DIR_WS_CATALOG_THUMBNAIL_IMAGES', DIR_WS_CATALOG_IMAGES .'product_images/thumbnail_images/');
      define('DIR_WS_CATALOG_INFO_IMAGES', DIR_WS_CATALOG_IMAGES .'product_images/info_images/');
      define('DIR_WS_CATALOG_POPUP_IMAGES', DIR_WS_CATALOG_IMAGES .'product_images/popup_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_CATALOG. 'lang/');
      define('DIR_FS_LANGUAGES', DIR_FS_CATALOG. 'lang/');
      define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
      define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
      define('DIR_FS_INC', DIR_FS_CATALOG . 'inc/');
      define('DIR_WS_FILEMANAGER', DIR_WS_MODULES . 'fckeditor/editor/filemanager/browser/default/');

      // define our database connection
      define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
      define('DB_SERVER_USERNAME', 'root');
      define('DB_SERVER_PASSWORD', 'root');
      define('DB_DATABASE', 'modified-shop');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
      define('DB_SERVER_CHARSET', 'latin1'); // set db charset utf8 or latin1
    ?>

    Matt

    • Experte
    • Beiträge: 4.241
    Re: InternalServer Error 500 nach SSL Einrichtung
    Antwort #3 am: 30. Oktober 2014, 10:51:16
    Ich hoffe mal die Passwörter sind nicht die echten.

    error_reporting anschalten, Fehler beheben oder hier posten. Alles andere ist Nebelstocherei.

    Guenter59

    • Viel Schreiber
    • Beiträge: 1.485
    Re: InternalServer Error 500 nach SSL Einrichtung
    Antwort #4 am: 30. Oktober 2014, 11:02:31
    Hi OYOONY
    /includes/configure.php
     define('ENABLE_SSL', false); muß auf true also : define('ENABLE_SSL', true);

     /admin/includes/configure.php
     define('ENABLE_SSL_CATALOG', false); muß ebenfalls auf true

    Ich habe aber fast den Eindruck als wenn das nicht alles ist, weil die Seite auch mit http nicht funktioniert.

    Ausserdem wie Matt schreibt : error_reporting anschalten
    Dazu im Ordner "export" die Datei " _error_reporting.admin " in "_error_reporting.all " umbenennen
    und hoffentlich sind das nicht die echten Passwörter.
    Ich hatte extra geschrieben " Poste mal die ersten Zeilen ( 4 )der defines aus "

    Gruß
    GMS

    OYOONY

    • Neu im Forum
    • Beiträge: 15
    Re: InternalServer Error 500 nach SSL Einrichtung
    Antwort #5 am: 30. Oktober 2014, 15:47:46
    Hallo Günter,

    werde ich machen und ausprobieren.
    Dazu komme ich aber heute nicht mehr.
    Ich werde mich morgen deswegen nochmal bei dir melden.

    Gruss OYO

    OYOONY

    • Neu im Forum
    • Beiträge: 15
    Re: InternalServer Error 500 nach SSL Einrichtung
    Antwort #6 am: 03. November 2014, 13:44:29
    Problem behoben und funktioniert nun alles.

    Jetzt muss ich den Shop nur noch dazu bewegen, beim Seitenaufruf sofort auf HTTPS zu gehen ohne die Standard URL zu verwenden.

    Dann klappt alles so wie ich es will...
    Es war wie vermutet an der PHP Version gelegen.

    Gruß OYO

    Matt

    • Experte
    • Beiträge: 4.241
    Re: InternalServer Error 500 nach SSL Einrichtung
    Antwort #7 am: 03. November 2014, 13:49:36

    OYOONY

    • Neu im Forum
    • Beiträge: 15
    Re: InternalServer Error 500 nach SSL Einrichtung
    Antwort #8 am: 03. November 2014, 13:54:47
    Danke Matt,
    aber läuft bei mir schon direkt.
    Also nun alles im grünen bereich, so wie es sein sollte ;-)

    Gruß OYO

    OYOONY

    • Neu im Forum
    • Beiträge: 15
    Re: InternalServer Error 500 nach SSL Einrichtung
    Antwort #9 am: 03. November 2014, 14:08:37
    Was er aber blödsinnigerweise nicht mach, ist das er die URLS nicht wirklich richtig macht.

    Klickt man auf einen Link wie eine Kategorie dann macht er folgendes:

    https://takeandplay.netindex.php/?cPath=34

    statt

    https://takeandplay.net/index.php/?cPath=34

    Gruß Andre

    Bonsai

    • Viel Schreiber
    • Beiträge: 4.147
    • Geschlecht:
    Re: InternalServer Error 500 nach SSL Einrichtung
    Antwort #10 am: 03. November 2014, 14:38:21
    includes/configure.php fehlt ein / irgendwo in dem Bereich Zeilen ca. 26 bis ca. 44:
    Code: PHP  [Auswählen]
      define('DIR_WS_CATALOG', '/'); // absolute path required
      define('DIR_FS_DOCUMENT_ROOT', '/homepages/38/xxx/htdocs/modifiedshop/');
      define('DIR_FS_CATALOG', '/homepages/38/xxx/htdocs/modifiedshop/');
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_ORIGINAL_IMAGES', DIR_WS_IMAGES .'product_images/original_images/');
      define('DIR_WS_THUMBNAIL_IMAGES', DIR_WS_IMAGES .'product_images/thumbnail_images/');
      define('DIR_WS_INFO_IMAGES', DIR_WS_IMAGES .'product_images/info_images/');
      define('DIR_WS_POPUP_IMAGES', DIR_WS_IMAGES .'product_images/popup_images/');
      define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
      define('DIR_WS_INCLUDES',DIR_FS_DOCUMENT_ROOT. '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_FS_CATALOG . 'lang/');

      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
      define('DIR_FS_INC', DIR_FS_CATALOG . 'inc/');
     

    oder in einer Rewrite rule in der .htaccess
    Werbung / Banner buchen