Web Hosting Talk







View Full Version : Easiest way to enable imap_open() in php?


ravan
06-28-2004, 02:52 AM
It seems I am trying to use some scripts on my server that require imap_open() and this returns an unknown function error.

I guess I need to put a php version on there that supports it.

This is on a SM hosted redhat enterprise 3 server, has whm/cpanel.

What would be the easiest way? grab an RPM somewhere or do i need to compile?
Thanks for any input!

Steven
06-28-2004, 02:59 AM
im guessing you need to recompile php to include --with-imap

ravan
06-28-2004, 03:26 AM
Hmm.. when I look in whm under Install RPM there is one called PHP-IMAP that is already installed.. Strange.

I tried reinstalling it for good measure, but no luck.

xerohosting
06-28-2004, 05:48 AM
just installing the rpm isnt enough, you'll need to recompile apache/php.

If you haven't got any custom things compiled into these tehn it's easy:

in whm go to update apache, click current config to grab your current settings, then tick the imap boxes and click start build.

If you want to do it from shell then run /scripts/easyapache - you may want to read up on that first to know which optiosn to choose.

Hope this helps.

zupanm
06-28-2004, 06:48 AM
no if you install php-imap you don't have to recompile anything. Once its installed a simple apache restart and it should be working. that is of course if you are using the apache/php from rpm.. if its running out of /usr/local/apache then you need to recompile