{"id":2182,"date":"2017-10-16T15:49:57","date_gmt":"2017-10-16T10:19:57","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=2182"},"modified":"2017-10-16T15:52:17","modified_gmt":"2017-10-16T10:22:17","slug":"pdflib-support-php7-0-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/pdflib-support-php7-0-ubuntu-16-04\/","title":{"rendered":"PDFlib support for PHP7.0 on Ubuntu 16.04"},"content":{"rendered":"<h2>PDFlib support for PHP7.0 on Ubuntu 16.04<\/h2>\n<p><strong>Date posted: 16-10-2017<\/strong><\/p>\n<p>Task: Enable PDF for PHP7.0<\/p>\n<p>Based on your server architecture download PDFlib software from <a href=\"https:\/\/www.pdflib.com\/download\/pdflib-family\/pdflib\/\" target=\"_blank\" rel=\"noopener\">PDFlib<\/a> site.<\/p>\n<p><code>cd \/usr\/local\/src<\/code><\/p>\n<p><code>wget https:\/\/www.pdflib.com\/binaries\/PDFlib\/911\/PDFlib-9.1.1p3-Linux-x86_64-php.tar.gz<\/code><\/p>\n<p><code>tar -xvf PDFlib-9.1.1p3-Linux-x86_64-php.tar.gz <\/code><br \/>\n<code>cd PDFlib-9.1.1p3-Linux-x86_64-php\/<\/code><\/p>\n<p>Find PHP extension_dir<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># php -ini | grep extension_dir\r\nextension_dir =&gt; \/usr\/lib\/php\/20151012 =&gt; \/usr\/lib\/php\/20151012<\/pre>\n<p>copy .so file to that directory<br \/>\n<code>cp bind\/php\/php-700\/php_pdflib.so \/usr\/lib\/php\/20151012\/<\/code><\/p>\n<p>Add below entry in your php.ini file<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">vi \/etc\/php\/7.0\/apache2\/php.ini\r\nextension=php_pdflib.so<\/pre>\n<p>Verify apache syntax and restart if OK<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># apachectl -t\r\nSyntax OK\r\n<\/pre>\n<p><code> \/etc\/init.d\/apache2 graceful<\/code><\/p>\n<p>You can verify it from phpinfo &#8211; http:\/\/SERVERIP\/info.php<\/p>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/pdflib.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-2186\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/pdflib-300x48.png\" alt=\"\" width=\"300\" height=\"48\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/pdflib-300x48.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/pdflib-768x124.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/pdflib.png 967w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PDFlib support for PHP7.0 on Ubuntu 16.04 Date posted: 16-10-2017 Task: Enable PDF for PHP7.0 Based on your server architecture [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-2182","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-zc","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=2182"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2182\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=2182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=2182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=2182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}