Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Where do I get an updated version of the PHP pam_auth module? Can't find it on yum and the latest version I can find to download is for PHP 4.3.

share|improve this question

I was looking for the answer to this myself, and eventually wound up having to solve it myself. Since I'd found this question earlier in my searches, I figured I'd provide what worked for me :)

  1. Download the pam_auth source from (or for convenience I have zipped the latest files, current as of revision 324283, here)

  2. Change into the directory you've downloaded/unzipped/etc the files into, and run the following commands:

    • phpize
    • ./configure
    • make
    • make install
  3. Add to your php.ini

  4. Restart Apache; use phpinfo() to ensure the PAM module is running.

When verifying via phpinfo(), there should be a section like so:


I successfully installed pam_auth on CentOS 5.6/Apache 2.2.3/PHP 5.3.10 using the above instructions; hopefully it will work just as well on CentOS 6. Good luck!

share|improve this answer
Doktor's process worked well, thanks for the help. On a minimal base install, I also needed to run: yum install gcc yum install pam-devel yum install make – user139070 Sep 30 '12 at 18:00
Thank you, works on Debian too! (Just had to move the extension to my extension dir) after make install. – Devator Apr 18 '13 at 7:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.