{"id":2149,"date":"2017-10-03T14:24:40","date_gmt":"2017-10-03T08:54:40","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=2149"},"modified":"2017-10-03T14:24:40","modified_gmt":"2017-10-03T08:54:40","slug":"install-ioncube-loader-linux","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/install-ioncube-loader-linux\/","title":{"rendered":"How to install Ioncube loader on Linux"},"content":{"rendered":"<h3>How to install Ioncube loader on Linux<\/h3>\n<p><strong>Date Posted: 03-10-2017<\/strong><\/p>\n<p>Ioncube loader is a php module used to encrypt php code. This post explains on how to install Ioncube loader on linux server. The Linux server can be Ubuntu, centos or other operating system.<\/p>\n<h4>Prerequisites:<\/h4>\n<ol>\n<li>Linux Host.<\/li>\n<li>Apache Webserver. If there is no webserver installed, follow the below articles to install webserver.\n<ol>\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/install-apache2-php7-mysql-redhat-7-server\/\">Redhat<\/a><\/li>\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/install-apache-php-fpm-ubuntu-16\/\">Ubuntu<\/a><\/li>\n<\/ol>\n<\/li>\n<li>Php.<\/li>\n<\/ol>\n<h4>Implementation:<\/h4>\n<p>Identify the architecture of the server.<\/p>\n<p><code>arch<\/code><\/p>\n<p>It will display either\u00a0<em>x86_64 or\u00a0<\/em><em>i686 or i386.\u00a0<\/em>If its x86_64 then architecture of the\u00a0 OS is 64 bit architecture. If its i686 or i386 then OS is 32 bit architecture.<\/p>\n<p>Change the directory.<\/p>\n<p><code>cd \/usr\/local\/src<\/code><\/p>\n<p>Depends on the architecture, download the ioncube.<\/p>\n<p>For 64 bit architecture,<\/p>\n<p><em><code>wget http:\/\/downloads3.ioncube.com\/loader_downloads\/ioncube_loaders_lin_x86-64.tar.gz<\/code><\/em><\/p>\n<p>For 32 bit architecture,<\/p>\n<p><code>wget\u00a0https:\/\/downloads.ioncube.com\/loader_downloads\/ioncube_loaders_lin_x86.tar.gz<\/code><\/p>\n<p>Extract the file.<\/p>\n<p><code>tar xvfz ioncube_loaders_lin_x86-64.tar.gz<\/code><\/p>\n<p>Create a php info on domain documentroot and identify the\u00a0<em>extension_dir\u00a0<\/em>by accessing the info page on the browser.<\/p>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/Extension_dir.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignleft size-full wp-image-2150\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/Extension_dir.png\" alt=\"\" width=\"608\" height=\"220\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/Extension_dir.png 608w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/Extension_dir-300x109.png 300w\" sizes=\"(max-width: 608px) 100vw, 608px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>In the example, extension_dir is\u00a0<em>\/opt\/phpfarm\/inst\/php-5.3.29\/lib\/php\/extensions\/no-debug-non-zts-20090626\/\u00a0<\/em>and the PHP version is\u00a0<strong><em>5.3<\/em><\/strong><\/p>\n<p>Copy php5.3.so module file to extension_dir location.<\/p>\n<p><code>cp ioncube_loader_lin_5.3.so \/opt\/phpfarm\/inst\/php-5.3.29\/lib\/php\/extensions\/no-debug-non-zts-20090626<\/code><\/p>\n<p>Identify php.ini configuration file from phpinfo page.<\/p>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/php_ini.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-2151\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/php_ini.png\" alt=\"\" width=\"601\" height=\"261\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/php_ini.png 601w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/php_ini-300x130.png 300w\" sizes=\"(max-width: 601px) 100vw, 601px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Open the configuration file and append the following line.<\/p>\n<p><code>vi\u00a0\/opt\/phpfarm\/inst\/php-5.3.29\/lib\/php.ini\u00a0<\/code><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">zend_extension=\/opt\/phpfarm\/inst\/php-5.3.29\/lib\/php\/extensions\/no-debug-non-zts-20090626\/ioncube_loader_lin_5.3.so<\/pre>\n<p>Restart the apache2 service.<\/p>\n<p><code>service apache2 restart<\/code><\/p>\n<p>Check the phpinfo page and we can see the ioncube loader.<\/p>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/ioncube.png\"><img decoding=\"async\" class=\"alignleft  wp-image-2152\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/ioncube.png\" alt=\"\" width=\"539\" height=\"145\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/ioncube.png 624w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2017\/10\/ioncube-300x81.png 300w\" sizes=\"(max-width: 539px) 100vw, 539px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to install Ioncube loader on Linux Date Posted: 03-10-2017 Ioncube loader is a php module used to encrypt php [&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":[385,273],"class_list":["post-2149","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-ioncube","tag-php","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-yF","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2149","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=2149"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2149\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=2149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=2149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=2149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}