Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Oct 15, 2010 4:33 am 
Offline
Senior Member

Joined: Sun Mar 28, 2010 2:43 pm
Posts: 76
Website: http://tomakefast.com
Location: Texas
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.

_________________
PHP Development @ Tomakefast


Last edited by ferodynamics on Fri Oct 15, 2010 6:39 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Fri Oct 15, 2010 1:19 pm 
Offline
Senior Member

Joined: Sun Mar 28, 2010 2:43 pm
Posts: 76
Website: http://tomakefast.com
Location: Texas
"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.

_________________
PHP Development @ Tomakefast


Top
   
 Post subject:
PostPosted: Fri Oct 15, 2010 1:35 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
Maybe look for php5-imap?

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
 Post subject:
PostPosted: Fri Oct 15, 2010 5:53 pm 
Offline
Senior Member

Joined: Sun Mar 28, 2010 2:43 pm
Posts: 76
Website: http://tomakefast.com
Location: Texas
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.

_________________
PHP Development @ Tomakefast


Top
   
 Post subject:
PostPosted: Fri Oct 15, 2010 6:22 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
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, providing useless advice on the Internet since 2005.


Top
   
 Post subject:
PostPosted: Fri Oct 15, 2010 6:52 pm 
Offline
Senior Member

Joined: Sun Mar 28, 2010 2:43 pm
Posts: 76
Website: http://tomakefast.com
Location: Texas
rsk wrote:
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

_________________
PHP Development @ Tomakefast


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group