Hi there

I have been trying to setup a email in OS ticketing but it says

IMAP doesn't exist. PHP must be compiled with IMAP enabled.

running php 4 version , when searched forums i found some resolutions , it says recompile your Apache with command ./configure with imap and ssl enable

but i would like some precise guidance to handle this problem

please help me

To install osTicket, your web server must have PHP 4.3 (or better) and MySQL 4.1 (or better) installed. Use phpinfo(); to confirm that IMAP extensions is supported in your PHP installation.

Add this to a PHP page:

<?php

phpinfo();

?>

This is not an issue with osTicket, but instead your hosting provider. If your on a hared hosting provider they will have enable it for you.

6 days later

IMAP doesn't exist. PHP must be compiled with IMAP enabled.

Hi Corey

Firstly, Thanks for your support . Since you have asked me to check the PHP info

i have did it and my php.ini file has the following configuration, I would like ,you to review my Php configure command below and let me know the settings for Emailed tickets function in OS ticketing system.

'./configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--with-apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--with-xml' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-config-file-path=/private/etc' '--sysconfdir=/private/etc' '--with-mysql=/usr' '--with-mysql-sock=/var/mysql/mysql.sock' '--without-pear' '--with-jpeg-dir=/opt/local' '--with-png-dir=/opt/local' '--with-freetype-dir=/usr/X11R6' '--with-gd=/opt/local'

Thanks

25 days later

just a suggestion - check your php.ini

you must have the imap plug-in module enabled (meaning remove ; or # from the begining of the line)

that is what fixed my issue

B
2 months later

imap is enabled on my server yet I do not see any info about IMAP services.

I'm on OSTicket (v1.6 RC4)

Also on a separate note how do you remove an IP ban from the list? I've locked myself out a couple of times by typing the wrong password and would really like to clear up the ban rather than wait it out...

a year later

I too am having this issue though I have no avenue to enable imap, I do not wish to use imap, I'm just wanting to use POP and I have selected POP but it still wont let me use POP without IMAP being enabled :

I too am having this issue though I have no avenue to enable imap, I do not wish to use imap, I'm just wanting to use POP and I have selected POP but it still wont let me use POP without IMAP being enabled :

It is a case of bad library naming - IMAP extension is used for both IMAP and POP.

7 months later

ERROR: IMAP doesn't exist. PHP must be compiled with IMAP enabled.

Newbie here. I have downloaded stable 1.6.0 ver.

I am still getting same error. I want to enable POP not IMAP. Anyone can guide me plz.

Thank you in advance.

Once again: It is a case of bad library naming - IMAP extension is used for both IMAP and POP.

2 months later

Is there a way to bypass configuring PHP module?

I got a web hosting with goDaddy. Tried to enable IMAP in PHP, but did not work out :(.

Submitted a ticket with them and they told me that there is no way they will install it and for that purpose I'll need to buy dedicated server and install there whatever I want. I do not really feel like doing this and was wondering if there is a workaround.

Thanks guys.

Is your GoDaddy shared hosting on a windows or linux host? If it's on their linux hosts they allow custom php5.ini files. You would create a php5.ini and override their settings. This hypothetically would let you load the extension for imap dynamically.

For Linux you could try adding:

extension=imap.so

For Windows (Although I hear that you cannot override php.ini on GoDaddy Windows hosts) would be:

extension=imap.dll

If you google: GoDaddy php ini

It should point you in the right direction if this is possible. Of course I work in a windows environment so I am not sure if you can just enable the .so like you can the dll.

8 days later

Once again: It is a case of bad library naming - IMAP extension is used for both IMAP and POP.

I checked with my hosting provider and they assured me that the Imap functionality is active on the server and in the php.ini file. I am still getting this error. I am hosted on a server with PHP 5+ installed.

Please advice as enabling email pulling is critical to us.

Thanks

2 months later

install imap support

sudo apt-get install php5-imap

find php config files

sudo find / -name php.ini

incert config into php config files

;Enable Imap Support

extension=imap.so

reboot

sudo reboot

check php info

create a files name phpinfo.php

type:

<? phpinfo(); ?>

save the file and load http://localhost/phpinfo.php(http://localhost/phpinfo.php)

search for imap to check that it loaded

dont forget to enable

Incoming Emails: For mail fetcher (POP/IMAP) to work you must set a cron job or simply enable auto-cron

Enable POP/IMAP email fetch (Global setting which can be disabled at email level)

and enable

Enable Auto Cron: Enable cron call on staff's activity

if u are using autocron

if u are using a cron scheduled job use the following syntax

sudo /usr/bin/env TERM=xterm php -c /var/www/osticket/api/php.ini -f /var/www/osticket/api/cron.php

im using my own php.ini file because cron.php using php4 code or so and outputs a depreciated error

i hope this info helps you guys out. good luck

Matt Davis

PurpisIT.com

3 months later

update php.ini

update php.ini

#extension=php_imap.dll delete "#"

Download php_imap.dll and copy over

3 months later

no problems on ubuntu 11.04 but please backup before upgrading. if you upgrade u can upgrade the php.ini and everything will still work but do not upgrade apache config.

8 months later

Thanks

just a suggestion - check your php.ini

you must have the imap plug-in module enabled (meaning remove ; or # from the begining of the line)

that is what fixed my issue

B

This works

17 days later

Trying to get IMAP workding

I am trying to get IMAP working for octicket, but I guess I am missing a piece of the puzzle.

I did a phpinfo dump (added a file called phpinfo.php to my root html folder and with

<? phpinfo(); ?>

being the only thing in the file, then navigated to the file via my web browser to get the results)

PHP Version 5.2.17

System Linux

MySQL Client API version 5.1.59

SERVER_SOFTWARE Apache

I see that I should be looking for IMAP to see that it loaded. I see the word "LOADED" in the out put once, and it is in regards to the which php.ini file was loaded and where that file is located.

Loaded Configuration File /home1/Rootdirectory/public_html/php.ini

I do have IMAP appear but it only speaks of enabled (does that mean it loaded?):

IMAP c-Client Version: 2004

SSL Support: enabled

Kerberos Support: enabled

I do have

;extension=php_imap.dll

located in my php.ini file and it does not have "#" in front of it

I have added

;extension=imap.so

to my php.ini file just above all the ;extension=???_???.dll

Do I need to relocate this or is it ok where it is?

;extension=imap.so

;Windows Extensions

;Note that MySQL and ODBC support is now built in, so no dll is needed for it.

;

;extension=php_cpdf.dll

;extension=php_cybercash.dll

;extension=php_db.dll

;extension=php_dbase.dll

;extension=php_domxml.dll

;extension=php_dotnet.dll

;extension=php_exif.dll

;extension=php_fdf.dll

;extension=php_gd.dll

;extension=php_gettext.dll

;extension=php_ifx.dll

;extension=php_imap.dll

I do have the attachments folder set up and it is outside of the osticket root directory and permissions are set to 777 and osticket say the attachment directory is setup correctly.

I am using Bluehost as my host provider,and I do have access to the cpanel and root directory, if I need to make changes to get this working.

Here are the IMAP settings I am using:

Email Address: name@domain.com (also tried a name@gmail.com address that I have)

Auto Response: disabled

Login info

Username: name@domain.com (gmail requires the whole email address for private domain names gapp domains)(also tried just the user name for @[deleted] address)

I use IMAP on these accounts all the time, so IMAP is set to "enabled" in the GMAIL control panel (settings)

Password: password

Message I am getting:===>Invalid login. Check IMAP settings

Mail Account:

Setting for fetching incoming emails. Mail fetching must be enabled with autocron active or external cron setup.

I have enabled Auto cron in the osticket settings

Message I am getting:==>>Can't connect to googlemail-imap.l.google.com,993: Connection timed out

Status: Enabled

Host: imap.googlemail.com (also tried imap.gmail.com and same results)

Port: 993

Protocol: IMAP

Encryption: SSL

Fetch Frequency: 5 minutes

Maximum Emails Per Fetch:30

Delete Messages: unchecked

SMTP Settings:

Status: Enabled

SMTP Host: smtp.googlemail.com and tried smtp.gmail.com

SMTP Port: 465 and also tried 587

Authentication Required?:Yes

I am at a loss as what else needs to be done to get this working. I do not believe this is a gmail issue nor do I think it is an issue with the IMAP or SMTP settings or port numbers. (unless there is a potential for bluehost blocking certain ports)

I am guessing this is an issue with a setting in my php.ini file. I did see where an imap plug-in module needs to be enabled but I think that refers to the ;extension=php_imap.dll and/or ;extension=imap.so

which I have both and neither have the "#" in front of them. (maybe I should only have one and the other should be commented out, or maybe I have them in the wrong place in the file)

Originally Posted by bbiandov

just a suggestion - check your php.ini

you must have the imap plug-in module enabled (meaning remove ; or # from the begining of the line)

that is what fixed my issue

B

Any help would be greatly appreciated. I pasted the configure command info from the phpinfo.php dump ... I was not sure if that was needed or not.

Thanks

Br1an

================================================

'./configure' '--build=x86_64-redhat-linux-gnu'

'--host=x86_64-redhat-linux-gnu' '--target=x86_64-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/lib64'

'--libexecdir=/usr/libexec' '--localstatedir=/var'

'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'

'--infodir=/usr/share/info' '--with-config-file-scan-dir=/etc/php.d'

'--cache-file=../config.cache''--with-libdir=lib64' '--with-pic'

'--disable-rpath' '--disable-debug' '--enable-inline-optimization'

'--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin'

'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf'

'--without-gdbm' '--with-gettext' '--with-gmp''--with-iconv'

'--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell'

'--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif'

'--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem'

'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid'

'--enable-yp' '--enable-wddx' '--with-kerberos' '--with-unixODBC=/usr'

'--enable-memory-limit' '--enable-shmop' '--enable-calendar''--enable-dbx'

'--enable-dio' '--with-mime-magic' '--with-sqlite' '--with-libxml-dir=/usr'

'--with-xml' '--with-system-tzdata' '--enable-pcntl' '--enable-static'

'--with-imap' '--with-imap-ssl''--enable-mbstring' '--enable-mbstr-enc-trans'

'--enable-mbregex' '--with-mcrypt=/usr' '--with-mhash=/usr' '--with-tidy=/usr'

'--with-ncurses' '--with-gd' '--enable-bcmath''--enable-dba' '--with-db4=/usr'

'--with-xmlrpc' '--with-ldap' '--with-ldap-sasl''--with-mysql=/usr'

'--with-mysqli=/usr/bin/mysql_config' '--with-mysql-sock=/var/lib/mysql/mysql.sock'

'--enable-dom' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-pgsql'

'--enable-soap''--with-xsl=/usr' '--enable-fastcgi' '--enable-pdo'

'--with-pdo-odbc=unixODBC,/usr' '--with-pdo-mysql=/usr' '--with-pdo-pgsql=/usr'

'--with-pdo-sqlite=/usr' '--with-pdo-dblib=/usr''--enable-json'

'--enable-zip' '--with-readline' '--with-intl' '--enable-dbase'

2 months later

Once again: It is a case of bad library naming - IMAP extension is used for both IMAP and POP.

Peter,

Can you please provide some specifics? I am not a developer and so what might seem trivial and basic to you is not to sys admins like myself.

There are a VERY large number of posts about this issue and there is virtually NO documentation.

Please provide some specifics and examples so that your user base can actually get your product to work.

As it stands now with the extremely lacking documentation, osTicket, looks cool on the surface, but trying to get it to work is not so simple.:(

a year later

IMAP doesn't exist. PHP must be compiled with IMAP enabled.

This is the first time I am installing the Osticket and configuring "Mail Account: Optional setting for fetching incoming emails. Mail fetching must be enabled with autocron active or external cron setup"But i getting error "IMAP doesn't exist. PHP must be compiled with IMAP enabled. " So please help me to resolving this issue i m unable to find the php.ini file where is this file located?????

Write a Reply...