Ergebnis 1 bis 18 von 18

Thema: Problem mit Website nach SMH

  1. #1
    Contao-Nutzer
    Registriert seit
    03.11.2011.
    Beiträge
    104

    Standard Problem mit Website nach SMH

    Hallo,

    haben momentan ein Problem bei der Installation einer Website. Mussten den SMH durchführen und kamen dann auf das Installtool.

    Im Installtool sind dann allerdings einige Fehlermeldungen zu sehen, mit denen wir nicht viel anfangen können:

    Warning: fopen(/www/moebel-hermes.de/core-master/system/tmp/4ae91d7c278d6d4792736cadc00eddb9): failed to open stream: Permission denied in system/modules/core/library/Contao/Files/Ftp.php on line 146
    #0 [internal function]: __error(2, 'fopen(/www/moeb...', '/www/moebel-her...', 146, Array)
    #1 system/modules/core/library/Contao/Files/Ftp.php(146): fopen('/www/moebel-her...', 'wb')
    #2 system/modules/core/library/Contao/File.php(758): Contao\Files\Ftp->fopen('system/tmp/27cf...', 'wb')
    #3 system/modules/core/library/Contao/File.php(428): Contao\File->fputs('write('storeRelativePath()
    #7 contao/install.php(24): Contao\BackendInstall->run()
    #8 {main}

    Warning: fopen(/www/moebel-hermes.de/core-master/system/tmp/025422839603de61a37ed173d47cfd86): failed to open stream: Permission denied in system/modules/core/library/Contao/Config.php on line 247
    #0 [internal function]: __error(2, 'fopen(/www/moeb...', '/www/moebel-her...', 247, Array)
    #1 system/modules/core/library/Contao/Config.php(247): fopen('/www/moebel-her...', 'wb')
    #2 system/modules/core/library/Contao/Config.php(87): Contao\Config->save()
    #3 [internal function]: Contao\Config->__destruct()
    #4 {main}

    Warning: fputs() expects parameter 1 to be resource, boolean given in system/modules/core/library/Contao/Config.php on line 248
    #0 [internal function]: __error(2, 'fputs() expects...', '/www/moebel-her...', 248, Array)
    #1 system/modules/core/library/Contao/Config.php(248): fputs(false, 'save()
    #3 [internal function]: Contao\Config->__destruct()
    #4 {main}

    Warning: fclose() expects parameter 1 to be resource, boolean given in system/modules/core/library/Contao/Config.php on line 249
    #0 [internal function]: __error(2, 'fclose() expect...', '/www/moebel-her...', 249, Array)
    #1 system/modules/core/library/Contao/Config.php(249): fclose(false)
    #2 system/modules/core/library/Contao/Config.php(87): Contao\Config->save()
    #3 [internal function]: Contao\Config->__destruct()
    #4 {main}

    Warning: filesize(): stat failed for /www/moebel-hermes.de/core-master/system/tmp/025422839603de61a37ed173d47cfd86 in system/modules/core/library/Contao/Config.php on line 252
    #0 [internal function]: __error(2, 'filesize(): sta...', '/www/moebel-her...', 252, Array)
    #1 system/modules/core/library/Contao/Config.php(252): filesize('/www/moebel-her...')
    #2 system/modules/core/library/Contao/Config.php(87): Contao\Config->save()
    #3 [internal function]: Contao\Config->__destruct()
    #4 {main}
    Für einige von euch bestimmt schnell erkannt, wo das Problem liegt.

    Kann uns da evtl. jemand weiterhelfen?
    Geändert von jack_typewriter (11.05.2015 um 12:57 Uhr)

  2. #2
    Contao-Urgestein Avatar von Kahmoon
    Registriert seit
    22.06.2009.
    Ort
    München
    Beiträge
    5.280

    Standard

    SHM?

    "Permission denied in system/modules/core/library/Contao/Files/Ftp.php " Auf jeden Fall mal ein Berechtigungsproblem auf das Verzeichnis. Was sagt der Contao Check?

  3. #3
    Contao-Nutzer
    Registriert seit
    03.11.2011.
    Beiträge
    104

    Standard

    Verschrieben, meinte SMH also Safe-Mode-Hack.
    Der Contao-Check sagt

    PHP 5.4.39-0+deb7u2

    You can install Contao 2.x
    You can install Contao 3.x
    You can install Contao 4.x
    File permissions

    The PHP process is not allowed to create files. More information …
    Additional services

    You can use the Live Update. More information …
    You cannot use the Composer package manager. More information …
    You can use the Extension Repository. More information …
    Wir verwenden für die Installation übrigens Contao 3.4.5
    Geändert von jack_typewriter (11.05.2015 um 13:34 Uhr)

  4. #4
    Contao-Nutzer
    Registriert seit
    03.11.2011.
    Beiträge
    104

    Standard

    Es fängt ja schonmal damit an, dass die Seite beim Aufruf des Installtools wie im Anhang aussieht...
    Die css wird gar nicht geladen.
    Angehängte Grafiken Angehängte Grafiken

  5. #5
    Contao-Urgestein Avatar von Kahmoon
    Registriert seit
    22.06.2009.
    Ort
    München
    Beiträge
    5.280

    Standard

    Wurde die Seite denn umgezogen? Stimmt der Pfad? Er kann dort offensichtlich keine CSS laden.

  6. #6
    Contao-Nutzer
    Registriert seit
    03.11.2011.
    Beiträge
    104

    Standard

    Ja, die Seite soll nun auf den Server des Kunden bzw. liegt sie dort bereits mit den Fehlern. Zur Entwicklung lag sie auf unserem Server.

  7. #7
    Wandelndes Contao-Lexikon Avatar von tab
    Registriert seit
    22.10.2013.
    Beiträge
    10.078
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Da müsst ihr euch mal an den Administrator des Kundenservers wenden. Die einfachste Lösung wäre, PHP nicht als Apache-Modul sondern per FastCGI zu verwenden.

  8. #8
    Contao-Nutzer
    Registriert seit
    03.11.2011.
    Beiträge
    104

    Standard

    Sollte der Pfad nicht stimmen, kann ich das anhand der localconfig.php nachvollziehen? Es ist hier momenten kein Pfad gesetzt...

  9. #9
    Contao-Urgestein Avatar von Kahmoon
    Registriert seit
    22.06.2009.
    Ort
    München
    Beiträge
    5.280

    Standard

    prüfe mal die Datei system/config/pathconfig.php

  10. #10
    Contao-Nutzer
    Registriert seit
    03.11.2011.
    Beiträge
    104

    Standard

    Habe nachgeprüft, der Pfad ist korrekt.

  11. #11
    Contao-Nutzer
    Registriert seit
    03.11.2011.
    Beiträge
    104

    Standard

    So, jetzt sind wir soweit, das sämtliche Fehlermeldungen verschwunden sind, das Backend und das Frontend läuft.
    ABER: Jetzt werden die Bilder, css und js nicht eingebunden.

    Es handelt sich übrigens um diese Seite: http://test.moebel-hermes.de

    Hat jemand damit auch schon evtl. Erfahrung gemacht?

  12. #12
    Wandelndes Contao-Lexikon Avatar von tab
    Registriert seit
    22.10.2013.
    Beiträge
    10.078
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Also alle Dateien, die im Filesystem liegen. Normalerweise ein Zeichen, dass Pfade nicht stimmen. Was steht denn drin in der pathconfig.php? Da sollte passend zu deiner URL / Basis-URL eigentlich
    return '';
    stehen.

  13. #13
    Contao-Nutzer
    Registriert seit
    03.11.2011.
    Beiträge
    104

    Standard

    Ja, das steht so drin
    return '';
    sollte daher eigentlich passen...

  14. #14
    Contao-Urgestein Avatar von Kahmoon
    Registriert seit
    22.06.2009.
    Ort
    München
    Beiträge
    5.280

    Standard

    Und was steht in der htaccess bei Rewrite Base?

  15. #15
    Contao-Nutzer
    Registriert seit
    03.11.2011.
    Beiträge
    104

    Standard

    Meinst du damit die htaccess im root?
    ##
    # Contao Open Source CMS
    #
    # Copyright (c) 2005-2015 Leo Feyer
    #
    # @license LGPL-3.0+
    ##

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

    ##
    # Allow access from all domains for webfonts
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_headers.c>
    <FilesMatch "\.(ttf|ttc|otf|eot|woff2?|font\.css)$">
    Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
    </IfModule>

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

    ##
    # Set the proper MIME types
    # @see https://github.com/h5bp/html5-boilerplate
    ##
    <IfModule mod_mime.c>
    AddType application/javascript js jsonp
    AddType application/json json
    AddType audio/ogg oga ogg
    AddType audio/mp4 m4a f4a f4b
    AddType video/ogg ogv
    AddType video/mp4 mp4 m4v f4v f4p
    AddType video/webm webm
    AddType video/x-flv flv
    AddType image/svg+xml svg svgz
    AddEncoding gzip svgz
    AddType application/vnd.ms-fontobject eot
    AddType application/x-font-ttf ttf ttc
    AddType font/opentype otf
    AddType application/x-font-woff woff woff2
    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>
    <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

    ##
    # Productional website
    ##
    ExpiresByType text/cache-manifest "access plus 0 seconds"
    ExpiresByType text/html "access plus 0 seconds"
    ExpiresByType text/xml "access plus 0 seconds"
    ExpiresByType application/xml "access plus 0 seconds"
    ExpiresByType application/json "access plus 0 seconds"
    ExpiresByType application/rss+xml "access plus 1 hour"
    ExpiresByType application/atom+xml "access plus 1 hour"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "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"
    ExpiresByType text/x-component "access plus 1 month"
    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"
    ExpiresByType text/css "access plus 1 year"
    ExpiresByType application/javascript "access plus 1 year"

    ##
    # Disable caching during development
    # @see https://github.com/contao/core/issues/4364
    ##
    #ExpiresByType text/cache-manifest "access"
    #ExpiresByType text/html "access"
    #ExpiresByType text/xml "access"
    #ExpiresByType application/xml "access"
    #ExpiresByType application/json "access"
    #ExpiresByType application/rss+xml "access"
    #ExpiresByType application/atom+xml "access"
    #ExpiresByType image/gif "access"
    #ExpiresByType image/png "access"
    #ExpiresByType image/jpeg "access"
    #ExpiresByType image/x-icon "access"
    #ExpiresByType video/ogg "access"
    #ExpiresByType audio/ogg "access"
    #ExpiresByType video/mp4 "access"
    #ExpiresByType video/webm "access"
    #ExpiresByType text/x-component "access"
    #ExpiresByType application/x-font-ttf "access"
    #ExpiresByType font/opentype "access"
    #ExpiresByType application/x-font-woff "access"
    #ExpiresByType image/svg+xml "access"
    #ExpiresByType application/vnd.ms-fontobject "access"
    #ExpiresByType text/css "access"
    #ExpiresByType application/javascript "access"

    </IfModule>

    ##
    # Header adjustments
    ##
    <IfModule mod_headers.c>

    ##
    # Disable caching during development
    # @see https://github.com/contao/core/issues/4364
    ##
    #Header unset Cache-Control
    #Header append Cache-Control must-revalidate

    ##
    # Do not cache the cron.txt file
    # @see https://github.com/contao/core/issues/5105
    ##
    <FilesMatch "cron\.txt$">
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"
    </FilesMatch>

    ##
    # 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
    #
    # Note: If you are using a case-sensitive file system like HFS+ or ext4, you
    # have to change the <FilesMatch> directive as follows:
    #
    # <FilesMatch "\.(?i:js|css|xml|gz|svgz)$">
    #
    # For more information see: https://github.com/contao/core/issues/4364
    ##
    <FilesMatch "\.(js|css|xml|gz|svgz)$">
    Header append Vary Accept-Encoding
    </FilesMatch>

    </IfModule>

    ##
    # Disable MultiViews if you are having issues with requests returning the wrong
    # page. Requires AllowOverride Options=All,MultiViews to be set here.
    # @see https://github.com/contao/core/issues/3521
    ##
    #Options -MultiViews

    ##
    # 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-3.0.0
    # RewriteBase /path/to/contao
    #
    # Depending on your server, you might have to remove the line entirely.
    ##
    RewriteBase /

    ##
    # Uncomment the following lines to add "www." to the domain:
    #
    # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
    # RewriteRule (.*) http://www.example.com/$1 [R=301,L]
    #
    # Uncomment the following lines to remove "www." from the domain:
    #
    # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
    # RewriteRule (.*) http://example.com/$1 [R=301,L]
    #
    # Make sure to replace "example.com" with your domain name.
    ##

    ##
    # 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 "application/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]

    ##
    # 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 third
    # line to prevent URLs that point to folders from being rewritten (see #4031).
    #
    # RewriteCond %{REQUEST_FILENAME} !-d
    # RewriteRule .* index.php [L]
    #
    # 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} !\.(htm|php|js|css|htc|png|gif|jpe?g|ico|xml|csv|t xt|swf|flv|mp4|webm|ogv|mp3|ogg|oga|eot|otf|tt[cf]|woff2?|svgz?|pdf|gz)$
    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 the empty URL
    # to the front end controller, the second one adds a missing trailing slash.
    ##
    RewriteRule ^[a-z]{2}(\-[A-Z]{2})?/$ index.php [L]
    RewriteRule ^([a-z]{2}(\-[A-Z]{2})?)$ $1/ [R=301,L]

    </IfModule>

  16. #16
    Contao-Urgestein Avatar von Kahmoon
    Registriert seit
    22.06.2009.
    Ort
    München
    Beiträge
    5.280

    Standard

    Ja, hmm das passt eigentlich auch....

    Systemwartung und Cache geleert hast du auch schon...

    Bin bisschen am Ende meines Lateins

  17. #17
    Contao-Nutzer
    Registriert seit
    03.11.2011.
    Beiträge
    104

    Trauriges Gesicht

    ja, habe ich auch schon gemacht, bringt leider auch nix...
    bin genauso mit meinem Latein am Ende

  18. #18
    Contao-Nutzer
    Registriert seit
    03.11.2011.
    Beiträge
    104

    Standard

    Mittlerweile ist die Seite zum Laufen gekommen. Problem war, dass der Server nur per SFTP zugänglich war und nicht über FTP.
    Daraufhin wurden die Rechte des SFTP-Benutzers und des Webservers angepasst und die Seite lief problemlos.
    Jetzt fehlen allerdings seit gestern im Backend die ganzen Icons von Contao. Ist natürlich für die Redakteure problematisch. Habt ihr dafür eine Erklärung?

Aktive Benutzer

Aktive Benutzer

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

Lesezeichen

Lesezeichen

Berechtigungen

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