Ankündigung

Einklappen
Keine Ankündigung bisher.

[Erledigt] PHP mail() sorgt für Interal Server Error

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • [Erledigt] PHP mail() sorgt für Interal Server Error

    Hallo Leute,

    ich habe heute mal wieder einen neuen Server eingerichtet. Folgendes ist installiert und eingerichtet Debian Squeeze, Apache2 und PHP 5.3.x mit fcgi.

    Sobald ich nun eine Mail versende lädt die Seite sehr lange, die Mail kommt zwar an allerdings gibt der Apache nach ein paar Sekunden den Statuscode 500 (Internal Server Error) zurück.

    Die sendmail Log:
    mail() on [/var/www/xxxx.com/htdocs/includes/class.phpmailer.php:677]: To: -- Headers: Date: Mon, 18 Apr 2011 23:03:14 +0200 Return-Path: info@xxxx.com From: xxxx <info@xxxx.com> Bcc: support@xxxx.com Reply-to: xxxx <info@xxxx.com> Message-ID: <4b1ba066e425b1c0a491298cfa21bf0d@xxxx.com> X-Priority: 3 X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="iso-8859-1"
    der Apache2 Error Log:
    [Mon Apr 18 22:56:59 2011] [warn] [client xxx.xx.xxx.x] mod_fcgid: read data timeout in 40 seconds, referer: http://xxxx.com/admin.php?module=kunden&action=add
    [Mon Apr 18 22:56:59 2011] [error] [client xxx.xx.xxx.x] Premature end of script headers: admin.php, referer: http://xxxx.com/admin.php?module=kunden&action=add
    [Mon Apr 18 23:03:54 2011] [warn] [client xxx.xx.xxx.x] mod_fcgid: read data timeout in 40 seconds, referer: http://xxxx.com/admin.php?module=kunden&action=add
    [Mon Apr 18 23:03:54 2011] [error] [client xxx.xx.xxx.x] Premature end of script headers: admin.php, referer: http://xxxx.com/admin.php?module=kunden&action=add
    Es macht außerdem keinen Unterschied ob ich es direkt über mail() oder über den PHPMailer (SMTP Protokol) versende.

    Die php.ini sieht so aus:
    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    ;SMTP = localhost
    ; http://php.net/smtp-port
    ;smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    ;sendmail_from = me@example.com

    ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
    ; http://php.net/sendmail-path
    sendmail_path = /usr/sbin/sendmail

    ; Force the addition of the specified parameters to be passed as extra parameters
    ; to the sendmail binary. These parameters will always replace the value of
    ; the 5th parameter to mail(), even in safe mode.
    ;mail.force_extra_parameters =

    ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
    mail.add_x_header = On

    ; The path to a log file that will log all mail() calls. Log entries include
    ; the full path of the script, line number, To address and headers.
    mail.log = /var/www/xxxx.com/log/mail.log
    Ich hoffe jemand hat einen guten Tipp, bin um jede Hilfe sehr dankbar!

    Bei Google finde ich nur Hinweise das eventuell das memory_limit bzw. die maximale Scriptlaufzeit zu nieder sein könnte, ist allerdings schon sehr hoch gesetzt, daher das Script nur eine Mail versendet dürfte das wirklich nicht das Problem sein.

    Liebe Grüße
    Alex

  • #2
    EDIT: Hat sich erledigt. War ein Problem in der /etc/hosts, da hat ein Eintrag gefehlt.

    lg Alexander

    Kommentar

    Lädt...
    X