Php & Imap

Nice how-to tino!

I've one question before I continue executing it. Step 5 in your how-to:
tino said:
5) "Make" the c-client, for example: make slx
NOTE: If you run RedHat 9, use this command:
make lrh EXTRACFLAGS=-I/usr/kerberos/include EXTRALDFLAGS=-I/usr/kerberos/lib
I'm on a debian 3.1 system, after reading the Makefile, I suppose I have to do # make ldb
But I'm not sure, maybe to include some extra parameters? Does anyone knows sure how to do this for Debian?
 
ManageMyService said:
Just thought i'd also update this thread to mention that teh following works on 4.3.10 -



cd /home
mkdir build
cd build
wget http://files.directadmin.com/services/imapback.tar.gz
tar -zxvf imapback.tar.gz
cd imap-2002e
./buildit
cd c-client
make slx EXTRACFLAGS=-I/usr/kerberos/include EXTRALDFLAGS=-I/usr/kerberos/lib
mkdir /usr/local/imap-2000e/
mkdir /usr/local/imap-2000e/lib
mkdir /usr/local/imap-2000e/include
cp *.h /usr/local/imap-2000e/include
cp *.c /usr/local/imap-2000e/lib
cp c-client.a /usr/local/imap-2000e/lib
mv /usr/local/imap-2000e/lib/c-client.a /usr/local/imap-2000e/lib/libc-client.a
cd /usr/local/directadmin/customapache
nano -w configure.php (Add --with-imap=/usr/local/imap-2000e \ to php config)
./build php (answer n to all questions)



But on 4.3.11 this no longer works and needs further investigation.


I wonder is there further result to this solution that will work with current DA 1.255 and PHP 4.3.11?

Thanks
~Rocky
 
Sorry, but I do no longer have any DA licenses.

If someone has a server I can access or a license to spare, I can get you the answer....

Tino
 
tino said:
Sorry, but I do no longer have any DA licenses.

If someone has a server I can access or a license to spare, I can get you the answer....

Tino

Thank Tino, I think you can get a temporary license from DA for testing.

~rocky
 
ManageMyService said:
Just thought i'd also update this thread to mention that teh following works on 4.3.10 -



cd /home
mkdir build
cd build
wget http://files.directadmin.com/services/imapback.tar.gz
tar -zxvf imapback.tar.gz
cd imap-2002e
./buildit
cd c-client
make slx EXTRACFLAGS=-I/usr/kerberos/include EXTRALDFLAGS=-I/usr/kerberos/lib
mkdir /usr/local/imap-2000e/
mkdir /usr/local/imap-2000e/lib
mkdir /usr/local/imap-2000e/include
cp *.h /usr/local/imap-2000e/include
cp *.c /usr/local/imap-2000e/lib
cp c-client.a /usr/local/imap-2000e/lib
mv /usr/local/imap-2000e/lib/c-client.a /usr/local/imap-2000e/lib/libc-client.a
cd /usr/local/directadmin/customapache
nano -w configure.php (Add --with-imap=/usr/local/imap-2000e \ to php config)
./build php (answer n to all questions)



But on 4.3.11 this no longer works and needs further investigation.


Please anybody has a test server that can verify this work with current DA and 4.3.11
I have no access to test server but my live server.

Thanks for look into this

~rocky
 
I just download the new file and follow the instruction like this but I am stuck at the command and everything below that.

cp *.h /usr/local/imap-2004g/include

cd /home
mkdir build
cd build
wget http://files.directadmin.com/services/da_imap-2004g.tar.gz
tar -zxvf da_imap-2004g.tar.gz
cd imap-2004g
./buildit
cd c-client
make slx EXTRACFLAGS=-I/usr/kerberos/include EXTRALDFLAGS=-I/usr/kerberos/lib
mkdir /usr/local/imap-2004g/
mkdir /usr/local/imap-2004g/lib
mkdir /usr/local/imap-2004g/include
cp *.h /usr/local/imap-2004g/include
cp *.h /usr/local/imap-2004g/include
cp *.c /usr/local/imap-2004g/lib
cp c-client.a /usr/local/imap-2004g/lib
mv /usr/local/imap-2004g/lib/c-client.a /usr/local/imap-2004g/lib/libc-client.a
cd /usr/local/directadmin/customapache
nano -w configure.php (Add --with-imap=/usr/local/imap-2000e \ to php config)
./build php (answer n to all questions)



My server OS is CentOS4.1 and 4.3.11

a few of my websites need to have that install for the SugarCRM to work.

Thanks
Rocky
 
rocky said:

mv /usr/local/imap-2004g/lib/c-client.a /usr/local/imap-2004g/lib/libc-client.a
cd /usr/local/directadmin/customapache
nano -w configure.php (Add --with-imap=/usr/local/imap-2000e \ to php config)
./build php (answer n to all questions)

Why did you add --with-imap=/usr/local/imap-2000e when you explicity put all the files in /usr/local/imap-2004g?
 
toml said:
Why did you add --with-imap=/usr/local/imap-2000e when you explicity put all the files in /usr/local/imap-2004g?


So Tom what is the right way to install this I am Linux fresh user, I have no idea what to do right now. I am totally lost :)

Thanks

Rocky
 
rocky said:
So Tom what is the right way to install this I am Linux fresh user, I have no idea what to do right now. I am totally lost :)

Thanks

Rocky

The line you added tells it to look for the files in the /usr/local/imap-2000e directory structure, you put all the files in /usr/local/imap-2004g, so you need to change the line in configure.php to /usr/local/imap-2004g. You mostly followed someone elses directions, except they really did put all their files in /usr/local/imap-2000e, and that is why it worked for them.
 
toml said:
The line you added tells it to look for the files in the /usr/local/imap-2000e directory structure, you put all the files in /usr/local/imap-2004g, so you need to change the line in configure.php to /usr/local/imap-2004g. You mostly followed someone elses directions, except they really did put all their files in /usr/local/imap-2000e, and that is why it worked for them.

Currently I am stuck at this command and I cannot go farther.

cp *.h /usr/local/imap-2004g/include

Thanks

Rocky
 
rocky said:
Currently I am stuck at this command and I cannot go farther.

cp *.h /usr/local/imap-2004g/include

Thanks

Rocky
Are you sure you did the
Code:
cd c-client
part? Without that, you won't have any .h , .c and the .a file in the current directory.
 
Ok , get past the cp *.h and cp *.c part, now I am stuck at cp c-client.a /usr/local/imap-2004g/lib

Thanks

Rocky
 
If you followed the exact steps you listed, with the exception of configure.php edit, it should have been built in the c-client directory, the same directory the .h and .c files were.
 
This just adds IMAP client support, it has nothing to do with which IMAP server is used. So, yes this would still apply for Dovecot, as well as Cyrus, Courier, UW and any other IMAP server. They all speak the IMAP protocol and that is what this step adds support for.
 
Is this php-imap build from the sources is customed for DA?
Can I use yum to install this module?
"yum install php-imap"

Because I still have problem to build from the sources.

Thanks

Rocky
 
wow what a royal pain, I have tried everything posted here on Fedora4 with no luck.
 
rocky said:
Is this php-imap build from the sources is customed for DA?
Can I use yum to install this module?
"yum install php-imap"

Because I still have problem to build from the sources.

Thanks

Rocky
No, you can't use yum.

That *will* break your PHP install created by DA/custombuilder.

How about php5, is there another version of imap?
Don't quote me on it, but the way how you can do it, is exactly the same as with PHP 4.

wow what a royal pain, I have tried everything posted here on Fedora4 with no luck.
What kind of problems do you run into?
 
Back
Top