PHP 5 with IMAP and LDAP

PHP 5 with IMAP and LDAP

Posted by: cognizant
Posted on: 2005-06-01 07:36:00

I need to compile my own PHP5 to run with LDAP and IMAP extensions. I've compiled PHP, and I thought I downloaded and properly added the IMAP extensions, but alas, PHP still balks and says that IMAP isn't functioning. So, I'm assuming that whatever I did failed.

Has anyone here done a full compile of PHP5 with support for LDAP, IMAP, and MySQL?

Edited by cognizant on 06/01/05 07:46 AM (server time).

Re: PHP 5 with IMAP and LDAP

Posted by: guice
Posted on: 2005-06-01 09:28:00

I hadn't, but have you checked the PHP docs about installing IMAP, PHP3 and NNTP functions into PHP?

Re: PHP 5 with IMAP and LDAP

Posted by: cognizant
Posted on: 2005-06-01 11:35:00

You know, it's funny that I show as a new user. I should use these forums more often, since I've been with DH nearly 6 years now. :D

I did check that site, actually. The real issue that I have is that I'm not really 100% on how the directory structuring works for our domains. I'm not sure where to put the files, since the instructions are really geared toward installation as a centralizes resource. How would I simulate the /usr/local/, for instance? And what ini or configuration files would I need to change to tell PHP where to find them? And beyond that, how would you compile and configure the c-client, and in what order?

As a test, I had installed the PHP first using the install script on the DH wiki, which worked fine. I'm technically savvy, but I'm so busy studying that I don't really have time to go learn Linux right now, so compiling is still something that is pretty beyond me, in terms of command structure.

Re: PHP 5 with IMAP and LDAP

Posted by: decswxaqz
Posted on: 2005-06-01 11:43:00

I'm doing the same thing.
I got as far as installing my own PHP but as for IMAP/c-client pfft.
I downloaded the c-client from the .edu site (forgot name), unzipped and put in my base dir /home/user/imap_install/
tried "make slx" (I should be using slx?) and get

In reply to:

Applying an process to sources...
tools/an "ln -s" src/c-client c-client
/bin/sh: tools/an: /bin/sh: bad interpreter: Permission denied
make: *** [an] Error 126


I guess I'm not allowed to run my own programs/script, ie run tools/an??

If this doesn't work, can I just delete the PHP I made, or do I have to unistall it somehow?

Re: PHP 5 with IMAP and LDAP

Posted by: provoca
Posted on: 2006-11-02 13:22:00

Has anyone come across instructions for compiling PHP5 with IMAP? I've been following the instructions on the DH wiki, but reading the previous posts in this thread suggests that the IMAP isn't included in script on the Dreamhost wiki.

Hoping someone has got *some* idea how to do this...

PLEASE PM me if you've got any ideas..!

thanks

Tags: imapphp 5ldapphp5assumingmysql