If you install directly from within WHM, you will have errors, either
configure: error: pdflib.h not found!
PDFlib extension requires at least pdflib 4.0.x.
See config.log for more information.
That’s because you haven’t got pdflib-lite installed yet.
If you have a rpm based Linux system, you can download pdflib-lite here
and you also need pdflib-lite-devel
To compile the code, you of course need automake, c etc..
Next download pdflib
After you got it, run the following
tar -xvzf pdflib-2.1.8.tgz
If you don’t have phpize (you would have phpize command not found error), you need to install php-devel package
finally, open /usr/local/lib/php.ini and add one line
If you have a plain Centos server, you need to create a new file at /etc/php.d/pdf.ini
and add a single line
Don’t forge to restart httpd
in cpanel, run
In plain Centos, run
/sbin/service restart httpd
To test it, create a file called test.php and input one line
now run this test.php in your browser, you should see the pdflib exntension