/usr/local/php-imap/lib/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
/root/imap-2007f/c-client/osdep.c:302: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
the libc-client package is compiled with a low “FD_SETSIZE” limit (I assume 256). when adding imap support to php, compiling against the default libc-client RPMs, this will cause Apache to segfault if Apache has over 256 open file descriptors. All active apache logs count against this limit so its easy to hit on a shared hosting server.
edit src/osdep/unix/os_art.c and src/osdep/unix/os_sv2.c in an editor,
find this:
Code:
#define FD_SETSIZE 256
change it to:
Code:
#define FD_SETSIZE 32768
Error opening mailbox: [CLOSED] IMAP connection broken (server response)
--------------------- Kernel Begin ------------------------
WARNING: Segmentation Faults in these executables
conftest : 1 Time(s)
---------------------- Kernel End -------------------------
I have all commands that Maniak placed in his post on 1-8-2013 and did not received any errors.
But if we want to use it for a 'Process Bounced Emails' it states that the server still does not have the required PHP-IMAP modules installed.
I am quite new in this and running out of options.
Can anybody assist me in checking what I am doing wrong?
Which PHP instance are you calling, what is the exact path?
What happens when you call that path with the "-m" option?
using the 2007f version I get same error--with-imap=/usr/local/php-imap: No such file or directory
--with-imap-ssl=/usr/local/imap-2007f: No such file or directory
trying to do this now and I get this error:
using the 2007f version I get same error
somehow the script is not creating the directories ?
am I missing something?
We want to work with a newsletter system that has a bounce.php cron job (Interspire Email Marketer).
If we want to run it, it gives the error: "IMAP module not found for PHP CLI" (Error Source "Internal")
I suggest you to follow this guide: http://www.directadmin.com/imap.txt
Be careful when adding modules to PHP.
Half way down, you''ll see the error lucky folks running centos 64bit, like me, will see:
"Cannot find imap library (libc-client.a). Please check your c-client installation."