Imap in xampp for linux not working

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Imap in xampp for linux not working

Postby maguro » 07. June 2014 16:28

I am using xampp for linux 1.8.3-4 on RHEL 6.4.
I have issue when trying to connect to gmail mailbox using imap.
I have tried to connect the same mailbox with the same credentials using xampp for Windows installed in my PC and it works properly.
I suspect something wrong with imap in xampp for linux.

When I check imap in phpinfo, I found;

IMAP c-Client Version 2007e
SSL Support enabled

I also found "--with-imap=/bitnami/xamppunixinstallerstackDev-linux-x64/src/imap-2007e" in phpinfo. but when I check the directory , it doesnt exist.

Could somebody please help to identify the issue and the way to resolve it.

Thank you
maguro
 
Posts: 3
Joined: 07. June 2014 03:24
Operating System: RHEL 6.4

Re: Imap in xampp for linux not working

Postby Nobbie » 07. June 2014 17:00

maguro wrote:I also found "--with-imap=/bitnami/xamppunixinstallerstackDev-linux-x64/src/imap-2007e" in phpinfo. but when I check the directory , it doesnt exist.


Of course not, this is a compiler option for building PHP runtime module, you dont have sources in the Xampp package.

maguro wrote:Could somebody please help to identify the issue and the way to resolve it.


How? No error message, no error description, no code - nothing. Only "I suspect something wrong with imap in xampp for linux.". Aha.
Nobbie
 
Posts: 8772
Joined: 09. March 2008 13:04

Re: Imap in xampp for linux not working

Postby maguro » 08. June 2014 02:07

Thank you for your reply Nobbie,

I created a test script like below and run it on both Windows and Linux;

<?php
print imap_open("{imap.gmail.com:993/imap/ssl}INBOX", "mylogin", "mypassword");
?>

On Windows it works properly;

c:\>php.exe tryImap.php
Resource id #4

but on Linux it throw error like below;

Warning: imap_open(): Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX in /opt/lampp/htdocs/web/webservices/tryImap.php on line 4
Notice: Unknown: Can't connect to gmail-imap.l.google.com,993: Connection timed out (errflg=1) in Unknown on line 0
Notice: Unknown: Can't connect to gmail-imap.l.google.com,993: Connection timed out (errflg=2) in Unknown on line 0


I believe the info is still not enough. How can I dig further?
maguro
 
Posts: 3
Joined: 07. June 2014 03:24
Operating System: RHEL 6.4

Re: Imap in xampp for linux not working

Postby maguro » 11. June 2014 03:23

Case solved.
The server is behind corporate firewall.
I asked Network guy to open port 993.Now the connection can be established.
maguro
 
Posts: 3
Joined: 07. June 2014 03:24
Operating System: RHEL 6.4


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 5 guests