Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
iambic Offline
New Member
 
Posts: 6
Join Date: Sep 2006
Location: Sunnyvale, CA
Angry ERROR: Your PHP is not compiled with IMAP Support -- although it is! - 07-01-2007, 12:54 AM

Hi,

got to the last step of getting our new eSupport installation up and running, and got stuck on a problem with the email parser.

Invoking:

http://www.domain.com/support/cron/index.php?_t=parser

will return the following error:

Code:
ERROR: Your PHP is not compiled with IMAP Support.<BR /> *NIX Users should recompile the PHP with the --with-imap flag and Windows users can simply uncomment the extension='php_imap.dll' line in their php.ini
but my server DOES have imap support installed -- see here:

http://ns6.iambic.com/phpinfo.php

for the full phpinfo.

Any idea what is going on? Using eSupport Suite 3.04.10

Any help would be much appreciated.

Thanks,

- Adriano
   
Reply With Quote
  (#2) Old
keliix06 Offline
New Member
 
Posts: 29
Join Date: May 2005
07-01-2007, 07:48 AM

Any chance it's a 64bit CentOS server? There are known issues with PHP IMAP in that environment.
   
Reply With Quote
  (#3) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,682
Join Date: Aug 2006
Location: Mumbai, India
07-01-2007, 08:24 AM

I also suggest you try running the phpinfo file from within the software directory and check if it yet shows PHP compiled with IMAP. Multiple installations of PHP can be another reason for such an issue.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#4) Old
iambic Offline
New Member
 
Posts: 6
Join Date: Sep 2006
Location: Sunnyvale, CA
07-01-2007, 04:57 PM

Hi,

thank you for your suggestions. The operating system is a RHL Enterprise, on 32bit processors. The box runs various others web based apps in php.

I checked the phpinfo values when going under admin -> diagnostics -> php info, and it matches with the one at the link above.

At the very top I have:

'./configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime' '--with-apxs2=/usr/sbin/apxs'

Which suggests it should support both IMAP and IMAP SSL.

Then I tried this little snippet of code which shows all the loaded extensions:

Code:
<?php
print_r(get_loaded_extensions());
?>
which returns:

Array ( [0] => yp [1] => xml [2] => wddx [3] => tokenizer [4] => sysvshm [5] => sysvsem [6] => standard [7] => sockets [8] => shmop [9] => session [10] => pspell [11] => posix [12] => pcre [13] => overload [14] => mime_magic [15] => iconv [16] => gmp [17] => gettext [18] => ftp [19] => exif [20] => dio [21] => dbx [22] => dba [23] => curl [24] => ctype [25] => calendar [26] => bz2 [27] => bcmath [28] => zlib [29] => openssl [30] => apache2handler [31] => gd [32] => ldap [33] => mbstring [34] => mssql [35] => mysql [36] => odbc [37] => pgsql [38] => Zend Optimizer )

so looks like imap is not loaded, despite phpinfo says so

I then checked the kayako code responsible for the warning about imap not loaded, and is located in cron_parser.php under modules/parser --- around line 58 this check fails:

Code:
if (!extension_loaded('imap'))
{
	echo "ERROR: Your PHP is not compiled with IMAP Support.<BR /> *NIX Users should recompile the PHP with the --with-imap flag and Windows users can simply uncomment the extension='php_imap.dll' line in their php.ini";
	exit;
}
tried to comment it out, and effectively the code dies soon after since the extension really seems not loaded.

Anyone has suggestions on how to shed some light over this? A little hesitant rebuilding php...

- Adriano
   
Reply With Quote
  (#5) Old
iambic Offline
New Member
 
Posts: 6
Join Date: Sep 2006
Location: Sunnyvale, CA
07-01-2007, 05:11 PM

following-up on this... I found the cause.

The fact that the "configure command" in phpinfo mentions IMAP seems irrelevant -- what I really needed was to install also the php-imap package (available as .rpm from various sources).

Got that, installed, now all good. The phpinfo now shows further down:

imap
IMAP c-Client Version 2001
SSL Support enabled
Kerberos Support enabled

which was what really was needed.

Back on track now

- Adriano
   
Reply With Quote
Reply

Tags
compiled, imap, php, support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem ! graziano68 SupportSuite, eSupport and LiveResponse 2 08-11-2006 07:07 AM
Swift CLI problem joshopkins SupportSuite, eSupport and LiveResponse 2 02-09-2006 06:12 AM
ERROR: Your PHP is not compiled with IMAP Support. alcheme SupportSuite, eSupport and LiveResponse 1 08-04-2006 07:04 AM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46