Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

CPanel, PHP and PDFlib

Discussion in 'General Discussion' started by xvihost, Apr 30, 2010.

  1. xvihost

    xvihost Active Member

    Sep 8, 2005
    Likes Received:
    Trophy Points:
    I recently moved an account from one server to another. The old server had PHP installed with PDF/PDFlib support enabled through EasyApache.

    The new server does not have this support (which I unfortunately found this morning when I went to make a PDF).

    I have spent the last three hours attempting to get PDFlib to work, but now I am stumped.

    First I checked EasyApache, but there is no PDF/PDFlib option anymore... crap.

    Then I went to the PDFlib site and downloaded the newest version. It contains the file, so I dropped it in, edited php.ini, restarted Apache and SWEET... it worked! EXCEPT it has "" plastered all over every page. :(

    So I then searched around and finally (of course) saw exactly what I needed in a comment on the PHP documentation:

    PHP: Installation - Manual (Only comment there)

    So I compiled PDFlib-Lite and installed... no problem.

    The PECL install was more difficult because it requires interaction which cannot be done through WHM (hint hint...).

    When I tried it from the command line it was attempting to compile in a noexec mount (which took me forever to figure out), so I used the instructions here to finally install it:

    Installing PECL extensions from command line shell

    Huge thanks to david510.

    So I got the extension in the directory, edited the php.ini, and then restarted Apache... And I STILL get:

    Fatal error: Class 'PDFlib' not found in...
    I have left out many other things I tried in the middle of all that, including copying over the old from the other box, which had the same result.

    Any thoughts?? :confused:

  2. PDW

    PDW Well-Known Member

    Dec 29, 2003
    Likes Received:
    Trophy Points:
    I watching for replies, dont have this issue but needing to do this install as well - havent gotten to far yet.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice