The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to install and compile php with PDFLib

Discussion in 'General Discussion' started by shann, Nov 19, 2002.

  1. shann

    shann Well-Known Member

    Joined:
    Jul 5, 2002
    Messages:
    366
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Hi,

    Some one can help me to install and compile php with PDFLib.

    Anyhelp appreciate.

    Thanks
    Shann
     
  2. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    Grab pdflib from http://www.pdflib.com/ and build it (simple enough, just use the defaults unless there is some compelling reason to change the directory or options).

    If you don't have the php source, grab it, extract it, and then configure it with the same options you have now, but add --with-pdflib to the ./configure. Unless you change the defaults in the build of pdflib, you do not need to specify the directory.

    Restart apache, and you're done.
     
  3. carmatec

    carmatec Member

    Joined:
    Mar 9, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    Anette.

    I am having a problem with that.

    I downloaded the pdflib tar ball pdflib-4.0.3-Linux.tar.gz from http://www.pdflib.com/pdflib/download/index.html.

    But when I untar it all I get is a libpdf_php.so.

    I dont get the option to to ./configure.

    Also I tried adding in php.ini extension=libpdf_php.so that did not work either.

    Please advise.

    Josh
     
  4. shann

    shann Well-Known Member

    Joined:
    Jul 5, 2002
    Messages:
    366
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
  5. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    I'm not Annette, but anyway. You didn't download the source. The link to the source is down on the bottom of the page. The tarball you have to download is:
    http://www.pdflib.com/pdflib/download/pdflib-4.0.3.tar.gz
    There's also a link to the pdf.c file that must be copied to the PHP source tree (read the full instructions in pdflib).
     
  6. carmatec

    carmatec Member

    Joined:
    Mar 9, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    Hello Juanra.

    Well thanx things are working smooth.

    But there is a new problem now. php's mail() function is not working it seems.

    Any suggestions.

    Regards
    Josh
     
  7. mitul

    mitul Well-Known Member

    Joined:
    Feb 8, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    See the exmin_mainlog. If it says domain unroutable then remember to allow user nobody to send mails from the twek setting of whm panel.
     
  8. carmatec

    carmatec Member

    Joined:
    Mar 9, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    US
    Hello,

    Thanks for the tip, but for the users to send mail it seems php-suexec needs to be enabled. Even setuid doesnt work......
     
Loading...

Share This Page