Seite 8 von 9 ErsteErste ... 46789 LetzteLetzte
Ergebnis 281 bis 320 von 356

Thema: Contao-Hosting bei 1&1

  1. #281
    Administrator Avatar von xchs
    Registriert seit
    19.06.2009.
    Beiträge
    14.557
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Okay, dann die ".htaccess" deaktivieren (umbenennen in ".htaccess.default" beispielsweise) und im Contao Hauptverzeichnis eine Datei "phpinfo.php" mit folgendem Inhalt erstellen:
    PHP-Code:
    <?php phpinfo(); ?>
    Wenn Du beim Ausführen dieses Skripts auch einen 500er kriegst, dann müsste man wohl den Fehlereintrag in der "error.log" des Servers genauer kennen, um das Problem identifizieren zu können.
    Contao Community Administrator

    [Unterstützungsmöglichkeiten]

  2. #282
    Contao-Nutzer
    Registriert seit
    02.05.2012.
    Beiträge
    9

    Standard

    Hallo, nochmal vielen Dank für eure Hilfe. Habe die .htaccess mal probehalber gelöscht und die alte komplett unbearbeitete ht.access.default hochgeladen. Damit wird die php.info angezeigt, mit der .htaccess kommt der 500er. Die smh-check.php zeigt (also mit der ht.access.default)
    Safe Mode Hack is enabled and appears to be working.
    . Auch contao-check zeigt alles o.k. an. Die install.php ist dann immer noch eine weisse Seite: http://www.galerie-joy.de/contao/install.php
    http://www.galerie-joy.de/phpinfo.php
    http://www.galerie-joy.de/contao-check.php

    Vielleicht liegt es ja auch irgendwie an dem "1&1 SmartWeb L"-Paket und damit klappt es sowieso nicht?

  3. #283
    Administrator Avatar von xchs
    Registriert seit
    19.06.2009.
    Beiträge
    14.557
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Code:
    Warning: Unterminated comment starting line 1 in /homepages/xxx/htdocs/system/config/langconfig.php on line 1
    
    Fatal error: fatal flex scanner internal error--end of buffer missed in /homepages/xxx/htdocs/system/config/langconfig.php on line 1
    Was steht in der "system/config/langconfig.php"? Hast Du diese Datei editiert? Falls ja, wurde dieses Skript als UTF-8 (ohne BOM) gespeichert? Gleiches gilt für die "localconfig.php".

    Versuch auch mal, diese Datei umzubenennen und anschließend das Contao Installtool erneut aufzurufen. Die "langconfig.php" sollte dann automatisch durch das Installtool neu generiert werden.

    Ach übrigens: Ein Problem gibt es im Contao-Check http://www.galerie-joy.de/contao-check.php?hide=1
    Contao Community Administrator

    [Unterstützungsmöglichkeiten]

  4. #284
    Contao-Nutzer
    Registriert seit
    02.05.2012.
    Beiträge
    9

    Standard

    Juchhu!!!
    Ich habe die localconfig und die langconfig auf dem Server gelöscht und sehe nun erstmalig das wunderhübsche Install-Tool..!!!
    Das wars wohl - endlich gehts weiter, vielen tausend Dank!!!

  5. #285
    Administrator Avatar von xchs
    Registriert seit
    19.06.2009.
    Beiträge
    14.557
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Fein, super.

    Es gibt allerdings noch eine beschädigte Datei, welche Du aktualisieren solltest. Andernfalls könnte es nämlich sein, dass es beim Einrichten des News-Moduls die nächsten Probleme gibt
    Contao Community Administrator

    [Unterstützungsmöglichkeiten]

  6. #286
    Contao-Nutzer
    Registriert seit
    02.05.2012.
    Beiträge
    9

    Standard

    Hallo xchs,

    habe aus einem jungfräulichen contao-Download die ModuleNewsReader.php hochgeladen, jetzt wird sie im contao-check nicht mehr bemängelt. Ansonsten scheint wirklich alles zu funktionieren, vielen Dank nochmal, echt ein Super-Forum hier!

  7. #287
    Contao-Urgestein Avatar von Franko
    Registriert seit
    22.06.2009.
    Beiträge
    1.503
    Partner-ID
    6122

    Standard

    Hallo,
    wir haben einige Contao Umsetzungen auf 1&1 Kunden Paketen laufen.

    Hinsichtlich der Contao 3er Version fehlt bis dato die korrekte PHP Version (5.3) auf den Shared Hosting Angeboten.
    Nachfragen bei diesem Hoster ergaben auch keine eindeutigen Aussagen -
    den sogenannten PHP Dev Modus kann man nicht gebrauchen.

    Hat die Community hier evtl. aktuelle Infos?
    Frank
    Freelancer, Digital Design Enthusiast, Contao Aficionado and Tutorial Junkie @MoinFranko - Carpe diem ...

  8. #288
    Contao-Fan Avatar von Hauge
    Registriert seit
    31.01.2010.
    Beiträge
    643

    Standard Komprimierung via htaccess - contao > 2.10 klappt nicht

    Hallo zusammen,

    ich versuche derzeit die Komprimierung über die htaccess auf einer 1&1 Installation herzustellen.
    Laut google page speed ist keine Komprimierung aktiviert.
    Meine htaccess:
    Code:
    ErrorDocument 404 /seite-nicht-gefunden.html
    ErrorDocument 403 /zugriff-verweigert.html
    FileETag None
    <FilesMatch "\.(tpl|html5|xhtml)$">
      Order allow,deny
      Deny from all
    </FilesMatch>
    <IfModule mod_mime.c>
      AddType text/x-component .htc
    </IfModule>
     <FilesMatch "\.js\.gz$">
    AddType "text/javascript" .gz
      </FilesMatch>
      <FilesMatch "\.css\.gz$">
      AddType "text/css" .gz
     </FilesMatch>
     RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME} \.(js|css)$
    RewriteCond %{REQUEST_FILENAME}.gz -f
    RewriteRule ^(.*)$ $1.gz [QSA,L]
    <IfModule mod_deflate.c>
      <FilesMatch "\.(css|js|xml|html?|php)$">
        SetOutputFilter DEFLATE
      </FilesMatch>
    </IfModule>
    <IfModule mod_headers.c>
     Header unset ETag
      <FilesMatch "\.(js|css|xml|gz)$">
        Header append Vary Accept-Encoding
      </FilesMatch>
    </IfModule>
    <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresByType image/png A2592000
      ExpiresByType image/gif A2592000
      ExpiresByType image/jpg A2592000
      ExpiresByType image/jpeg A2592000
      ExpiresByType text/javascript A2592000
      ExpiresByType application/x-javascript A2592000
      ExpiresByType application/javascript A2592000
      ExpiresByType text/css A2592000
      ExpiresByType image/x-icon A2592000
    </IfModule>
    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_URI} (ftp|https?):|/etc/ [NC,OR]
      RewriteCond %{QUERY_STRING} (ftp|https?):|/etc/ [NC]
      RewriteRule .* - [F,L]
      RewriteCond %{HTTP_HOST} ^domain\.de [NC]
      RewriteRule (.*) http://www.domain.de/$1 [R=301,L]
      AddEncoding gzip .gz
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule .*$ index.php [L]
    </IfModule>
    Da ich wirklich kein htaccess - Kenner bin bitte ich um kurze Hilfe...

    Gruß
    Hauge

  9. #289
    Contao-Nutzer
    Registriert seit
    29.06.2012.
    Beiträge
    6

    Standard install.php wird nicht aufgerufen

    Hallo,
    ich habe gerade versucht eine contao-Installation (Version 2.11.3) von webspace4all zu 1&1 umzuziehen. Die install.php wird nicht angezeigt, sondern es kommt ein fehler 404, obwohl ich pph5 eingestellt habe und die htaccess geändert habe, wie ich es hier im Forum gelesen habe. Nachdem ich stundenlang alles Mögliche ausprobiert habe, weiß ich nicht mehr weiter. Das Forum habe ich auch schon hoch und runter gelesen, aber ich bin Anfänger.
    Die htaccess-Datei lautet jetzt:
    Code:
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
    ##
    # Contao Open Source CMS
    # Copyright (C) 2005-2012 Leo Feyer
    #
    # Formerly known as TYPOlight Open Source CMS.
    #
    # This program is free software: you can redistribute it and/or
    # modify it under the terms of the GNU Lesser General Public
    # License as published by the Free Software Foundation, either
    # version 3 of the License, or (at your option) any later version.
    # 
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    # Lesser General Public License for more details.
    # 
    # You should have received a copy of the GNU Lesser General Public
    # License along with this program. If not, please visit the Free
    # Software Foundation website at <http://www.gnu.org/licenses/>.
    #
    # PHP version 5
    # @copyright  Leo Feyer 2005-2012
    # @author     Leo Feyer <http://www.contao.org>
    # @license    LGPL
    ##
    
    ##
    # Disable ETags
    # @see http://developer.yahoo.com/performance/rules.html#etags
    ##
    FileETag None
    <IfModule mod_headers.c>
      Header unset ETag
    </IfModule>
    
    ##
    # Prevent access to the Contao template files
    ##
    <FilesMatch "\.(tpl|html5|xhtml)$">
      Order allow,deny
      Deny from all
    </FilesMatch>
    
    ##
    # Set the proper MIME types
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_mime.c>
      # JavaScript
      AddType application/javascript              js jsonp
      AddType application/json                    json
      # Audio
      AddType audio/ogg                           oga ogg
      AddType audio/mp4                           m4a f4a f4b
      # Video
      AddType video/ogg                           ogv
      AddType video/mp4                           mp4 m4v f4v f4p 
      AddType video/webm                          webm
      AddType video/x-flv                         flv
      # SVG
      AddType image/svg+xml                       svg svgz
      AddEncoding gzip                            svgz
      # Webfonts
      AddType application/vnd.ms-fontobject       eot
      AddType application/x-font-ttf              ttf ttc
      AddType font/opentype                       otf
      AddType application/x-font-woff             woff
      # Assorted types
      AddType image/x-icon                        ico
      AddType image/webp                          webp
      AddType text/cache-manifest                 appcache manifest
      AddType text/x-component                    htc
      AddType application/xml                     rss atom xml rdf
      AddType application/x-web-app-manifest+json webapp
      AddType text/x-vcard                        vcf
      AddType application/x-shockwave-flash       swf
    </IfModule>
    
    ##
    # Gzip compression
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_deflate.c>
      # Current Apache versions (>= 2.2)
      <IfModule filter_module>
        FilterDeclare   COMPRESS
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/html
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/css
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/plain
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/xml
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/x-component
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/javascript
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/json
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/xml
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/xhtml+xml
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/rss+xml
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/atom+xml
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/vnd.ms-fontobject
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $image/svg+xml
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $image/x-icon
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/x-font-ttf
        FilterProvider  COMPRESS  DEFLATE resp=Content-Type $font/opentype
        FilterChain     COMPRESS
        FilterProtocol  COMPRESS  DEFLATE change=yes;byteranges=no
      </IfModule>
      # Legacy Apache versions
      <IfModule !mod_filter.c>
        AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
        AddOutputFilterByType DEFLATE application/javascript
        AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
        AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
        AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
      </IfModule>
    </IfModule>
    
    ##
    # Expires headers (for better cache control)
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_expires.c>
      ExpiresActive on
      ExpiresByType text/cache-manifest           "access plus 0 seconds"
      ExpiresByType text/html                     "access plus 0 seconds"
      # Data
      ExpiresByType text/xml                      "access plus 0 seconds"
      ExpiresByType application/xml               "access plus 0 seconds"
      ExpiresByType application/json              "access plus 0 seconds"
      # Feed
      ExpiresByType application/rss+xml           "access plus 1 hour"
      ExpiresByType application/atom+xml          "access plus 1 hour"
      # Media: images, video, audio
      ExpiresByType image/gif                     "access plus 1 month"
      ExpiresByType image/png                     "access plus 1 month"
      ExpiresByType image/jpg                     "access plus 1 month"
      ExpiresByType image/jpeg                    "access plus 1 month"
      ExpiresByType image/x-icon                  "access plus 1 month"
      ExpiresByType video/ogg                     "access plus 1 month"
      ExpiresByType audio/ogg                     "access plus 1 month"
      ExpiresByType video/mp4                     "access plus 1 month"
      ExpiresByType video/webm                    "access plus 1 month"
      # HTC files  (css3pie)
      ExpiresByType text/x-component              "access plus 1 month"
      # Webfonts
      ExpiresByType application/x-font-ttf        "access plus 1 month"
      ExpiresByType font/opentype                 "access plus 1 month"
      ExpiresByType application/x-font-woff       "access plus 1 month"
      ExpiresByType image/svg+xml                 "access plus 1 month"
      ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
      # CSS and JavaScript
      ExpiresByType text/css                      "access plus 1 year"
      ExpiresByType application/javascript        "access plus 1 year"
    </IfModule>
    
    ##
    # Add a Vary Accept-Encoding header for the compressed resources. If you
    # modify the file types above, make sure to change them here accordingly.
    # @see http://developer.yahoo.com/performance/rules.html#gzip
    ##
    <IfModule mod_headers.c>
      <FilesMatch "\.(js|css|xml|gz)$">
        Header append Vary Accept-Encoding
      </FilesMatch>
    </IfModule>
    
    ##
    # URL rewriting
    ##
    <IfModule mod_rewrite.c>
      RewriteEngine On
    
      ##
      # Change the RewriteBase if your Contao installation is in a subdirectoy and
      # the rewrite rules are not working properly. Usage examples:
      #
      #   RewriteBase /contao-2.11.0
      #   RewriteBase /path/to/contao
      #
      # Depending on your server, you might have to remove the line entirely. 
      ##
      RewriteBase /
    
      ##
      # Uncomment the following lines and replace "domain.com" with your domain
      # name to redirect requests without "www" to the correct domain. 
      ##
      #RewriteCond %{HTTP_HOST} ^domain\.com [NC]
      #RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    
      ##
      # If you cannot use mod_deflate, uncomment the following lines to load a
      # compressed .gz version of the aggregated Contao JavaScript and CSS files.
      ##
      #AddEncoding gzip .gz
      #<FilesMatch "\.js\.gz$">
      #  AddType "text/javascript" .gz
      #</FilesMatch>
      #<FilesMatch "\.css\.gz$">
      #  AddType "text/css" .gz
      #</FilesMatch>
      #RewriteCond %{HTTP:Accept-encoding} gzip
      #RewriteCond %{REQUEST_FILENAME} \.(js|css)$
      #RewriteCond %{REQUEST_FILENAME}.gz -f
      #RewriteRule ^(.*)$ $1.gz [QSA,L]
    
      ##
      # Do not rewrite requests for static files or folders such as style sheets,
      # images, movies or text documents. Do not add the URL suffix here!
      ##
      <FilesMatch "\.(htm|php|js|css|htc|png|gif|jpe?g|ico|xml|csv|txt|swf|flv|eot|woff|svg|ttf|pdf|gz)$">
        RewriteEngine Off
      </FilesMatch>
    
      ##
      # By default, Contao adds ".html" to the generated URLs to simulate static
      # HTML documents. If you change the URL suffix in the back end settings, make
      # sure to change it here accordingly!
      #
      #   RewriteRule .*\.html$ index.php [L]   # URL suffix .html
      #   RewriteRule .*\.txt$ index.php [L]    # URL suffix .txt
      #   RewriteRule .*\.json$ index.php [L]   # URL suffix .json
      #
      # If you do not want to use an URL suffix at all, you have to add a second
      # line to prevent URLs that point to folders from being rewritten (see #4031).
      #
      #   RewriteCond %{REQUEST_FILENAME} !-d
      #
      # If you are using mod_cache, it is recommended to use the RewriteRule below,
      # which adds the query string to the internal URL:
      # 
      #   RewriteRule (.*\.html)$ index.php/$1 [L]
      #
      # Note that not all environments support mod_rewrite and mod_cache.
      ##
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule .*\.html$ index.php [L]
    
      ##
      # The following rules are required if you want to pass the language as first
      # URL parameter (added in Contao 2.11). The first rule rewrites an empty URL
      # to the front end controller, the second one adds a missing trailing slash.
      ##
      RewriteRule ^[a-z]{2}/$ index.php [L]
      RewriteRule ^([a-z]{2})$ $1/ [R=301,L]
    
    </IfModule>
    Liegt hier irgendwo der Fehler?
    Gruss Tammy
    Geändert von xchs (30.06.2012 um 23:06 Uhr) Grund: Code-Formatierung

  10. #290
    Contao-Urgestein
    Registriert seit
    30.01.2011.
    Ort
    Stuttgart
    Beiträge
    4.138

    Standard

    Hallo Tammy

    die Zeile siht so aus:
    PHP-Code:
    AddType application/x-httpd-php53 .php 
    und dann erstmal mit contao-check die Installation testen...

    LG

  11. #291
    Contao-Nutzer
    Registriert seit
    29.06.2012.
    Beiträge
    6

    Standard

    Danke für den Tipp. Ich habe die ersten beiden Zeilen wieder gelöscht und dafür Deine Zeile eingefügt. Jetzt läßt sich das install-Tool aufrufen. Gruss Tammy
    Geändert von Tammy (03.07.2012 um 08:01 Uhr)

  12. #292
    Contao-Urgestein Avatar von Franko
    Registriert seit
    22.06.2009.
    Beiträge
    1.503
    Partner-ID
    6122

    Standard

    Zitat Zitat von magicsepp Beitrag anzeigen
    Hallo Tammy

    die Zeile siht so aus:
    PHP-Code:
    AddType application/x-httpd-php53 .php 
    und dann erstmal mit contao-check die Installation testen...

    LG
    Hallo,
    ich hatte bis dato ebenfalls immer die von 1und1 empfohlenen Angaben der Form

    PHP-Code:
    ## Provider Settings ##
      
    AddType x-mapp-php5 .php
      AddHandler x
    -mapp-php5 .php 
    gesetzt. Dies lief bisher ohne Probleme.

    Bewirkt die Angabe

    PHP-Code:
    AddType application/x-httpd-php53 .php 
    tatsächlich die Umstellung auf eine php 5.3 Version (Conato 3)? Habe hierzu nichts bei dem Provider gefunden.

    Frank
    Freelancer, Digital Design Enthusiast, Contao Aficionado and Tutorial Junkie @MoinFranko - Carpe diem ...

  13. #293
    Contao-Fan
    Registriert seit
    12.04.2011.
    Ort
    Hamburg
    Beiträge
    506

    Standard Subdomain bei 1und1 -> statt index.php (Startseite) wird Seite nicht gefunden

    Moin,

    habe mir hier allerlei zu 1und1 durchgelesen und hoffentlich nicht übersehen, dass das bereits irgendwo behandelt wurde.

    Ich habe ein Problem mit meine Contao 2.11.4-Installation bei 1und1. Für die Installation habe ich eine Subdomain angelegt, die direkt auf das Verzeichnis mit der Contao-Installation zeigt. Installation und auch erste Konfiguration/Einrichtung von Seiten lief bisher ohne Probleme. Wenn ich nun aber mit "meine.subdomain.de" die Website aufrufen will, bekomme ich eine Fehlerseite "Seite nicht gefunden" von 1und1 zurück.
    Wenn ich die Seite mit "meine.subdomain.de/index.php" aufrufe, erscheint die gewünschte Startseite der Website.
    Wenn ich die Seite mit "meine.subdomain.de/index.html" aufrufe, kommt eine Meldung 300 (Multiple Choices)

    "The document name you requested (/index.html) could not be found on this server. However, we found documents with names similar to the one you requested.
    Available documents:/index.php (common basename)."

    Ich verstehe das nicht - denn unter normalen Domains, also nicht Subdomains, greift sich 1und1 automatisch das, was gerade da ist - eine index, egal ob php oder html, und sicher ist die Priorität irgendwo geregelt.

    Irgendjemand eine Idee, wie/wo man da was einstellt, damit das funktioniert? ;-)

    Danke!
    pipkin

    EDIT:
    Es hat sich von selbst gelöst: es war nur ein sehr hartnäckiges Cache-Problem!
    Gott wie peinlich ...
    Geändert von pipkin (10.07.2012 um 17:34 Uhr)

  14. #294
    Gesperrt
    Registriert seit
    09.07.2012.
    Beiträge
    8

    Standard

    Hallo,

    ich habe schon lange mein Webspace bei 1&1 und bin damit auch sehr zufrieden. Bis jetzt hatte ich nie Probleme, auch nicht mit dem Contao System. Sie bieten auch relativ günstige Preise an und der Service ist auch Okay, ihr könnt also nichts falsch machen.

    Admin: SCSA1 bitte ignorieren, war ein Spammer

  15. #295
    Contao-Fan Avatar von Hauge
    Registriert seit
    31.01.2010.
    Beiträge
    643

    Standard

    @SCSA1
    Meine Erfahrungen sind da ein bisschen anders:
    -Komprimierung funktioniert nicht (oder zumindest nur bedingt - habe zumindest den Trick noch nicht raus)
    -ohne htaccess Anpassung läuft es definitiv nicht
    -bei größeren Projekten hat man ständig Arbeitsspeicherprobleme auch mit den neuen "besseren" Paketen
    -Projekte die eine starke Serverperformance benötigen laufen sporadisch nur mit eingeschränkter Geschwindigkeit

    und da könnte man noch vieles aufzählen...

    Gruß
    Hauge

  16. #296
    Contao-Urgestein Avatar von KATgirl
    Registriert seit
    31.03.2010.
    Ort
    Marburg
    Beiträge
    1.579
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard Contao 3.X auf 1und1 Webhostings

    So ich habe es auch gerade mal versucht, so Wie es aussieht bietet 1und1 kein PHP 5.3 an dafür aber PHP 5.4 um so besser ;-)

    Also bitte folgendes in die .htaccess eintragen und man hat PHP 5.4 aktiviert.

    Code:
    ##
    # 1und1 Umstellung auf PHP5.4
    ##
    AddType x-mapp-php6 .php
    AddHandler x-mapp-php6 .php
    Gruß Kirsten

    P.S. damit klappts dann auch mit Contao 3.0
    - GitHub
    - Kontaktanfragen

    "Ein Lächeln ist die kürzeste Entfernung zwischen zwei Menschen." Victor Borge

  17. #297
    Contao-Nutzer
    Registriert seit
    16.08.2012.
    Beiträge
    9

    Frage Contao 2.10.4 zeigt BE, doch kein FE. HTTP Fehler 404

    Hallo zusammen,
    bin neu mit Contao.

    Kurzinfo:
    Meine bisherigen Websites sind noch reine "statische" HTML-Seiten und liegen als solche auf dem Webspace.
    Habe schon etliche Jahre das Homepage Bussines Paket bei 1und1.
    Die Websites sollen nun nach und nach auf Contao laufen/umgestell werden, und ich versuche nun schon seit zwei Wochen eine der Websites über Contao zum laufen zu bringen (in einer Subdomain). Contao mit der Website ist hochgeladen, der Ordner ist als Subdomain erreichbar. nach dem Installtool ist alles i.O., also mit grünem Hacken. Die Site hat mir ein Bekannter erstellt und bei ihm, auf seinem Linux-Rechner läuft sie auch. SQL-Datenbank zeigt die Füllung/Daten als vorhanden an, doch bei jedem Versuch diese Website zu starten kommt immer der 404-Fehler.

    Hab alle Tipps von Nina zu Contao und 1und1 befolgt (außer den SMH, den es offenbar nicht mehr braucht), doch wird meine Website nicht angezeigt.
    (In der .htaccess stehen über den Einträgen der ursprünglichen .htaccess.default die beiden Zeilen, wie von Nina empfohlen.
    In der contao-check.php ist alles grün, und SOAP-Extension ist auf on. Alle Dateien sind auf CHMOD 644, und die Ordner auf 755.
    Wie im Titel geschrieben, komme ich ins Backend, jedoch nicht ins Frontend (404).
    Im Backend werden keine Themes und keine Seitenstruktur angezeigt.

    Allerdings weiß ich nicht, ob soap schon installiert ist, und wenn nicht, wie ich soap herbekomme/installiere?
    Und ob das der Fehler sein kann.

    Danke schon mal für euere Tipps und Hilfen.

    LG,

    ansap

  18. #298
    Contao-Urgestein
    Registriert seit
    30.01.2011.
    Ort
    Stuttgart
    Beiträge
    4.138

    Standard

    dann kann es eigentlich nur noch an der .htaccess (rewrite rules) der Einstellung "Relativer Pfad zum Contao-Verzeichnis" liegen...
    die Datenbankverbindung ist okay?

  19. #299
    Contao-Nutzer
    Registriert seit
    16.08.2012.
    Beiträge
    9

    Standard .htaccess

    Hallo magicsepp, danke für deine schnelle Antwort.
    Zitat Zitat von magicsepp Beitrag anzeigen
    dann kann es eigentlich nur noch an der .htaccess (rewrite rules) ...
    Hab meine .htaccess angehängt. Nach meiner Meinung ist die so, wie von Nina am Anfang dieses Threates empfohlen. Die Rewrite Rules sagen mir nichts.?

    Zitat Zitat von magicsepp Beitrag anzeigen
    ... der Einstellung "Relativer Pfad zum Contao-Verzeichnis" liegen...
    Mein Contao ist direkt in einer Subdomain. D.H. alles was in dem Contaoverzeichnis war habe ich in einen Ordner auf meinem Webspace kopiert, diesen Ordner als Subdomain "registriert". So ist das install-Tool dort zugänglich: http://contao.domain.de/contao/install.php.
    Wo und wie der relative Pfad dann eingetragen sein muss?!?

    Zitat Zitat von magicsepp Beitrag anzeigen
    die Datenbankverbindung ist okay?
    Laut install-Tool ja. Wie sehe ich das sonst noch?

    Meine .htaccess konnte ich nicht als Dateianhang mitschicken:
    Code:
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
    ##
    # Contao Open Source CMS
    # Copyright (C) 2005-2011 Leo Feyer
    #
    # Formerly known as TYPOlight Open Source CMS.
    #
    # This program is free software: you can redistribute it and/or
    # modify it under the terms of the GNU Lesser General Public
    # License as published by the Free Software Foundation, either
    # version 3 of the License, or (at your option) any later version.
    # 
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    # Lesser General Public License for more details.
    # 
    # You should have received a copy of the GNU Lesser General Public
    # License along with this program. If not, please visit the Free
    # Software Foundation website at <http://www.gnu.org/licenses/>.
    #
    # PHP version 5
    # @copyright  Leo Feyer 2005-2011
    # @author     Leo Feyer <http://www.contao.org>
    # @license    LGPL
    ##
    
    ##
    # Disable ETags
    # @see http://developer.yahoo.com/performance/rules.html#etags
    ##
    FileETag None
    
    ##
    # Prevent access to the Contao template files
    ##
    <FilesMatch "\.(tpl|html5|xhtml)$">
      Order allow,deny
      Deny from all
    </FilesMatch>
    
    <IfModule mod_mime.c>
    
      ##
      # Serve the correct content type for .htc files (CSS3 PIE)
      # @see http://css3pie.com/documentation/kno.../#content-type
      ##
      AddType text/x-component .htc
    
    </IfModule>
    
    <IfModule mod_deflate.c>
    
      ##
      # Use mod_deflate to compress JavaScript, CSS, XML, HTML and PHP files.
      # @see http://developer.yahoo.com/performance/rules.html#gzip
      ##
      <FilesMatch "\.(css|js|xml|html?|php)$">
        SetOutputFilter DEFLATE
      </FilesMatch>
    
    </IfModule>
    
    <IfModule mod_headers.c>
    
      ##
      # Disable ETags
      # @see http://developer.yahoo.com/performance/rules.html#etags
      ##
      Header unset ETag
    
      ##
      # Add a Vary Accept-Encoding header for the compressed resources. If you
      # modify the file types above, make sure to change them here accordingly.
      # @see http://developer.yahoo.com/performance/rules.html#gzip
      ##
      <FilesMatch "\.(js|css|xml|gz)$">
        Header append Vary Accept-Encoding
      </FilesMatch>
    
    </IfModule>
    
    <IfModule mod_expires.c>
    
      ##
      # Activate the module
      ##
      ExpiresActive On
    
      ##
      # Specify an expiration 30 days in the future for images, JavaScripts and
      # CSS files. Edit or remove the lines to set up your own expiration logic.
      # @see http://developer.yahoo.com/performan...s.html#expires
      ##
      ExpiresByType image/png A2592000
      ExpiresByType image/gif A2592000
      ExpiresByType image/jpg A2592000
      ExpiresByType image/jpeg A2592000
      ExpiresByType text/javascript A2592000
      ExpiresByType application/x-javascript A2592000
      ExpiresByType application/javascript A2592000
      ExpiresByType text/css A2592000
      ExpiresByType image/x-icon A2592000
    
    </IfModule>
    
    <IfModule mod_rewrite.c>
    
      ##
      # Activate the module
      ##
      RewriteEngine On
    
      ##
      # Set the RewriteBase if your Contao installation is in a subdirectoy and
      # the rewrite rules are not working properly. Usage examples:
      #
      #   RewriteBase /contao-2.9.0
      #   RewriteBase /path/to/contao
      #
      # Uncomment the following line to set the RewriteBase.
      ##
      # Herf** 12.08.2012 Kommentar vor  RewriteBase / entfernt
      RewriteBase /
    
      ##
      # Contao usually does not pass absolute URLs via GET, therefore the
      # following rules block all requests that try to pass a URL or the /etc/
      # directory as parameter (malicious requests).
      ##
      RewriteCond %{REQUEST_URI} (ftp|https?):|/etc/ [NC,OR]
      RewriteCond %{QUERY_STRING} (ftp|https?):|/etc/ [NC]
      RewriteRule .* - [F,L]
    
      ##
      # Uncomment the following lines and replace "domain.com" with your domain
      # name to redirect requests without "www" to the correct domain. 
      ##
      #RewriteCond %{HTTP_HOST} ^domain\.com [NC]
      #RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    
      ##
      # If you cannot use mod_deflate, uncomment the following lines to load a
      # compressed .gz version of the bigger Contao JavaScript and CSS files.
      ##
      #AddEncoding gzip .gz
      #<FilesMatch "\.js\.gz$">
      #  AddType "text/javascript" .gz
      #</FilesMatch>
      #<FilesMatch "\.css\.gz$">
      #  AddType "text/css" .gz
      #</FilesMatch>
      #RewriteCond %{HTTP:Accept-encoding} gzip
      #RewriteCond %{REQUEST_FILENAME} \.(js|css)$
      #RewriteCond %{REQUEST_FILENAME}.gz -f
      #RewriteRule ^(.*)$ $1.gz [QSA,L]
    
      ##
      # Do not rewrite requests for static files or folders such as style sheets,
      # images, movies or text documents.
      ##
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
    
      ##
      # By default, Contao adds ".html" to the generated URLs to simulate static
      # HTML documents. If you change the URL suffix in the back end settings, make
      # sure to change it here accordingly!
      #
      #   RewriteRule .*\.html$ index.php [L]   # URL suffix .html
      #   RewriteRule .* index.php [L]          # No URL suffix
      #   RewriteRule .*\.txt$ index.php [L]    # URL suffix .txt
      #
      # If you are using mod_cache, it is recommended to use the RewriteRule below,
      # which adds the query string to the internal URL:
      # 
      #   RewriteRule (.*\.html)$ index.php/$1 [L]
      #
      # Note that not all environments support mod_rewrite and mod_cache.
      ##
      RewriteRule .*\.html$ index.php [L]
    
    </IfModule>
    Geändert von xchs (18.08.2012 um 18:00 Uhr) Grund: Code-Formatierung

  20. #300
    Contao-Urgestein
    Registriert seit
    30.01.2011.
    Ort
    Stuttgart
    Beiträge
    4.138

    Standard

    checkmal den folgenden Eintrag in der localconfig im Ordner system/config
    $GLOBALS['TL_CONFIG']['websitePath'] = ' ';

  21. #301
    Contao-Nutzer
    Registriert seit
    16.08.2012.
    Beiträge
    9

    Standard

    Zitat Zitat von magicsepp Beitrag anzeigen
    checkmal den folgenden Eintrag in der localconfig im Ordner system/config
    $GLOBALS['TL_CONFIG']['websitePath'] = ' ';
    Genau so, wie bei Dir sieht es bei mir auch aus. Also ...'websitePath'] = ' ';

    soll da irgendwas rein? Vielleicht ein / so wie: ...'websitePath'] = '/';
    Bitte poste mir diese ganze Zeile, wie sie sein soll.

    Muss unter $GLOBALS['TL_CONFIG']['exampleWebsite'] = 1344....
    was anderes als ein zehnstelliger Zahlenwert stehen?


    Eben sehe ich mir die .htaccess nochmal durch, da fällt mein Blick auf eine Änderung, welche mein Bekannter wohl machte:
    ...
    # Uncomment the following line to set the RewriteBase.
    ##
    # Herf** 12.08.2012 Kommentar vor RewriteBase / entfernt
    RewriteBase /
    ...

    Ist das i.O. so?

    Danke schon mal für eure Antworten.

    PS: Wenn ich die .htaccess von meinem vorigen Post entfernen soll (damit das ganze übersichtlicher wird) bitte eine kurze Nachricht, dann schmeiß ich sie raus, weil die ist ewig lange, und die gibt es bestimmt wo anders schon zum nachlesen.
    Geändert von ansap (18.08.2012 um 16:53 Uhr)

  22. #302
    Contao-Urgestein
    Registriert seit
    30.01.2011.
    Ort
    Stuttgart
    Beiträge
    4.138

    Standard

    das passt schon so.... ohne Eintrag

  23. #303
    Contao-Urgestein Avatar von KATgirl
    Registriert seit
    31.03.2010.
    Ort
    Marburg
    Beiträge
    1.579
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Das scheint alles richtig zu sein. Logge dich mal in Contai-Backend ein und schau dir den Startpunkt der Seite an, vermute, das dort eine falsche Url drin steht, dann noch mal den Chache leeren in Contao unter Systemwartung und anschließend versuchen die Seite im Frontend aufzurufen.

    Sollte eigentlich ohne Probleme klappen.
    - GitHub
    - Kontaktanfragen

    "Ein Lächeln ist die kürzeste Entfernung zwischen zwei Menschen." Victor Borge

  24. #304
    Contao-Nutzer
    Registriert seit
    16.08.2012.
    Beiträge
    9

    Standard

    Zitat Zitat von KATgirl Beitrag anzeigen
    ... schau dir den Startpunkt der Seite an ... falsche Url ...
    Ich nehme an, Du meinst im BE unter Einstellungen, dort sowohl unter Globale-Einstellungen, wie auch Backend-Einstellungen. Dort ist überall, wo es etwas von Pfad oder URL heißt (Datei-, Script- und Plugin-URL), nichts eingetragen.
    Es gibt aber in den dort benannten Verzeichnissen sind teilweise Dateien
    (z.B. Datei-URL verweist standardmäßig auf /tl_files/ dort sind eine css und dann noch haufenweise Unterverzeichnisse mit weiteren Dateien.)



    Zitat Zitat von KATgirl Beitrag anzeigen
    ... Chache leeren ... im Frontend aufzurufen.
    Ist wieder der Fehler 404.

  25. #305
    Administrator Avatar von xchs
    Registriert seit
    19.06.2009.
    Beiträge
    14.557
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Zitat Zitat von ansap Beitrag anzeigen
    Ich nehme an, Du meinst im BE unter Einstellungen, dort sowohl unter Globale-Einstellungen, wie auch Backend-Einstellungen. Dort ist überall, wo es etwas von Pfad oder URL heißt (Datei-, Script- und Plugin-URL), nichts eingetragen.
    Gemeint war: "Layout" → "Seitenstruktur" → Seite vom Typ "Startpunkt einer Webseite" editieren (d.i. jene Seite in der ersten Ebene, die alle anderen, regulären Seiten enthält) → Abschnitt "DNS-Einstellungen" → Feld "Domainname"
    Contao Community Administrator

    [Unterstützungsmöglichkeiten]

  26. #306
    Contao-Nutzer
    Registriert seit
    16.08.2012.
    Beiträge
    9

    Standard

    Zitat Zitat von xchs Beitrag anzeigen
    Gemeint war: "Layout" → "Seitenstruktur" → Seite vom Typ "Startpunkt einer Webseite" editieren (d.i. jene Seite in der ersten Ebene, die alle anderen, regulären Seiten enthält) → Abschnitt "DNS-Einstellungen" → Feld "Domainname"
    Danke für Deine erklärende Antwort.
    Doch leider zeigt es mir unter Layout -> Seitenstrucktur nichts an, wie schon in meiner ersten Frage dazu erwähnt (#297).
    Da heißt es nur: Keine Einträge gefunden.

    Nun beim Nachsehen, kam ich nochmals in "Einstellungen", und da sah ich, dass da 13 Erweiterungen zum deaktivieren angeboten werden. Darunter auch nusoap.
    Weißt das, dass das nusoap installiert ist? Wo die HP erstellt wurde, da läuft das wohl, erwähnte dieser Freund.
    Ist vielleicht soap auch am laufen, da mir die contao-check.php meldet, dass SOAP extension on ist?, und "beißt" sich das dann evtl.?

    Nochmals sorry, dass ich euch mit haufenweise Fragen überhäufe, doch ich bin wirklich ein totaler Newbie mit Contao, und der Freund, welcher mir die HP in Contao erstellte, hat keine Idee mehr, was ich da noch tun könnte.

    Danke,

    Andreas

  27. #307
    Administrator Avatar von xchs
    Registriert seit
    19.06.2009.
    Beiträge
    14.557
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Zitat Zitat von ansap Beitrag anzeigen
    Doch leider zeigt es mir unter Layout -> Seitenstrucktur nichts an, wie schon in meiner ersten Frage dazu erwähnt (#297).
    Da heißt es nur: Keine Einträge gefunden.
    Wenn es dort überhaupt keine Einträge gibt, dann hast Du vermutlich den Dump der SQL-Datenbank nicht richtig eingespielt. Dann wäre es auch nicht weiter verwunderlich, dass Du im Frontend die Meldung "404 Not Found" erhälst, denn wenn in der Datenbank keine entsprechenden Datensätze vorhanden sind, kann Contao auch nichts ausgeben.

    Zitat Zitat von ansap Beitrag anzeigen
    Nun beim Nachsehen, kam ich nochmals in "Einstellungen", und da sah ich, dass da 13 Erweiterungen zum deaktivieren angeboten werden. Darunter auch nusoap.
    Weißt das, dass das nusoap installiert ist?
    Ja, das heißt, dass die hier aufgelisteten Erweiterungen installiert sind. Falls das Kontrollkästchen vor dem Erweiterungsnamen ausgewählt ist, ist die betreffende Erweiterung deaktiviert und wird in Contao auch nicht geladen.

    Du könntest versuchen, den SQL-Dump der Datenbank nochmals zu importieren.

    Contao Benutzerhandbuch: Eine Installation umziehen
    Contao Community Administrator

    [Unterstützungsmöglichkeiten]

  28. #308
    Contao-Nutzer
    Registriert seit
    21.08.2009.
    Beiträge
    165

    Standard

    Hallo KATgirl und Franko,

    in Vorbereitung auf Contao 3.x habe ich bei 1&1 hinsichtlich der PHP-Versionen nachgefragt.
    Mein Paket bei 1&1: WebHosting 5.0

    Die Einstellung in der htaccess:
    Code:
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
    Die info.php sagt mir, dass die PHP-Vers. 5.2.17 installiert ist.

    Meine Frage zur Nutzung von PHP-Vers. 5.3.x wurde wie folgt beantwortet:
    Anbei noch einmal zur Überprüfung Ihrer .htaccess, die nötigen Einstellungen:

    PHP-Version 4:
    AddType x-mapp-php4 .php
    AddHandler x-mapp-php4 .php

    PHP-Version 5:
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

    PHP-Version Dev (5.4):
    AddType x-mapp-php6 .php
    AddHandler x-mapp-php6 .php

    Ansonsten bitten wir Sie um ein wenig Geduld, bis die aktuelle Version geupdated wird.

    Einen genauen Zeitpunkt können wir leider nicht nennen.
    Die PHP-Version Dev (5.4) funktioniert nicht und 1&1 übernimmt bei Nutzung keine Garantie.

    Da musste ich natürlich noch einmal nachhaken und bekam folgende Antwort:
    Es tut uns leid, dass wir Ihnen keinen genaue Auskunft wann und ob wir die Version PHP 5.3 anbieten. Gerne Erklären wir Ihnen den Hintergrund.

    Aufgrund des Bugs arbeiten File-Includes bei PHP 5.3 nicht zuverlässig bzw. nicht mit jeder PHP-Anwendung sauber zusammen. Es ist unbekannt, ob das PHP-Team überhaupt diesen Bug zu behebt.
    Solange dieser Fehler nicht behoben ist werden wir PHP 5.3 nicht anbietenm, weil nur Versionen anbieten möchten die komplett in Ordnung sind.
    Fazit:
    1. Stabile Version ist PHP 5.2.17 (veraltet)
    2. Entwickler-Version PHP Dev (5.4) ist nicht zu nutzen
    3. Stabile Version PHP 5.3.x wird vermutlich nicht installiert
    4. Stabile Version PHP 5.4.x könnte irgendwann kommen???

    Alles sehr unbefriedigend. Vor allem die Begründungen scheinen nicht fundiert. So konnte ich auf der PHP-Website nichts von einem Bug im Bereich File-Includes bei der Version 5.3 finden.

    Gruß Peter

  29. #309
    Contao-Urgestein Avatar von KATgirl
    Registriert seit
    31.03.2010.
    Ort
    Marburg
    Beiträge
    1.579
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Hallo Peter, bei mir läuft bereits Contao 3 in verschiedenen Paketen bei 1und1, die Umstellung auf PHP 5.4 klappte in allen Paketen bisher.

    Gruß Kirsten
    - GitHub
    - Kontaktanfragen

    "Ein Lächeln ist die kürzeste Entfernung zwischen zwei Menschen." Victor Borge

  30. #310
    Contao-Nutzer
    Registriert seit
    21.08.2009.
    Beiträge
    165

    Standard

    Hallo Kirsten,

    danke für die Rückmeldung. Ist das Paket WebHosting 5.0 auch bei den 3 verschiedenen Paketen?

    Den Test von PHP 5.4 habe ich mit meiner jetzigen Installation Contao 2.11.4 gemacht. Dabei habe ich lediglich die 2 Zeilen am Beginn meiner htaccess wie von 1&1 vorgegeben geändert. Draufhin bekam ich eine weiße Seite. Muss man da noch mehr machen?

    Gruß Peter

  31. #311
    Contao-Urgestein Avatar von KATgirl
    Registriert seit
    31.03.2010.
    Ort
    Marburg
    Beiträge
    1.579
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Hallo, ne das war nicht dabei, aber das hat ja meißt auch nichts mit dem Paket zu tun, mehr mit dem Server auf dem du das Paket hast. Aber da ist 1und1 ja eher Einsilbig ;-)

    Schau mal nach der Umstellung ins Backend und lösche mal den Chache. Vielleicht das schon. Doof ist, das die Seite weiß ist, das bedeutet, das es einen Skriptfehler gibt, nur leider ist jetzt schwer rauszubekommen wo dieser ist, wenn es nicht der eigene Server ist.
    - GitHub
    - Kontaktanfragen

    "Ein Lächeln ist die kürzeste Entfernung zwischen zwei Menschen." Victor Borge

  32. #312
    Contao-Nutzer
    Registriert seit
    16.08.2012.
    Beiträge
    9

    Daumen hoch

    Zitat Zitat von xchs Beitrag anzeigen
    Wenn es dort überhaupt keine Einträge gibt, dann hast Du vermutlich den Dump der SQL-Datenbank nicht richtig eingespielt.
    ...
    Du könntest versuchen, den SQL-Dump der Datenbank nochmals zu importieren.

    Contao Benutzerhandbuch: Eine Installation umziehen
    Es geht!!!
    Hier nochmals: Vielen Dank an alle, welche mir bei der Lösung dieses Problemes halfen!

    Damit ich es später, falls ich in ähnliche Probleme komme, nachvollziehen kann:
    Meine Frage ab #297.
    Jetzt, nach einigem rumprobieren, und nachdem ich, vor dem Import, im PHP-MyAdmin, komplett alle Daten aus der Datenbank löschte, geht es.

    MySQL hatte mir bei jedem Importversuch vorher, immer wenn es an vorhandene Daten stieß, den Import abgebrochen.
    Es waren wohl Daten da, doch viel zu wenige... und, und, und.

  33. #313
    Contao-Nutzer Avatar von maipe
    Registriert seit
    10.07.2012.
    Ort
    München
    Beiträge
    201

    Standard Contao 2.11.4 und 1&1 SmartWeb L

    ..so 8 Stunden erfolglos versucht eine funktionierende Installation umzuzuziehen - - - contao check hängt sich an den Rechten für die Files (666) auf. Ein Ändern auf 664 der files (ordner auf Ihrem Wert belassen) über Firebug bewrkt das überhaupt nichts mehr geht - forbidden. Tips? Frage in die Runde?
    Geändert von maipe (22.08.2012 um 22:38 Uhr)

  34. #314
    Contao-Fan Avatar von Jens Pielawa
    Registriert seit
    08.01.2010.
    Ort
    9°45'34"E 52°20'12"N
    Beiträge
    531

    Standard Contao 2.11.5 im Unterordner und 1&1-Macken

    Hallo,

    ich habe gerade für einen Kunden bei 1&1 eine aktuelle Contao 2.11.5. installiert. Hier die Voraussetzungen:

    Paket: 1&1 Website 5.0
    Contao Check 2.3 sagt PHP 5.2.17 (und demnach keine Autoinstallation oder Live Update möglich)
    Datenbank unter PHP 5 ist angelegt.
    Contao händisch in einen Unterordner "contao-sundfile" kopiert und nun installiert.
    .htaccess in diesem Ordner sieht aus wie folgt:

    PHP-Code:
    ##
    # Contao Open Source CMS
    # Copyright (C) 2005-2012 Leo Feyer
    #
    # Formerly known as TYPOlight Open Source CMS.
    #
    # This program is free software: you can redistribute it and/or
    # modify it under the terms of the GNU Lesser General Public
    # License as published by the Free Software Foundation, either
    # version 3 of the License, or (at your option) any later version.

    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    # Lesser General Public License for more details.

    # You should have received a copy of the GNU Lesser General Public
    # License along with this program. If not, please visit the Free
    # Software Foundation website at <http://www.gnu.org/licenses/>.
    #
    # PHP version 5
    # @copyright  Leo Feyer 2005-2012
    # @author     Leo Feyer <http://www.contao.org>
    # @license    LGPL
    ##

    AddType x-mapp-php6 .php
    AddHandler x
    -mapp-php6 .php

    ##
    # Disable ETags
    # @see http://developer.yahoo.com/performance/rules.html#etags
    ##
    FileETag None
    <IfModule mod_headers.c>
      
    Header unset ETag
    </IfModule>

    ##
    # Prevent access to the Contao template files
    ##
    <FilesMatch "\.(tpl|html5|xhtml)$">
      
    Order allow,deny
      Deny from all
    </FilesMatch>

    ##
    # Set the proper MIME types
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_mime.c>
      
    # JavaScript
      
    AddType application/javascript              js jsonp
      AddType application
    /json                    json
      
    # Audio
      
    AddType audio/ogg                           oga ogg
      AddType audio
    /mp4                           m4a f4a f4b
      
    # Video
      
    AddType video/ogg                           ogv
      AddType video
    /mp4                           mp4 m4v f4v f4p 
      AddType video
    /webm                          webm
      AddType video
    /x-flv                         flv
      
    # SVG
      
    AddType image/svg+xml                       svg svgz
      AddEncoding gzip                            svgz
      
    # Webfonts
      
    AddType application/vnd.ms-fontobject       eot
      AddType application
    /x-font-ttf              ttf ttc
      AddType font
    /opentype                       otf
      AddType application
    /x-font-woff             woff
      
    # Assorted types
      
    AddType image/x-icon                        ico
      AddType image
    /webp                          webp
      AddType text
    /cache-manifest                 appcache manifest
      AddType text
    /x-component                    htc
      AddType application
    /xml                     rss atom xml rdf
      AddType application
    /x-web-app-manifest+json webapp
      AddType text
    /x-vcard                        vcf
      AddType application
    /x-shockwave-flash       swf
    </IfModule>

    ##
    # Gzip compression
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_deflate.c>
      
    # Current Apache versions (>= 2.2)
      
    <IfModule filter_module>
        
    FilterDeclare   COMPRESS
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $text/html
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $text/css
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $text/plain
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $text/xml
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $text/x-component
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $application/javascript
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $application/json
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $application/xml
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $application/xhtml+xml
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $application/rss+xml
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $application/atom+xml
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $application/vnd.ms-fontobject
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $image/svg+xml
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $image/x-icon
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $application/x-font-ttf
        FilterProvider  COMPRESS  DEFLATE resp
    =Content-Type $font/opentype
        FilterChain     COMPRESS
        FilterProtocol  COMPRESS  DEFLATE change
    =yes;byteranges=no
      
    </IfModule>
      
    # Legacy Apache versions
      
    <IfModule !mod_filter.c>
        
    AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
        AddOutputFilterByType DEFLATE application
    /javascript
        AddOutputFilterByType DEFLATE text
    /xml application/xml text/x-component
        AddOutputFilterByType DEFLATE application
    /xhtml+xml application/rss+xml application/atom+xml
        AddOutputFilterByType DEFLATE image
    /x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
      
    </IfModule>
    </
    IfModule>

    ##
    # Expires headers (for better cache control)
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_expires.c>
      
    ExpiresActive on
      ExpiresByType text
    /cache-manifest           "access plus 0 seconds"
      
    ExpiresByType text/html                     "access plus 0 seconds"
      
    # Data
      
    ExpiresByType text/xml                      "access plus 0 seconds"
      
    ExpiresByType application/xml               "access plus 0 seconds"
      
    ExpiresByType application/json              "access plus 0 seconds"
      
    # Feed
      
    ExpiresByType application/rss+xml           "access plus 1 hour"
      
    ExpiresByType application/atom+xml          "access plus 1 hour"
      
    # Media: images, video, audio
      
    ExpiresByType image/gif                     "access plus 1 month"
      
    ExpiresByType image/png                     "access plus 1 month"
      
    ExpiresByType image/jpg                     "access plus 1 month"
      
    ExpiresByType image/jpeg                    "access plus 1 month"
      
    ExpiresByType image/x-icon                  "access plus 1 month"
      
    ExpiresByType video/ogg                     "access plus 1 month"
      
    ExpiresByType audio/ogg                     "access plus 1 month"
      
    ExpiresByType video/mp4                     "access plus 1 month"
      
    ExpiresByType video/webm                    "access plus 1 month"
      
    # HTC files  (css3pie)
      
    ExpiresByType text/x-component              "access plus 1 month"
      
    # Webfonts
      
    ExpiresByType application/x-font-ttf        "access plus 1 month"
      
    ExpiresByType font/opentype                 "access plus 1 month"
      
    ExpiresByType application/x-font-woff       "access plus 1 month"
      
    ExpiresByType image/svg+xml                 "access plus 1 month"
      
    ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
      
    # CSS and JavaScript
      
    ExpiresByType text/css                      "access plus 1 year"
      
    ExpiresByType application/javascript        "access plus 1 year"
    </IfModule>

    ##
    # Add a Vary Accept-Encoding header for the compressed resources. If you
    # modify the file types above, make sure to change them here accordingly.
    # @see http://developer.yahoo.com/performance/rules.html#gzip
    ##
    <IfModule mod_headers.c>
      <
    FilesMatch "\.(js|css|xml|gz)$">
        
    Header append Vary Accept-Encoding
      
    </FilesMatch>
    </
    IfModule>

    ##
    # URL rewriting
    ##
    <IfModule mod_rewrite.c>
      
    RewriteEngine On

      
    ##
      # Change the RewriteBase if your Contao installation is in a subdirectoy and
      # the rewrite rules are not working properly. Usage examples:
      #
      #   RewriteBase /contao-2.11.0
      #   RewriteBase /path/to/contao
      #
      # Depending on your server, you might have to remove the line entirely. 
      ##
      
    RewriteBase /contao-soundfile/

      
    ##
      # Uncomment the following lines and replace "domain.com" with your domain
      # name to redirect requests without "www" to the correct domain. 
      ##
      #RewriteCond %{HTTP_HOST} ^domain\.com [NC]
      #RewriteRule (.*) http://www.domain.com/$1 [R=301,L]

      ##
      # If you cannot use mod_deflate, uncomment the following lines to load a
      # compressed .gz version of the aggregated Contao JavaScript and CSS files.
      ##
      #AddEncoding gzip .gz
      #<FilesMatch "\.js\.gz$">
      #  AddType "text/javascript" .gz
      #</FilesMatch>
      #<FilesMatch "\.css\.gz$">
      #  AddType "text/css" .gz
      #</FilesMatch>
      #RewriteCond %{HTTP:Accept-encoding} gzip
      #RewriteCond %{REQUEST_FILENAME} \.(js|css)$
      #RewriteCond %{REQUEST_FILENAME}.gz -f
      #RewriteRule ^(.*)$ $1.gz [QSA,L]

      ##
      # Do not rewrite requests for static files or folders such as style sheets,
      # images, movies or text documents. Do not add the URL suffix here!
      ##
      
    <FilesMatch "\.(htm|php|js|css|htc|png|gif|jpe?g|ico|xml|csv|txt|swf|flv|eot|woff|svg|ttf|pdf|gz)$">
        
    RewriteEngine Off
      
    </FilesMatch>

      
    ##
      # By default, Contao adds ".html" to the generated URLs to simulate static
      # HTML documents. If you change the URL suffix in the back end settings, make
      # sure to change it here accordingly!
      #
      #   RewriteRule .*\.html$ index.php [L]   # URL suffix .html
      #   RewriteRule .*\.txt$ index.php [L]    # URL suffix .txt
      #   RewriteRule .*\.json$ index.php [L]   # URL suffix .json
      #
      # If you do not want to use an URL suffix at all, you have to add a second
      # line to prevent URLs that point to folders from being rewritten (see #4031).
      #
      #   RewriteCond %{REQUEST_FILENAME} !-d
      #
      # If you are using mod_cache, it is recommended to use the RewriteRule below,
      # which adds the query string to the internal URL:
      # 
      #   RewriteRule (.*\.html)$ index.php/$1 [L]
      #
      # Note that not all environments support mod_rewrite and mod_cache.
      ##
      
    RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule 
    .*\.htmlindex.php [L]

      
    ##
      # The following rules are required if you want to pass the language as first
      # URL parameter (added in Contao 2.11). The first rule rewrites an empty URL
      # to the front end controller, the second one adds a missing trailing slash.
      ##
      
    RewriteRule ^[a-z]{2}/$ index.php [L]
      
    RewriteRule ^([a-z]{2})$ $1/ [R=301,L]

    </
    IfModule
    In der RewriteBase steht also schon der besagte Unterordner.
    Meine Fragen dazu:
    1. Wo kann man in dem Controlcenter bei 1&1 denn einstellen, dass eine angelegte Domain in diesen Unterordner dirigiert wird? Bei all-inkl.com z. B. kann man das angeben und dann läuft das auch, bei 1&1 scheint es wohl zunächst an diesem Punkt zu hakeln.
    2. Ich kann (deswegen?) die Domain oder das Backend nicht aufrufen und bekomme immer 404. Ich muss (noch) den Unterordner in die URL mitschreiben.
    2. Die Einträge in der .htaccess
    PHP-Code:
    AddType x-mapp-php6 .php
    AddHandler x
    -mapp-php6 .php 
    sollen ja bewirken, dass auf PHP >5.3 upgedatet werden soll (stimmt das so?). Wie aber? Nach dem Install bleibt die Version auf 5.2.17?
    Beste Grüße von

  35. #315
    Contao-Fan Avatar von Jens Pielawa
    Registriert seit
    08.01.2010.
    Ort
    9°45'34"E 52°20'12"N
    Beiträge
    531

    Standard

    Frage 1 konnte ich mir in der Zwischenzeit selbst beantworten. Umständlich zu finden bei 1&1:

    Die Domain im Controlcenter anhaken.
    Aktiviertes Feld "Domain-Typ" aufklappen.
    "Verwendungsart bearbeiten"
    Hier unter "Bestehendes Verzeichnis" den Unterordner, wo Contao liegt, auswählen.
    Beste Grüße von

  36. #316
    Contao-Nutzer
    Registriert seit
    11.02.2011.
    Ort
    Berlin
    Beiträge
    71

    Standard

    Hallo,

    bei unserem Kunden sieht das wie folgt aus:

    Verwendungsart bearbeiten
    Sie können einer Domain ein Heimatverzeichnis und ein Weiterleitungsziel zuweisen.

    Verwendungsart für diese Domain bearbeiten
    Verwendungsart : Webspace
    Aktuelles Verzeichnis : /contao_cms
    Heimatverzeichnis *: Bestehendes Verzeichnis
    Bestehendes Verzeichnis : /contao_cms

  37. #317
    Contao-Nutzer
    Registriert seit
    06.10.2009.
    Beiträge
    99

    Standard

    Zitat Zitat von Jens Pielawa Beitrag anzeigen
    2. Die Einträge in der .htaccess
    PHP-Code:
    AddType x-mapp-php6 .php
    AddHandler x
    -mapp-php6 .php 
    sollen ja bewirken, dass auf PHP >5.3 upgedatet werden soll (stimmt das so?). Wie aber? Nach dem Install bleibt die Version auf 5.2.17?
    Die Einträge in einer htaccess im root eintragen?!

  38. #318
    Contao-Fan
    Registriert seit
    07.01.2011.
    Beiträge
    278

    Standard

    Ich hab im 1und1-Center unter "Globale PHP-Version" auf php-dev gestellt (dann bekommt man 5.4). PHP5 hingegen ist nur 5.2.17. Auf 5.3 kann man leider nicht umstellen (hab selbst schon recherchiert )

  39. #319
    Contao-Fan Avatar von Jens Pielawa
    Registriert seit
    08.01.2010.
    Ort
    9°45'34"E 52°20'12"N
    Beiträge
    531

    Standard

    Ich habe das Ganze für mich jetzt so gelöst, in dem ich eine frische Contao-Installation direkt ins Root gepackt habe. Hier starte ich jetzt neu durch.
    Beste Grüße von

  40. #320
    Contao-Fan
    Registriert seit
    22.06.2009.
    Ort
    Düsseldorf
    Beiträge
    471

    Standard

    Ich habe gerade Contao3 (letzte Github Version) hochgeladen und komme nicht mal zur Installation. Ich rufe den Ordner /contao auf und werde weitergeleitet zu /contao/install.php. Soweit scheint alles in Ordnung.

    Nachtrag: aus irgendeinem Grund hab ich es noch einmal probiert und nun konnte ich reibungslos installieren. Die ganze Aufregung umsonst … geht
    Geändert von wiese (26.10.2012 um 17:52 Uhr)

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 2 (Registrierte Benutzer: 0, Gäste: 2)

Ähnliche Themen

  1. Antworten: 116
    Letzter Beitrag: 31.05.2014, 01:57
  2. TYPOlight-Hosting bei W3W
    Von Nina im Forum Erfahrungen mit Webhostern
    Antworten: 5
    Letzter Beitrag: 14.03.2013, 20:20
  3. TYPOlight Hosting bei ECS-Webhosting [Unix Host]
    Von jt_de im Forum Erfahrungen mit Webhostern
    Antworten: 0
    Letzter Beitrag: 05.02.2010, 21:20
  4. Webconsulting + hosting.gif
    Von gera im Forum Layout / Templates / Holy Grail
    Antworten: 6
    Letzter Beitrag: 20.08.2009, 09:04
  5. Webhoster und Contao - Hostervergleich
    Von Nina im Forum Erfahrungen mit Webhostern
    Antworten: 1
    Letzter Beitrag: 19.06.2009, 10:41

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •