{"id":641,"date":"2020-12-15T02:25:39","date_gmt":"2020-12-15T02:25:39","guid":{"rendered":"https:\/\/dft.wiki\/?p=641"},"modified":"2026-04-21T13:35:35","modified_gmt":"2026-04-21T17:35:35","slug":"installing-ioncube-and-filerun-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=641","title":{"rendered":"Installing ionCube and FileRun on Ubuntu"},"content":{"rendered":"<p><strong>ionCube<\/strong> is a tool to protect software written using the PHP programming language from being viewed, changed, and run on unlicensed computers.<\/p>\n<p>Some applications such as <strong>FileRun<\/strong> require ionCube to be run, so let&#8217;s meet the requirement and then install it.<\/p>\n<pre>sudo apt update &amp;&amp; sudo apt upgrade -y\r\ncd \/tmp\r\nwget http:\/\/downloads3.ioncube.com\/loader_downloads\/ioncube_loaders_lin_x86-64.tar.gz\r\nsudo tar xzf ioncube_loaders_lin_x86-64.tar.gz -C \/usr\/local<\/pre>\n<p>Localize the configuration file (php.ini) for the webserver in your system:<\/p>\n<pre>locate php.ini<\/pre>\n<p>Append this line under the block [PHP]:<\/p>\n<pre>[PHP]\r\nzend_extension = \/usr\/local\/ioncube\/ioncube_loader_lin_7.4.so<\/pre>\n<p>Restart your webserver (Apache) and the PHP engine:<\/p>\n<pre>sudo systemctl restart apache2.service\r\nsudo systemctl restart php7.0-fpm.service<\/pre>\n<p>Issue &#8216;<strong>php -v<\/strong>&#8216; and check if you get ionCube active in your server:<\/p>\n<pre>PHP 7.4.8 (cli) (built: Jul 13 2020 16:46:22) ( NTS )\r\nCopyright (c) The PHP Group\r\nZend Engine v3.4.0, Copyright (c) Zend Technologies\r\n<strong>with the ionCube PHP Loader + ionCube24 v10.4.1, Copyright (c) 2002-2020, by ionCube Ltd.<\/strong>\r\nwith Zend OPcache v7.4.8, Copyright (c), by Zend Technologies<\/pre>\n<p>FileRun: Creating Empty Database, User, and granting Privileges to it:<\/p>\n<pre>mysql -u root -p<\/pre>\n<p>Issue the following commands inside the MySQL terminal:<\/p>\n<pre>mysql&gt; CREATE DATABASE <strong>filerun_db<\/strong>;\r\nmysql&gt; CREATE USER '<strong>filerun_user<\/strong>'@'localhost' IDENTIFIED BY '<strong>password<\/strong>';\r\nmysql&gt; GRANT ALL ON <strong>filerun_db<\/strong>.* to '<strong>filerun_user<\/strong>'@'localhost';\r\nmysql&gt; FLUSH PRIVILEGES;\r\nmysql&gt; EXIT;<\/pre>\n<p>Replace &#8216;<strong>filerun_db<\/strong>&#8216;, &#8216;<strong>filerun_user<\/strong>&#8216;, and &#8216;<strong>password<\/strong>&#8216; as required.<\/p>\n<p>Download the latest version of FileRun to the root of your webserver.<\/p>\n<pre>cd \/var\/www\/html\/\r\nsudo wget -O FileRun.zip http:\/\/www.filerun.com\/download-latest\r\nsudo unzip FileRun.zip\r\nsudo chown -R www-data:www-data \/var\/www\/html\/<\/pre>\n<p>Try to access the FileRun with the Browser. For example:<\/p>\n<pre>http:\/\/example.com\/\u00a0 \u00a0OR\u00a0 \u00a0http:\/\/127.0.0.1\/<\/pre>\n<p>You will have to inform the credentials to access the database.<\/p>\n<pre>MySQL Hostname: localhost\r\nDatabase Name: <strong>filerun_db<\/strong>\r\nMySQL User: <strong>filerun_user<\/strong>\r\nUser's Password: <strong>password<\/strong><\/pre>\n<p>It will create one user called &#8216;<strong>superuser<\/strong>&#8216; and a random password, copy this password to make the first access and change it immediately.<\/p>\n<p>To increase the security of your server, remove certain privileges from the user in the MySQL terminal.<\/p>\n<pre>REVOKE ALTER, DROP ON <strong>filerun_db<\/strong>.* FROM '<strong>filerun_user<\/strong>'@'localhost';\r\nFLUSH PRIVILEGES;<\/pre>\n<p>This process has to be done after the installation, and before updates of the FileRun will be necessary to re-apply the privileges. See how in the command below:<\/p>\n<pre>GRANT ALTER, DROP ON <strong>filerun_db<\/strong>.* TO '<strong>filerun_user<\/strong>'@'localhost';\r\nFLUSH PRIVILEGES;<\/pre>\n<p>To protect the FileRun files change directory permission as follows.<\/p>\n<pre>sudo chown -R root:root <strong>\/var\/www\/html<\/strong><\/pre>\n<p>Then allow alterations only in the following directory:<\/p>\n<pre>sudo chown -R www-data:www-data \/var\/www\/html\/system<strong>\/data<\/strong><\/pre>\n<p>The data directory can also be moved to outside the range of the webserver:<\/p>\n<pre>sudo mkdir <strong>\/data<\/strong>\r\nsudo chown www-data:www-data <strong>\/data<\/strong><\/pre>\n<p>Than go to Settings &gt; Admin &gt; Users &gt; &#8216;Select the User&#8217; &gt; Edit &gt; Permissions &gt; Home Folder &gt; Path and place: <strong>\/data<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ionCube is a tool to protect software written using the PHP programming language from being [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,7],"tags":[],"class_list":["post-641","post","type-post","status-publish","format-standard","hentry","category-linux","category-web"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=641"}],"version-history":[{"count":13,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/641\/revisions"}],"predecessor-version":[{"id":5493,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/641\/revisions\/5493"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}