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.