PDA

View Full Version : Need help installing the PAM module for PHP



Vunutus
November 4th, 2009, 04:18 PM
The PHP project I'm working on needs to authenticate users against system user accounts. After researching, I have found a PHP module claiming to do just that.

I downloaded the module, but unfortunately it doesn't appear to have any instructions as to how I can actually install it. I've never installed a PHP module before so I'm a little lost. The downloaded archive contains a .c and .h file so I assume it needs to be compiled first, but again, I don't know what to do. Is it possible to have a "snap-in" type module or do I need to recompile PHP altogether?

Either way, I would appreciate if someone could clear up my confusion here or provide a link explaining exactly what I need to do.

Link to module: http://pecl.php.net/package/PAM

sisco311
November 4th, 2009, 04:23 PM
The module is in the repos:

sudo aptitude install php5-auth-pam

http://www.dokuwiki.org/auth:pam#ubuntu (http://www.dokuwiki.org/auth:pam#ubuntu)

Vunutus
November 4th, 2009, 04:26 PM
The module is in the repos:

sudo aptitude install php5-auth-pam

http://www.dokuwiki.org/auth:pam#ubuntu (http://www.dokuwiki.org/auth:pam#ubuntu)

Oh god I love it when things I want are apt-gettable

AlexC_
November 4th, 2009, 05:13 PM
For future reference, installing things from PECL or PEAR:


sudo pecl install foo; sudo pear install foo
You'll need the 'php5-dev' (or php-dev, I've no idea what Ubuntu uses) package first, though. If running PHP as a module to Apache, restart webserver.