PHP with IMAP on CentOS

I was playing with Drupal 6 and some UberCart ticket module when I came across an error message where Drupal told me that it needed the IMAP PHP extension to be installed.

Because I’m a nice guy I will share this command with you:

1
[me@it ~]# yum install php-imap

Now it’s installed, proof:

1
2
3
4
5
6
7
8
[me@it ~]# php --ri imap
 
imap
 
IMAP c-Client Version => 2004
SSL Support => enabled
Kerberos Support => enabled
[me@it ~]#

If it wasn’t installed it would have shown you:

1
2
[me@it ~]# php --ri imap
Extension 'imap' not present.

But of course it isn’t working… yet, untill you restart the Apache server daemon

1
[me@it ~]# service httpd restart

And because I’m a nice guy I will tell you where I found the first command before even you ask: http://www.php.net/manual/en/imap.setup.php

The PHP manual is always a good place to start, oh… and don’t underestimate comments.

Further reading

Related links

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here:

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">