Author Topic: imap php extension  (Read 27298 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
imap php extension
« on: November 14, 2014, 06:14:56 PM »
I have installed this awesome piece of software.

But i got a problem.

My helpdesk program should automatically fetch e-mail without IMAP / pop3.

The program tells me i need a php extension for IMAP.
in windows i managed to do this pretty easy but because i wanna move to linux i really need this working.

Can anyone tell me how to enable or install the IMAP extension?

Thank you

Offline
*
Re: imap php extension
« Reply #1 on: November 18, 2014, 12:38:57 AM »
in the php switcher you can rebuild your php with any of the required extensions.

You would need to add
Code: [Select]
--with-imap
--with-imap-ssl
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: imap php extension
« Reply #2 on: November 25, 2014, 10:49:30 AM »
I used the PHP Version switcher.
I select the recommended 5.4.27 version and in the additional configuration i enter --with-imap en --with-imap-ssl.

then i get
Code: [Select]
PHP Compiler Started in Background. You can monitor PHP rebuild from console using command: tail -f /var/log/php-rebuild.log
So i go monitor the rebuild and see IMAP is compiled in PHP now.
Code: [Select]
checking for IMAP support... yes
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE...
checking for pam_start in -lpam... no
checking for crypt in -lcrypt... yes
PHP Rebuild Completed

Then i reboot my entire server i look the PHP short info and dont see it there

Code: [Select]
hash
iconv
json
libxml

What am i doing wrong? Thank you


Offline
*
Re: imap php extension
« Reply #3 on: November 26, 2014, 12:44:02 AM »
you should check the following but you will need to compile it using PHP switcher

http://www.brighterlamp.com/2012/12/how-to-compile-php-with-imap-support/
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: imap php extension
« Reply #4 on: November 26, 2014, 02:53:59 PM »
It's not really working.

Is it possible to give you credentials to login to my CentOS-webpanel so you can try to configure it once?

Thank you.

Offline
*
Re: imap php extension
« Reply #5 on: November 26, 2014, 03:20:04 PM »
I believe i found the problem but i don't know how to fix it.

When i run the compiler without adding --with-imap and --with-imap-ssl
then it runs for about 10 minutes and my version has changed.

When i run the compiler with adding --with-imap and --with-imap-ssl
then it runs for about 1 minute and my version doesnt change.

So it looks like when  add --with-imap and --with-imap-ssl it doesn't 'really' compile.

Do you have any idea how come?

Offline
*
Re: imap php extension
« Reply #6 on: November 26, 2014, 09:15:07 PM »
Once you give the rebuild through CWP admin panel.

SSH to your server and tail the log file to see if your apache is built or halt with errors.

the file location is /var/log/apache-rebuild.log

and the command to tail is
Code: [Select]
tail -f /var/log/apache-rebuild.log

As of now, you can check the previous built log by either
Code: [Select]
cat /var/log/apache-rebuild.log

or  open it in an editor with
Code: [Select]
/var/log/apache-rebuild.log

Offline
*
Re: imap php extension
« Reply #7 on: November 27, 2014, 08:46:51 PM »
you should check the following, but you will need to compile it using PHP switcher, also you will need to download and follow instructions in this tutorial, only compiling needs to be done from the Switcher..

http://www.brighterlamp.com/2012/12/how-to-compile-php-with-imap-support/
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: imap php extension
« Reply #8 on: November 29, 2014, 01:08:32 AM »
I followed the instructions and used 'make slx EXTRACFLAGS=-fPIC' but i get some errors.

Code: [Select]
osdep.c:431: error: ‘SSL_VERIFY_PEER’ undeclared (first use in this function)
osdep.c:433: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:436: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:440: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:447: error: ‘EVP_PKEY’ undeclared (first use in this function)
osdep.c:447: error: ‘key’ undeclared (first use in this function)
osdep.c:450: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:460: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:460: error: ‘SSL’ undeclared (first use in this function)
osdep.c:460: error: expected expression before ‘)’ token
osdep.c:462: error: ‘BIO_NOCLOSE’ undeclared (first use in this function)
osdep.c:463: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:464: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:465: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:465: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:467: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:471: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c: At top level:
osdep.c:488: error: expected declaration specifiers or ‘...’ before ‘X509_STORE_CTX’
osdep.c: In function ‘ssl_open_verify’:
osdep.c:495: error: ‘ctx’ undeclared (first use in this function)
osdep.c: At top level:
osdep.c:517: error: expected ‘)’ before ‘*’ token
osdep.c: In function ‘ssl_getline_work’:
osdep.c:622: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:622: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c:623: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:636: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:637: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:638: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c: In function ‘ssl_getbuffer’:
osdep.c:657: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c:659: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:661: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:663: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c: In function ‘ssl_getdata’:
osdep.c:683: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:683: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:687: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c:691: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:710: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:710: error: ‘SSLSTREAM’ has no member named ‘ibuf’
osdep.c:712: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:712: error: ‘SSL_ERROR_WANT_READ’ undeclared (first use in this function)
osdep.c:717: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:723: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:723: error: ‘SSLSTREAM’ has no member named ‘ibuf’
osdep.c:724: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c: In function ‘ssl_sout’:
osdep.c:760: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:766: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:770: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c: In function ‘ssl_abort’:
osdep.c:799: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:800: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:801: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:802: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:804: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:805: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:806: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c: In function ‘ssl_server_init’:
osdep.c:906: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:912: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:912: error: ‘SSL_OP_ALL’ undeclared (first use in this function)
osdep.c:914: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:918: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:922: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:923: error: ‘SSL_FILETYPE_PEM’ undeclared (first use in this function)
osdep.c:928: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:929: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:929: error: ‘ssl_genkey’ undeclared (first use in this function)
osdep.c:931: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:931: error: ‘SSLSTREAM’ has no member named ‘context’
osdep.c:935: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:937: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c: At top level:
osdep.c:972: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
osdep.c: In function ‘ssl_server_input_wait’:
osdep.c:1002: error: ‘SSLSTREAM’ has no member named ‘ictr’
osdep.c:1003: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:1003: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:1007: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:1008: error: ‘SSLSTREAM’ has no member named ‘con’
osdep.c:1008: error: ‘SSLSTREAM’ has no member named ‘ibuf’
osdep.c:1009: error: ‘SSLSTREAM’ has no member named ‘iptr’
osdep.c:1009: error: ‘SSLSTREAM’ has no member named ‘ibuf’
osdep.c:1010: error: ‘SSLSTREAM’ has no member named ‘ictr’
In file included from osdep.c:1022:
sslstdio.c: In function ‘PBIN’:
sslstdio.c:38: error: ‘SSLSTREAM’ has no member named ‘ictr’
sslstdio.c:39: error: ‘SSLSTREAM’ has no member named ‘iptr’
sslstdio.c: In function ‘PSIN’:
sslstdio.c:57: error: ‘SSLSTREAM’ has no member named ‘ictr’
sslstdio.c:58: error: ‘SSLSTREAM’ has no member named ‘ictr’
sslstdio.c:60: error: ‘SSLSTREAM’ has no member named ‘iptr’
make[3]: *** [osdep.o] Error 1
make[3]: Leaving directory `/usr/local/imap-2007f/c-client'
make[2]: *** [slx] Error 2
make[2]: Leaving directory `/usr/local/imap-2007f/c-client'
make[1]: *** [OSTYPE] Error 2
make[1]: Leaving directory `/usr/local/imap-2007f'
make: *** [slx] Error 2
[root@qupra imap-2007f]#

I really have no idea how to get the IMAP functions working. I also recompiled using the php switcher with all the available versions.

When i add --with-imap=/usr/local/imap-2007f --with-imap-ssl then it doesnt really compile.
Also not with --with-imap --with-imap-ssl then it doesnt really compile.

I know it might be a strange question but can you check it out if i give you root acces?

Thank you

Offline
*
Re: imap php extension
« Reply #9 on: December 02, 2014, 06:22:17 PM »
this would need to be checked in the project...and for that you would need to contact support or wait for the version which will have this included.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services