Contao-Camp 2024
Ergebnis 1 bis 2 von 2

Thema: Nginx FastCGI Fehler beim Umzug von Apache

  1. #1
    Contao-Nutzer Avatar von Filip
    Registriert seit
    28.07.2017.
    Beiträge
    113

    Standard Nginx FastCGI Fehler beim Umzug von Apache

    Hallo!

    Ich musste jetzt das erste mal eine mit Contao entwickelte Website auf einem Privaten-Nginx Server installieren. Ich bin nicht so besonders mit Webservern bewandert und bleibe hier bei der Migration an einem Punkt stecken.

    Ich habe die Seite mit SSH->tar verpackt und auf dem Server dann mit SSH->tar wieder entpackt. Meine übliche Routine. Auf dem Server musste ich dann manuell erst mal ein von PHP beschreibbares TMP Verzeichnis in der php.ini definieren. (Der Contao-Manager hat mich dazu aufgefordert)

    Seitdem läuft die Seite überhaupt nicht mehr und in den Logs wird mir folgender Fehler ausgegeben:

    Code:
    [Thu Oct 15 09:05:04.399071 2020] [fcgid:warn] [pid 10436:tid 140623772366592] (104)Connection reset by peer: [client 37.24.80.166:18338] mod_fcgid: error reading data from FastCGI server
    [Thu Oct 15 09:05:04.399118 2020] [core:error] [pid 10436:tid 140623772366592] [client 37.24.80.166:18338] End of script output before headers: contao-manager.phar.php
    [Thu Oct 15 09:05:04.435952 2020] [fcgid:warn] [pid 10436:tid 140623176779520] (104)Connection reset by peer: [client 37.24.80.166:18331] mod_fcgid: error reading data from FastCGI server, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.435994 2020] [core:error] [pid 10436:tid 140623176779520] [client 37.24.80.166:18331] End of script output before headers: contao-manager.phar.php, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.437581 2020] [fcgid:warn] [pid 10435:tid 140623269066496] (104)Connection reset by peer: [client 37.24.80.166:18340] mod_fcgid: error reading data from FastCGI server, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.437652 2020] [core:error] [pid 10435:tid 140623269066496] [client 37.24.80.166:18340] End of script output before headers: contao-manager.phar.php, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.549663 2020] [fcgid:warn] [pid 10576:tid 140623671719680] (104)Connection reset by peer: [client 37.24.80.166:18368] mod_fcgid: error reading data from FastCGI server, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.549710 2020] [core:error] [pid 10576:tid 140623671719680] [client 37.24.80.166:18368] End of script output before headers: contao-manager.phar.php, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.550131 2020] [fcgid:warn] [pid 10435:tid 140623621363456] (104)Connection reset by peer: [client 37.24.80.166:18371] mod_fcgid: error reading data from FastCGI server, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.550162 2020] [core:error] [pid 10435:tid 140623621363456] [client 37.24.80.166:18371] End of script output before headers: contao-manager.phar.php, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.563997 2020] [fcgid:warn] [pid 10435:tid 140623252281088] (104)Connection reset by peer: [client 37.24.80.166:18375] mod_fcgid: error reading data from FastCGI server, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.564061 2020] [core:error] [pid 10435:tid 140623252281088] [client 37.24.80.166:18375] End of script output before headers: contao-manager.phar.php, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.575624 2020] [fcgid:warn] [pid 10436:tid 140623168386816] (104)Connection reset by peer: [client 37.24.80.166:18076] mod_fcgid: error reading data from FastCGI server, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.575669 2020] [core:error] [pid 10436:tid 140623168386816] [client 37.24.80.166:18076] End of script output before headers: contao-manager.phar.php, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.577261 2020] [fcgid:warn] [pid 10435:tid 140623243888384] (104)Connection reset by peer: [client 37.24.80.166:18073] mod_fcgid: error reading data from FastCGI server, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.577313 2020] [core:error] [pid 10435:tid 140623243888384] [client 37.24.80.166:18073] End of script output before headers: contao-manager.phar.php, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.626745 2020] [fcgid:warn] [pid 10436:tid 140623159994112] (104)Connection reset by peer: [client 37.24.80.166:18078] mod_fcgid: error reading data from FastCGI server, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:04.626778 2020] [core:error] [pid 10436:tid 140623159994112] [client 37.24.80.166:18078] End of script output before headers: contao-manager.phar.php, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:05.440312 2020] [fcgid:warn] [pid 10576:tid 140622681839360] (104)Connection reset by peer: [client 37.24.80.166:18366] mod_fcgid: error reading data from FastCGI server, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:05.440361 2020] [core:error] [pid 10576:tid 140622681839360] [client 37.24.80.166:18366] End of script output before headers: contao-manager.phar.php, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:05.441775 2020] [fcgid:warn] [pid 10436:tid 140623193564928] (104)Connection reset by peer: [client 37.24.80.166:18363] mod_fcgid: error reading data from FastCGI server, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:05.441809 2020] [core:error] [pid 10436:tid 140623193564928] [client 37.24.80.166:18363] End of script output before headers: contao-manager.phar.php, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:06.571577 2020] [fcgid:warn] [pid 10435:tid 140623260673792] (104)Connection reset by peer: [client 37.24.80.166:18370] mod_fcgid: error reading data from FastCGI server, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:06.571633 2020] [core:error] [pid 10435:tid 140623260673792] [client 37.24.80.166:18370] End of script output before headers: contao-manager.phar.php, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:07.635417 2020] [fcgid:warn] [pid 10436:tid 140623151601408] (104)Connection reset by peer: [client 37.24.80.166:18080] mod_fcgid: error reading data from FastCGI server, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:07.635465 2020] [core:error] [pid 10436:tid 140623151601408] [client 37.24.80.166:18080] End of script output before headers: contao-manager.phar.php, referer: http://domain.tld/contao-manager.phar.php/
    [Thu Oct 15 09:05:08.933053 2020] [fcgid:warn] [pid 10576:tid 140623890818816] (104)Connection reset by peer: [client 37.24.80.166:18065] mod_fcgid: error reading data from FastCGI server
    [Thu Oct 15 09:05:08.933099 2020] [core:error] [pid 10576:tid 140623890818816] [client 37.24.80.166:18065] End of script output before headers: contao-manager.phar.php

    Das hier ist die config der (zugegebenermaßen teilweise zu hoch eingestellten) php.ini:

    Code:
    [PHP]
    open_basedir = /d0/www/domain.tld/htdocs:/d0/www/domain.tld/tmp:/d0/www/phpmyadmin
    upload_tmp_dir = /d0/www/domain.tld/tmp
    session.save_path = /d0/www/domain.tld/sessions
    
    error_reporting = E_ALL & ~E_DEPRECATED
    
    #max_input_time = 60
    #memory_limit = 128M
    #post_max_size = 8M
    #file_uploads = On
    #upload_max_filesize = 2M
    #max_file_uploads = 20
    memory_limit=10000M
    post_max_size=5000M
    upload_max_filesize=50M
    max_execution_time = 6000
    max_input_time = 6000
    max_input_vars = 50000
    date.timezone = Europe/Berlin
    
    sys_temp_dir = /d0/www/domain.tld/tmp
    Falls jemand eine Idee hat, bin ich für alles offen. Der Webadministrator hat davor noch nicht mit Contao zutun gehabt und ist dementsprechend leider nicht wirklich hilfreich bei der Problemsuche.

    Vielen dank für alle Antworten schon mal im vorhinein.
    Geändert von Filip (22.10.2020 um 15:55 Uhr)

  2. #2
    Contao-Nutzer Avatar von Filip
    Registriert seit
    28.07.2017.
    Beiträge
    113

    Standard

    Nach ein wenig rumbohren ist mir aufgefallen das es sich hier um einen Nginx Server handelt. Gibt es da eine bevorzugte Migration einer Contao Installation von Apache? Kann der Fehler bei der Migration liegen, oder muss ich etwas am Server umkonfigurieren?
    Geändert von xchs (19.10.2020 um 22:03 Uhr) Grund: Für was soll der Full Quote gut sein?

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
  •