Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install imap on CentOS but it's not working.

I did:

yum install php-imap

it was installed. Then I enabled on php.ini the extension = php_imap.dll

I have also restarted httpd many times, including using 'graceful'.

But it's not working. phpinfo() is not showing it and the scripts that need it are not working. I'm also pretty noob when it comes to Linux, so I'm sure this is some little thing I'm missing because of my ignorance :)

Any ideas? I'm following all tutorials around but I don't know why it's not working.

Thank you!!!

share|improve this question

migrated from Jan 30 '11 at 2:42

This question came from our site for professional and enthusiast programmers.

This question probably should be in ServerFault – Prisoner Jan 29 '11 at 23:23
Any ideas? ------------------------------------ ------------------------------------------------ – luqita Jan 31 '11 at 13:15
I've converted the above 'answer' to a comment, this is not a chat room, answers are for answers, comments are for comments - also posting lines like you did above is highly unlikely to help - please read our FAQ. – Chopper3 Jan 31 '11 at 13:16
the line is because there is a character limit. – luqita Feb 1 '11 at 12:41

Try this in your php.ini instead. The .dll extension is for windows:

extension =

What PHP RPMs are you using? Normally they'll stick their own ini file in /etc/php.d and restarting httpd is all you have to do. Does /etc/php.d/imap.ini exist? If you've mixed up different PHP RPMs or compiled stuff from source, that might be the source of your problem.

share|improve this answer
Thank you very much for your answer! I found imap.ini, it reads What can I do now? Should I still modify my php.ini? I tried but nothing happened, restarted apache and still not working. Also, extension_dir in php.ini is empty, even though phpinfo gives me a path anyways: "/usr/local/lib/php/extensions/no-debug-non-zts-20060613" What can I do? When I go to this path I only see Thank you!! – luqita Jan 31 '11 at 2:09
I tried moving to that folder but still not working... – luqita Jan 31 '11 at 2:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.