Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9181593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:21:12+00:00 2026-06-17T18:21:12+00:00

First a few infos: Debian Squeeze PHP 5.3.3 PHP with mod_cgi I absolutely HAVE

  • 0

First a few infos:

  • Debian Squeeze
  • PHP 5.3.3
  • PHP with mod_cgi
  • I absolutely HAVE to use mail() in this case. For all my other projects I already use SMTP mailing.

I have isolated the problem of a site timeout to the PHP mail() function. This is the only line of code in a test.php file on my server:

<?php mail('rudolf@geardev.de', 'test', 'test');

Which seems to take endless and is then terminated by mod_cgi after 40 seconds. The command

php -r "mail('rudolf@geardev.de', 'test', 'test');"

on the command line sends the email instantly.

Please tell me which log files you want to see, the Apache log is this:

[Thu Jan 17 12:17:00 2013] [warn] [client 178.15.148.43] mod_fcgid: read data timeout in 40 seconds
[Thu Jan 17 12:17:00 2013] [error] [client 178.15.148.43] Premature end of script headers: test.php

I think the problem is that I accidentally ran chmod -R 775 on the root directory a few days ago. I fixed all errors already, besides this one.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:21:14+00:00Added an answer on June 17, 2026 at 6:21 pm

    Most likely you use 2 different php.ini versions. one for cli and one for cgi. Debian have this setup i believe.

    • /etc/php5/cgi/php.ini
    • /etc/php5/cli/php.ini

    Make sure that your cli and cgi versions have the same email configuration and it will work.

    The mail configuration key is:
    [mail function]

    Another possibility is that your web user does’t have access to execute sendmail.

    Also check spool permissions (updated)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all i have to clear few things 1.This is not spam group
I'm new to the Telerik-controls and I have a few questions! First of all,
I have the first few lines of a text file fx.txt with the following
I have a text file with few first few lines not required and then
This is my first time to post my query on stackoverflow. I have created
First of all, I have to thank StackOverflow and all its members for the
I have a few questions concerning Lists, classes and variables in clojure. This may
There are quite a few moving parts to this question, but if you have
I have read a few posts on this but I could not find help
I've spent a few hours on this portion of my code and still have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.