ecommerce website design Shropshire, Custom & Ecommerce Website Designers, Web Page Design Company Shropshire UK Site Map
Phone:01743 272 609 Fax: 0709 286 1166
Home page, website design service at Shrewsbury, Shropshire. We supply website design service to business in Shropshire and whole UKAbout spark computing, website design service at Shrewsbury, Shropshire. We supply website design service to business in Shropshire and whole UKExpertise and services from spark computing, website design service at Shrewsbury, Shropshire. We supply website design service to business in Shropshire and whole UKOffice automatic solutions, online business solutions supplied by Spark computing, shrewsbury, shropshirecontact spark computing, shrewsbury, shroshire to discuss online business websites, custom software development

Archives for: April 2011, 25

25/04/11

Permalink 06:52:44 pm, Categories: General IT articles  

install pdflib on cpanel server

If you install directly from within WHM, you will have errors, either

Code:

configure: error: pdflib.h not found!

or

Code:

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
http://pkgs.org/download/centos-5-rhel-5/remi-x86_64/pdflib-lite-7.0.5-1.el5.remi.x86_64.rpm.html

and you also need pdflib-lite-devel

To compile the code, you of course need automake, c etc..

Next download pdflib

Code:

After you got it, run the following

Code:

tar -xvzf pdflib-2.1.8.tgz
cd pdflib-2.1.8
phpize
./configure
./make
./make install

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

Code:

extension=pdf.so

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

Code:

extension=pdf.so

Don’t forge to restart httpd

in cpanel, run

/scripts/restartsrv_httpd

In plain Centos, run
/sbin/service restart httpd

To test it, create a file called test.php and input one line

PHP:

<?php
phpinfo();

now run this test.php in your browser, you should see the pdflib exntension


Tweet this! Facebook Live Yahoo bookmark Digg US google bookmark

April 2011
Mon Tue Wed Thu Fri Sat Sun
 << < Current> >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  

Spark Website Design, Shropshire

Technical articles on IT solutions.

Free information on office and home IT solutions; How to get a website running for your business; self-help e-commerce; and tips on website design.

Search

Misc

XML Feeds

What is this?