Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2005
    Posts
    45

    Default CPanel, PHP and PDFlib

    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 libpdf_php.so file, so I dropped it in, edited php.ini, restarted Apache and SWEET... it worked! EXCEPT it has "www.pdflib.com" 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:

    Code:
    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 pdf.so from the other box, which had the same result.

    Any thoughts??

    Thanks,
    Tom

  2. #2
    PDW
    PDW is offline
    Member
    Join Date
    Dec 2003
    Posts
    115

    Default

    I watching for replies, dont have this issue but needing to do this install as well - havent gotten to far yet.

Similar Threads & Tags
Similar threads

  1. Problem: compile php with PDFLIB and PHP 5.1.6
    By CoolMike in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 09-08-2007, 06:32 AM
  2. easyapache php 4.4.2 & PDFLib
    By nickp666 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-28-2006, 07:31 AM
  3. PHP, PDFs, and pdflib
    By MZmuda in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-19-2006, 05:10 PM
  4. PDFlib, PHP, Apache
    By bigpy2003 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-06-2005, 05:42 PM
  5. pdflib for php
    By ialex03 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-29-2004, 01:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube