{"id":641,"date":"2020-12-15T02:25:39","date_gmt":"2020-12-15T02:25:39","guid":{"rendered":"https:\/\/dft.wiki\/?p=641"},"modified":"2026-06-09T13:25:18","modified_gmt":"2026-06-09T17:25:18","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 PHP-based software from being viewed, modified, or run on unlicensed systems.<\/p>\n<p>Some applications such as <strong>FileRun<\/strong> require ionCube, so let&#8217;s install it first.<\/p>\n<pre>sudo apt update && 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>Find the PHP configuration file (php.ini) on your system:<\/p>\n<pre>locate php.ini<\/pre>\n<p>Add this line under the [PHP] block:<\/p>\n<pre>[PHP]\r\nzend_extension = \/usr\/local\/ioncube\/ioncube_loader_lin_7.4.so<\/pre>\n<p>Restart Apache and the PHP engine:<\/p>\n<pre>sudo systemctl restart apache2.service\r\nsudo systemctl restart php7.0-fpm.service<\/pre>\n<p>Run &#8216;<strong>php -v<\/strong>&#8216; and confirm that ionCube is active:<\/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: Create an empty database, a user, and grant privileges:<\/p>\n<pre>mysql -u root -p<\/pre>\n<p>Run the following commands in the MySQL terminal:<\/p>\n<pre>mysql> CREATE DATABASE <strong>filerun_db<\/strong>;\r\nmysql> CREATE USER '<strong>filerun_user<\/strong>'@'localhost' IDENTIFIED BY '<strong>password<\/strong>';\r\nmysql> GRANT ALL ON <strong>filerun_db<\/strong>.* to '<strong>filerun_user<\/strong>'@'localhost';\r\nmysql> FLUSH PRIVILEGES;\r\nmysql> EXIT;<\/pre>\n<p>Replace &#8216;<strong>filerun_db<\/strong>&#8216;, &#8216;<strong>filerun_user<\/strong>&#8216;, and &#8216;<strong>password<\/strong>&#8216; as needed.<\/p>\n<p>Download the latest version of FileRun to your web server root:<\/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>Open FileRun in your browser, for example:<\/p>\n<pre>http:\/\/example.com\/   OR   http:\/\/127.0.0.1\/<\/pre>\n<p>You will be asked for your database credentials:<\/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>The installer will create a user called &#8216;<strong>superuser<\/strong>&#8216; with a randomly generated password. Copy this password to log in, then change it immediately.<\/p>\n<p>To improve server security, remove certain privileges from the database 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 should be done after installation. Before running any FileRun updates, re-apply the privileges with:<\/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 your FileRun files, change the directory ownership:<\/p>\n<pre>sudo chown -R root:root <strong>\/var\/www\/html<\/strong><\/pre>\n<p>Then allow writes only to 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 outside the web server root:<\/p>\n<pre>sudo mkdir <strong>\/data<\/strong>\r\nsudo chown www-data:www-data <strong>\/data<\/strong><\/pre>\n<p>Then go to Settings > Admin > Users > &#8216;Select the User&#8217; > Edit > Permissions > Home Folder > Path and enter: <strong>\/data<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ionCube is a tool to protect PHP-based software from being viewed, modified, or run on [&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":14,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/641\/revisions"}],"predecessor-version":[{"id":5807,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/641\/revisions\/5807"}],"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}]}}