{"id":107,"date":"2009-11-02T07:38:29","date_gmt":"2009-11-02T07:38:29","guid":{"rendered":"http:\/\/www.thowden.com.au\/?p=107"},"modified":"2009-11-02T07:38:29","modified_gmt":"2009-11-02T07:38:29","slug":"smeserver-7-4-ion-cube-php-loader","status":"publish","type":"post","link":"https:\/\/howden.net.au\/thowden\/2009\/11\/smeserver-7-4-ion-cube-php-loader\/","title":{"rendered":"SMEServer 7.4 Ion Cube PHP Loader"},"content":{"rendered":"<p>SME Server and its underlying CentOS setup do not include Ion Cube PHP Loader by default.<\/p>\n<p>There is no &#8216;yum install ion cube&#8217; option either due to the proprietary licence. However, there is a free download available from Ion Cube and its a quick install.<\/p>\n<p>Installing ionCube Loader:<\/p>\n<p>1. Download the program to your server using wget<br \/>\n[bash]#wget http:\/\/downloads2.ioncube.com\/loader_downloads\/ioncube_loaders_lin_x86.tar.gz<br \/>\n[\/bash]<br \/>\n2. Unpack the program<br \/>\n[bash]#tar -zxvf ioncube_loaders_lin_x86.tar.gz[\/bash]<br \/>\n3. This will probably be in your home directory or \/root depending on your access to the SME Server. Move the ion cube directory to somewhere more appropriate:<br \/>\n[bash]# mv ioncube \/opt\/[\/bash]<br \/>\n3. Go to the ion cube directory<br \/>\n[bash]# cd \/opt\/ioncube[\/bash]<br \/>\n4.Copy these files to your SME Server Primary website *<br \/>\n[bash]# cp *.php \/home\/e-smith\/files\/ibays\/Primary\/html\/[\/bash]<br \/>\n5. Open this in your browser window<br \/>\n[bash]http:\/\/yourserver_url\/ioncube-loader-helper.php[\/bash]<\/p>\n<p>and see something like this&#8230;&#8230;<\/p>\n<figure id=\"attachment_108\" aria-describedby=\"caption-attachment-108\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/howden.net.au\/test2\/files\/2009\/11\/ioncubeinstall1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-108\" title=\"ioncubeinstall1\" src=\"http:\/\/howden.net.au\/test2\/files\/2009\/11\/ioncubeinstall1.jpg\" alt=\"Ion Cube Installation\" width=\"300\" height=\"190\" srcset=\"https:\/\/howden.net.au\/thowden\/files\/2009\/11\/ioncubeinstall1.jpg 695w, https:\/\/howden.net.au\/thowden\/files\/2009\/11\/ioncubeinstall1-300x190.jpg 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-108\" class=\"wp-caption-text\">Ion Cube Installation<\/figcaption><\/figure>\n<p>6. Now the issue is really not the install but the templating of the \/etc\/php.ini in SME Server. I&#8217;ll assume that you have NOT modified the standard php.ini previously. If you have then skip the obvious directory creation step.<br \/>\n[bash]# mkdir -p \/etc\/e-smith\/templates-custom\/etc\/php.ini<br \/>\n# cd \/etc\/e-smith\/templates-custom\/etc\/php.ini<br \/>\n# touch 70ZendIonCube<br \/>\n[\/bash]<\/p>\n<p>7. We now have a template component file ready for editing. I like mcedit &#8211; part of the midnight commander suite &#8211; but you can use pico or vi or your favourite editor to edit the content as:<br \/>\n[bash]zend_extension = \/opt\/ioncube\/ioncube_loader_lin_4.3.so[\/bash]<br \/>\nSave the file and exit your editor. The purpose of this is to preserve the customisation of the system when SME Server updates are installed.<\/p>\n<p>8. Prepare the update to the php.ini from the templates<br \/>\n[bash]# \/sbin\/e-smith\/expand-template \/etc\/php.ini[\/bash]<\/p>\n<p>9. Restart Apache<br \/>\n[bash]# apachectl graceful[\/bash]<\/p>\n<p>10. Refresh the browser window for the IonCube page and you should see<\/p>\n<figure id=\"attachment_109\" aria-describedby=\"caption-attachment-109\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/howden.net.au\/test2\/files\/2009\/11\/ioncubeinstall2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-109\" title=\"ioncubeinstall2\" src=\"http:\/\/howden.net.au\/test2\/files\/2009\/11\/ioncubeinstall2.jpg\" alt=\"Ion Cube Installation Success\" width=\"300\" height=\"138\" srcset=\"https:\/\/howden.net.au\/thowden\/files\/2009\/11\/ioncubeinstall2.jpg 679w, https:\/\/howden.net.au\/thowden\/files\/2009\/11\/ioncubeinstall2-300x138.jpg 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-109\" class=\"wp-caption-text\">Ion Cube Installation Success<\/figcaption><\/figure>\n<p>&#8230;. and that should give you an operating Ion Cube PHP loader on SME Server 7.4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SME Server and its underlying CentOS setup do not include Ion Cube PHP Loader by default. There is no &#8216;yum install ion cube&#8217; option either due to the proprietary licence. However, there is a free download available from Ion Cube and its a quick install. Installing ionCube Loader: 1. Download the program to your server [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[86],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-linux-servers-and-software","tag-sme-server-ion-cube-loader-php-yum-centos"],"_links":{"self":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":0,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"wp:attachment":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}