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: Installation von www.domain.tld zu IP Umzug

    kira12

    • Frisch an Board
    • Beiträge: 52
    • Geschlecht:
    Installation von www.domain.tld zu IP Umzug
    am: 07. Februar 2021, 18:20:21
    Hallo Leute,

    ich möchte eine Kopie meines Shop von einer Domain lokal betreiben. Ich habe alles kopiert und importiert aber die .htaccess macht mir einen Strich druch die Rechnung.
    der Aufruf http://192.168.1.13/Stempel/blabla:::2_437.html bringt einen 404. Das logfile sagt dazu:
    File does not exist: /var/www/Stempel, referer: http://192.168.1.13/

    welcher Eintrag aus der .htaccess leitet die Umfrage um? Mein Wissen um .htaccess ist leider nicht allzu gut.

    Gruß ré

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

    awids

    • Experte
    • Beiträge: 3.785
    • Geschlecht:
    Re: Installation von www.domain.tld zu IP Umzug
    Antwort #1 am: 07. Februar 2021, 19:08:57
    Scheinbar hast du die configure.php nicht vollständig angepasst. /var/www/... ist ein Serverpfad und kein Lokaler. Also musst du die 1. Zeile in der configure.php entsprechend anpassen. (Oder über den Installer die configure.php neu schreiben lassen.)

    kira12

    • Frisch an Board
    • Beiträge: 52
    • Geschlecht:
    Re: Installation von www.domain.tld zu IP Umzug
    Antwort #2 am: 07. Februar 2021, 20:08:54
    Hallo,

    ich habe die configure.php erstellen lassen beim installieren auf dem lokalem Rechner, Die Zeilen beider configure.pgp lauten:
    define('HTTP_SERVER', 'http://192.168.1.13');Ich habe da eher die htaccess im Verdacht da dort ja z.B. von nicht-www auf www weitergeleitet wird.

    Gruß ré

    awids

    • Experte
    • Beiträge: 3.785
    • Geschlecht:
    Re: Installation von www.domain.tld zu IP Umzug
    Antwort #3 am: 07. Februar 2021, 20:28:22
    Ich meinte diese Zeilen:

    Code: PHP  [Auswählen]
      // global defines
      define('DIR_FS_DOCUMENT_ROOT', 'C:/xampp/htdocs/modified/'); // absolut path required
      define('DIR_WS_CATALOG', '/modified/'); // relative path required
      define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT);

    Wenn die configure.php über den Installer erstellt wurde, sollten die Pfadangaben ja stimmen. Dann verstehe ich aber nicht, warum in deiner Fehlermeldung von /var/www/... die Rede ist.

    Bitte poste hier die von mir genannten Zeilen deiner configure.php sowie die komplette .htaccess in Codetags.

    Hast du auch alle Caches inkl. Template-Cache gelöscht?

    Karl1

    • Experte
    • Beiträge: 1.805
    Re: Installation von www.domain.tld zu IP Umzug
    Antwort #4 am: 08. Februar 2021, 11:12:54
    Hallo kira12,
    mit welchem lokalen Server arbeitest du denn - Windows oder Linux?
    Kannst du die Startseite, also in deinem Fall "http://192.168.1.13", aufrufen?

    Ich arbeite mit einem XAMPP auf einem Windows-Rechner, da gibt es Probleme mit dem SEO_SEPARATOR ":", den muss man umstellen auf "-".
    Du solltest auch im Adminbereich die suchmaschinenfreundlichen URLs, Cache und Komprimierung ausschalten, das erleichtert dir die Fehlersuche.

    Gruß Karl

    kira12

    • Frisch an Board
    • Beiträge: 52
    • Geschlecht:
    Re: Installation von www.domain.tld zu IP Umzug
    Antwort #5 am: 09. Februar 2021, 19:25:52
    Hallo Leute,

    ich hatte erst mal mein sql abgeschossen, da musste ich noch die Fehler suchen. Es waren mal wieder die Ordner Rechte da ich den falschen Ordner geändert hatte.
    Ich arbeite zu 90% mit UNIX, nur wenige Server wie aktuell noch immer meine Webserver laufen unter Linux, aber das ist mir zu anstrengend und zu kompliziert. Aber das ist eine andere Geschichte. Die aktuellen Installationen zum testen laufen unter Proxmox und sind Debian.
    Die Startseite lässt sich aufrufen und der Adminbereich funktioniert auch, nur die Artikel im Shop bringen einen 404 Error

    hier die configure.php ohne passwd

    <?php
    /* --------------------------------------------------------------

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

       Copyright (c) 2009 - 2012 modified eCommerce Shopsoftware
       Released under the GNU General Public License (Version 2)
       [http://www.gnu.org/licenses/gpl-2.0.html]
      --------------------------------------------------------------
      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://192.168.1.13'); // eg, http://localhost or - https://localhost should not be empty for productive servers
      
    define('HTTP_CATALOG_SERVER''http://192.168.1.13');
      
    define('HTTPS_CATALOG_SERVER''https://192.168.1.13');
      
    define('ENABLE_SSL_CATALOG''false'); // secure webserver for catalog module
      
    define('USE_SSL_PROXY'false); // using SSL proxy?
      
    define('DIR_FS_DOCUMENT_ROOT''/var/www/'); // where the pages are located on the server
      
    define('DIR_WS_ADMIN''/admin/'); // absolute path required
      
    define('DIR_FS_ADMIN''/var/www/admin/'); // absolute pate required
      
    define('DIR_WS_CATALOG''/'); // absolute path required
      
    define('DIR_FS_CATALOG''/var/www/'); // 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''bla_user_bla');
      
    define('DB_SERVER_PASSWORD''bla_passwd_bla');
      
    define('DB_DATABASE''bla_db_bla');
      
    define('USE_PCONNECT''false'); // use persisstent connections?
      
    define('STORE_SESSIONS''mysql'); // leave empty '' for default handler or set to 'mysql'

    und die .htaccess
    ##-- $Id: .htaccess 3209 2012-07-12 11:51:11Z gtb-modified $

    ##-- Default charset
    AddDefaultCharset UTF-8
    #AddDefaultCharset ISO-8859-15

    ##-- Disable the server signature
    ServerSignature Off


    order allow,deny
    allow from all


    ##-- Turn off ETags in HTTP-header (use both directives)
    <IfModule mod_headers.c>
      Header unset ETag
    </IfModule>
    FileETag None

    ##-- When caching of gzipped JS and CSS files is used, enable this setting
    #<IfModule mod_headers.c>
    #  Header set Vary Accept-Encoding
    #</IfModule>

    ##-- when using Provider 1&1 set the following lines to activate PHP5
    #AddType x-mapp-php5 .php
    #AddHandler x-mapp-php5 .php

    # Disable directory browsing (disabled by default as this causes problems on some servers)
    #Options All -Indexes

    ##-- Enable the compression for any type of content
    #<IfModule mod_deflate.c>
    #  <FilesMatch "\\.(js|css|html|htm|php|xml|jpg|jpeg|png|gif)$">
    #    SetOutputFilter DEFLATE
    #  </FilesMatch>
    #</IfModule>

    ##-- Customization of HTTP request and response headers
    <IfModule mod_headers.c>
      <FilesMatch "\\.(ico|jpe?g|png|gif|swf|flv)$">
        Header set Cache-Control "max-age=2592000, public"
      </FilesMatch>
      <FilesMatch "\\.(css)$">
        Header set Cache-Control "max-age=604800, public"
      </FilesMatch>
      <FilesMatch "\\.(js)$">
        Header set Cache-Control "max-age=216000, private"
      </FilesMatch>
      <FilesMatch "\\.(xml|txt)$">
        Header set Cache-Control "max-age=216000, public, must-revalidate"
      </FilesMatch>
      <FilesMatch "\\.(html|htm|php)$">
        Header set Cache-Control "max-age=1, private, must-revalidate"
      </FilesMatch>
    </IfModule>

    ##-- Generation of Expires and Cache-Control HTTP headers
    <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresDefault "access plus 1 seconds"
      ExpiresByType image/gif "access plus 2592000 seconds"
      ExpiresByType image/jpeg "access plus 2592000 seconds"
      ExpiresByType image/png "access plus 2592000 seconds"
      ExpiresByType text/html "access plus 1 seconds"
      ExpiresByType text/css "access plus 604800 seconds"
      ExpiresByType text/javascript "access plus 216000 seconds"
      ExpiresByType application/x-javascript "access plus 216000 seconds"
    </IfModule>

    ##-- Configure php_flags if necessary
    ##-- BEGIN - use IfModule clause if PHP runs in CGI mode, otherwise just uncomment the lines with php_flag...
    #<IfModule mod_php.c>

      ##-- Warn when arguments are passed by reference at function call time (from PHP5 allow_call_time_pass_reference is deprecated)
      #php_flag allow_call_time_pass_reference on

      ##-- Disable transparent sid support PHP-default is off (XTC Session only on first visit)
      #php_flag session.use_trans_sid off

      ##-- set suhosin flags because of errors with attributes (for webhosters with suhosin hardening patch enabled)
      #php_value suhosin.post.max_array_depth 0
      #php_value suhosin.post.max_array_index_length 0
      #php_value suhosin.post.max_vars 0
      #php_value suhosin.request.max_array_depth 0
      #php_value suhosin.request.max_array_index_length 0
      #php_value suhosin.request.max_vars 0

      ##-- set suhosin flags to have unencrypted session data, affecting "whos_online" & "shopping cart" (for webhosters with suhosin hardening patch enabled)patch enabled
      #php_value suhosin.session.encrypt Off
      #php_value suhosin.session.cryptkey ''

    ##-- END - use IfModule clause if PHP runs in CGI mode, otherwise just uncomment the lines with php_flag...
    #</IfModule>

    ##-- Redirect error pages to Sitemap
    ##-- set the correct Path to ErrorDocument
    ErrorDocument 400 /sitemap.html?error=400
    ErrorDocument 401 /sitemap.html?error=401
    ErrorDocument 402 /sitemap.html?error=402
    ErrorDocument 403 /sitemap.html?error=403
    ErrorDocument 404 /sitemap.html?error=404
    ErrorDocument 500 /sitemap.html?error=500

    ##-----------------------------------------
    ##- SEO Shopstat Modul (Hartmut Koenig)
    ##-----------------------------------------
    <IfModule mod_rewrite.c>
      ##-- Initialize and enable rewrite engine
      ##-- Documentation http://httpd.apache.org/docs/misc/rewriteguide.html
      RewriteEngine On

      ##-- EXAMPLE: If your shop is located at "http://www.yourdomain.com/shop",
      ##-- set the following line like e.g.: RewriteBase /shop/
      RewriteBase /

      ##-- Use canonical URLs
      ##-- redirect to www-domain, when www is missing and no subdomain given and not using an ssl-proxy
      ##-- HostEurope
      #RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl\.webpack\.de$ [NC]
      ##-- 1und1
      #RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl\.kundenserver\.de$ [NC]
      ##-- domainFACTORY
      #RewriteCond %{HTTP:X-Forwarded-Server}   !^sslsites\.de$ [NC]
      ##-- All-Inkl
      #RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl-account\.com$ [NC]
      ##-- Strato
      #RewriteCond %{HTTP:X-Forwarded-Server}   !^www\.ssl-id\.de$ [NC]

      #RewriteCond %{HTTP_HOST}                 !^www\.(.*) [NC]

    #geändert

    #RewriteCond %{HTTP_HOST}                 !^www\. [NC]
      #RewriteCond %{HTTP_HOST}                 !^(.*)\.(.*)\.(.*) [NC]
    RewriteCond %{HTTP_HOST}                 !\.(.*)\. [NC]
      #RewriteCond %{HTTP_HOST}                 !^localhost(.*)$ [NC]
    RewriteCond %{HTTP_HOST}                 !^localhost [NC]
      #RewriteRule ^(.*)                        http://www.%{HTTP_HOST}/$1 [R=301,L]
    RewriteRule ^                            https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
      RewriteCond %{HTTPS} off
      RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

      ##-- Sitemap
      RewriteRule ^sitemap(.*)\.html$ shop_content.php?coID=8 [QSA,L]

      ##----------------------------------------------------------------------------------
      ##-- When working with SEO-Urls you can decide, whether to use a colon ":" or a dash "-" symbol
      ##-- (Windows Servers might have problems with colon as delimiter!)
      ##-- Change the delimiter symbol also in file "/inc/shopstat_functions.inc.php"
      ##----------------------------------------------------------------------------------

      ##-- Use colon delimiter ":" for SEO-URLS (default setting)
      ##-- Categories (:::)
      RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$
      RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ index.php?cPath=$2&page=$3 [QSA,L]
      RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$
      RewriteRule (.*):::([_0-9]+)\.html$ index.php?cPath=$2 [QSA,L]

      ##-- Products (::)
      RewriteRule (.*)::(.+)\.html$ product_info.php?products_id=$2 [QSA,L]

      ##-- Content (:_:)
      RewriteRule (.*):_:([0-9]+)\.html$ shop_content.php?coID=$2 [QSA,L]

      ##-- Manufacturers (:.:)
      RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+):([_0-9]+)\.html$
      RewriteRule (.*):.:([_0-9]+):([_0-9]+)\.html$ index.php?manufacturers_id=$2&page=$3 [QSA,L]
      RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+)\.html$
      RewriteRule (.*):.:([0-9]+)\.html$ index.php?manufacturers_id=$2 [QSA,L]

      ##-- Use dash delimiter "-" for SEO-URLS
      ##-- Categories (---)
      #RewriteCond %{REQUEST_URI} (.*)---([_0-9]+)-([_0-9]+)\.html$
      #RewriteRule (.*)---([_0-9]+)-([_0-9]+)\.html$ index.php?cPath=$2&page=$3 [QSA,L]
      #RewriteCond %{REQUEST_URI} (.*)---([_0-9]+)\.html$
      #RewriteRule (.*)---([_0-9]+)\.html$ index.php?cPath=$2 [QSA,L]

      ##-- Products (--)
      #RewriteRule (.*)--(.+)\.html$ product_info.php?products_id=$2 [QSA,L]

      ##-- Content (-_-)
      #RewriteRule (.*)-_-([0-9]+)\.html$ shop_content.php?coID=$2 [QSA,L]

      ##-- Manufacturers (-.-)
      #RewriteCond %{REQUEST_URI} (.*)-.-([_0-9]+)-([_0-9]+)\.html$
      #RewriteRule (.*)-.-([_0-9]+)-([_0-9]+)\.html$ index.php?manufacturers_id=$2&page=$3 [QSA,L]
      #RewriteCond %{REQUEST_URI} (.*)-.-([_0-9]+)\.html$
      #RewriteRule (.*)-.-([0-9]+)\.html$ index.php?manufacturers_id=$2 [QSA,L]
    </IfModule>

    Gruß ré

    Karl1

    • Experte
    • Beiträge: 1.805
    Re: Installation von www.domain.tld zu IP Umzug
    Antwort #6 am: 10. Februar 2021, 08:46:25
    Hallo ré,
    du hast ja noch eine sehr alte Shopversion.
    Da werden Fehler anzeigt, wenn du ins Verzeichnis /export/ eine leere Datei mit Namen _error_reporting.all legst.
    Das könnte dir für nachher helfen.

    Da die Startseite geht, liegt es vermutlich an den Links zu Unterseiten.
    Schalte erstmal unter „erweiterte Konfiguration“ → „Meta-Tags/Suchmaschinen“ die suchmaschinenfreundlichen URLs aus.

    Dann hast du Einträge in der .htaccess die ich nicht einordnen kann:
    Zeile 11-12 - order allow, deny...
    ab Zeile 133 - #geändert...
    Benenne die .htaccess einfach um in _.htaccess, oder nutze eine Datei aus dem Originaldownloadpaket.

    Gruß Karl

    kira12

    • Frisch an Board
    • Beiträge: 52
    • Geschlecht:
    Re: Installation von www.domain.tld zu IP Umzug
    Antwort #7 am: 10. Februar 2021, 11:19:41
    Hallo Karl,

    die Suchmaschinen freundlichen URLs waren, nun klappts mit den Artikeln. Die Änderungen in der .htaccess habe ich für den Webserver erstellt, da ich einige IPs/Bereich aussperre.

    Gruß ré
    1 Antworten
    2221 Aufrufe
    07. April 2010, 14:58:47 von Tomcraft
    12 Antworten
    6466 Aufrufe
    05. Januar 2014, 12:27:28 von nature-shock
    1 Antworten
    2466 Aufrufe
    28. Oktober 2012, 17:37:41 von Matt
    5 Antworten
    3117 Aufrufe
    06. Mai 2015, 20:21:02 von Matt
               
    anything