Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com 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

1 Answer 1

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

extension = php_imap.so

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 extension=imap.so. 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 ffmpeg.so. Thank you!! –  luqita Jan 31 '11 at 2:09
    
I tried moving imap.so to that folder but still not working... –  luqita Jan 31 '11 at 2:20

Your Answer

 
discard

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.