PHP with Imap Module (Version 2004g) support

kornaz

Member
Aug 28, 2005
13
0
151
Is there any decent HOWTO about compiling PHP with IMAP (2004g) support in Cpanel, because I've been trying to do this for the last few days with no luck. I downloaded ftp://ftp.cac.washington.edu/imap/c-client.tar.Z, but WHERE do I have to extract it? Or should I use libc-client from my distribution? I had enough of googling...
 

kornaz

Member
Aug 28, 2005
13
0
151
Sadly, it doesnt do the trick. I get the following error with easyapache:

./buildscript: line 792: ./utils/build_prep.pl: No such file or directory
./buildscript: line 794: /usr/local/cpanel/src/3rdparty/bsd/imap-2004g/Makefile.new: No such file or directory
mv: cannot stat `/usr/local/cpanel/src/3rdparty/bsd/imap-2004g/Makefile.new': No such file or directory
./buildscript: line 797: cd: /usr/local/cpanel/src/3rdparty/bsd/imap-2004g: No such file or directory

So I extracted c-client.tar.Z to /usr/local/cpanel/src/3rdparty/bsd/, but it seems that something's still wrong:

./buildscript: line 792: ./utils/build_prep.pl: No such file or directory
Removing old processed sources and binaries...
sh -c 'rm -rf an ua OSTYPE SPECIALS c-client mtest imapd ipopd mailutil mlock dmail tmail || true'
cd tools;make clean
make[1]: Entering directory `/usr/local/cpanel/src/3rdparty/bsd/imap-2004g/tools'
sh -c 'rm -f *.o uahelper || true'
make[1]: Leaving directory `/usr/local/cpanel/src/3rdparty/bsd/imap-2004g/tools'
make: *** No rule to make target `imap'. Stop.

PHP will NOT compile with --with-imap option after this... I'm running cPanel 10.8.2-R119, PHP 4.4.2 on Fedora Core 4 with the latest updates.
 

kornaz

Member
Aug 28, 2005
13
0
151
Finally I've compiled PHP with IMAP Module support. /home/cpapachebuild/buildapache/buildscript is totally messed-up in IMAP part, so I've made a couple of workarounds to suite this buggy script. If anyone's interested, I can post my solution here.