Install the PECL version using "sudo pecl install pam" without removing php5-auth-pam. The build may require some build libraries to be installed, libpam0g-dev being one of them.
Then, remove the module in /etc/php5/conf.d/pam_auth.ini by prepending it with a ';' (semicolon, without quotes). Create a new file in the same directory named "pam.ini" with the contents: "extension=pam.so" (without quotes). Restart the web server.
The above workaround may be overwritten whenever php5-pam-auth is updated, but since it appears to be unmaintained, this isn't likely to happen too often.
Work-around:
Install the PECL version using "sudo pecl install pam" without removing php5-auth-pam. The build may require some build libraries to be installed, libpam0g-dev being one of them.
Then, remove the module in /etc/php5/ conf.d/ pam_auth. ini by prepending it with a ';' (semicolon, without quotes). Create a new file in the same directory named "pam.ini" with the contents: "extension=pam.so" (without quotes). Restart the web server.
The above workaround may be overwritten whenever php5-pam-auth is updated, but since it appears to be unmaintained, this isn't likely to happen too often.