(nginx) imap.ini not showing up in phpinfo()

Looking around in Google tonight here, I figured somebody here might have an answer to my noob question.

I installed php-imap tonight "yum install php-imap" and that went OK.

But I still get "Call to undefined function imap_open()" in my PHP script.

nginx error.log says basically the same thing

phpinfo() shows imap.ini isn't loaded, but I see the "extension module" imap.ini is in php.d where it should be with all the other .ini files that show up in phpinfo()

Somebody in Google said a trick was to add "extension=imap.so" to php.ini but that didn't make a difference.

Some Google searches say to restart apache to get this working but hey I'm using nginx. I restart nginx and no difference.

Do I need to reboot?

PS: It's not urgent.

5 Replies

"The php-imap package contains a dynamic shared object (DSO) for the

Apache Web server. When compiled into Apache, the php-imap module will

add IMAP (Internet Message Access Protocol) support to PHP."

Opps, I didn't realize php-imap was part of Apache.

Maybe look for php5-imap?

I think I'm making progress with php-pear-Net-POP3

I can connect to pop.gmail.com and it accepts my password (POP3 session, SSL) but for some reason it shows I have zero messages.

Same result with socat. I type "LIST" and it's like my box is empty, but it's really not.

I know there are messages in there. Strange.

Did you enable POP3 in Gmail settings, and set it to "Show all my mail" instead of "Show only mail that arrived since I tured this on"?

@rsk:

Did you enable POP3 in Gmail settings, and set it to "Show all my mail" instead of "Show only mail that arrived since I tured this on"?

I figured it out right before you posted this ;-)

I had Google Apps set to not delete any email, so I couldn't figure out what was up. Shows my lack of understanding of how a POP server works, I guess.

I suppose my Evolution downloads affected Gmail's download counter, showing I had zero messages left to download.

Like you said, I had to select "Enable POP for all mail (even mail that's already been downloaded)"

Where before it was set to "Enable POP for mail that arrives from now on". (Fail!)

It's a little tricky because once you set this option, Gmail doesn't show you a radio button, at least in Firefox. As of right now it simply says, "1. Status: POP is enabled for all mail that has arrived since 5:32 pm" LOL!

So problem solved. If you're using nginx and you want to access your POP3 gmail account (SSL) this link should save you some time,

http://pear.php.net/manual/en/package.n … onnect.php">http://pear.php.net/manual/en/package.networking.net-pop3.connect.php

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct