• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1088
  • Last Modified:

Debian: How to install php extension without installing php4

I'm running Debian Woody.  I needed a more up-to-date version of PHP than Woody offered so compiled and installed from the source code instead of using apt-get.  It looks like this decision is coming back to haunt me.  

I need to install the imap extension for php and I don't really know where to begin.  I can't use apt-get install because Debian wants to install php4 (apt doesn't know it's already installed).

I looked at http://us2.php.net/imap to see how to manually install it but I simply don't understand it.  Plus, even if I do figure it out, I'm worried about how this will affect Apache.  Will I need to recompile PHP into Apache, too?

So, because I'm not sure how to accomplish this, I'm stuck because I'm worried I'm going to end up breaking something on my server.  Can anyone offer some basic guidance?  Thanks.
0
nysus1
Asked:
nysus1
  • 3
  • 3
1 Solution
 
jlevieCommented:
You can re-build PHP and include --with-imap in the args to configure. You will need the c-client libs & include files from the UWash IMAP distribution.
0
 
dufdufCommented:
If you already have succesfully built and installed PHP from source, then you might as well do what jlevie suggested. On the other hand, if you want to use apt to manage your packages, you could search http://www.apt-get.org/. If you take that route, please note that those packages are strictly unofficial. Good thing with using backports is that it's easier to replace them with official packages when Sarge comes out.
0
 
nysus1Author Commented:
I downloaded the c-client files and now I'm trying to compile it.  To compile it properly, I need to know which kind of authentication my machine uses.  My choices are:

lnx   Linux with traditional passwords and crypt() in the C library
lnp   Linux with Pluggable Authentication Modules (PAM)
sl4   Linux using -lshadow to get the crypt() function
sl5   Linux with shadow passwords, no extra libraries
slx   Linux using -lcrypt to get the crypt() function

I'm guessing it's 'lnp' but I can't be totally sure.  I have the pam.conf file in /etc and a pam.d directory but how do I tell if Debian is actually using them?

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jlevieCommented:
I believe lnp will be correct for Debian (it is for RedHat & Mandrake).
0
 
nysus1Author Commented:
jlevie,

No, 'lnp'  didn't work.  I tried every other one, too, until it finally compiled with 'slx.'  I recompiled php4 with imap and it worked.  It doesn't look like I'm going to need to rebuild Apache, either.  Thanks for your help.
0
 
jlevieCommented:
lnp should work, but it does require that you have the pam-devel package installed.
0
 
nysus1Author Commented:
Yeah, I didn't have that installed.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now