php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58052 Getting error when piping e-mail from postfix
Submitted: 2008-02-21 11:44 UTC Modified: 2009-03-02 17:37 UTC
From: rjrdavid at gmail dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.2.1 OS: CentOS5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rjrdavid at gmail dot com
New email:
PHP Version: OS:

 

 [2008-02-21 11:44 UTC] rjrdavid at gmail dot com
Description:
------------
I was trying different techniques to pipe e-mail to php from PostFix and I kept getting the following error:

[apc-error] apc_mmap: ftruncate failed: File too large

The e-mail is very small with only a few words in the subject and message body.

Please enlighten me regarding this.

Thanks


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-23 23:40 UTC] shire@php.net
What's your apc.shm_size set to?  I don't see how this would have anything to do with the mail your parsing, and should happen whenever you start php.
 [2008-09-19 08:07 UTC] rjrdavid at gmail dot com
apc.shm_size = 128

Mail Alias set as

emailpipe: "|/path/to/php /path/to/file.php"

Accessing /path/to/file.php through web browser has not problem
 [2009-03-02 15:23 UTC] shire@php.net
If this is still an issue can you please post your APC INI configuration?
 [2009-03-02 15:49 UTC] rjrdavid at gmail dot com
Here is the error when I tried it now:
Command died with status 2: "/usr/bin/php
   /home/sulit/public_html/mail.php". Command output: [Mon Mar  2 14:46:55
   2009] [apc-error] apc_mmap: ftruncate failed: File too large

Here is my APC.ini:
[APC]
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.optimization=1
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1400
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
apc.stat=0
apc.slam_defense=0
 [2009-03-02 16:29 UTC] shire@php.net
Thanks.  Do you have some sort of file system quota's, this is seems like your file system or OS is placing some artificial restrictions on you ?

Can you try commenting out this line:

apc.mmap_file_mask=/tmp/apc.XXXXXX

And/or try setting it to /dev/zero?
 [2009-03-02 17:18 UTC] rjrdavid at gmail dot com
After a year of abandoning my plans, I am now again thinking to pursue what I was thinking last year and add it in our system.

I set it to /dev/zero and it worked.

Thank you very much
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 06:01:30 2024 UTC