<\/span><\/h2>\nWe have PHP version 5.4.16 installed on our test server, so we will need the matching ionCube loader.<\/p>\n
List the content of the ‘ioncube’ directory to find the necessary file<\/p>\n
# ls ioncube\r\nioncube_loader_lin_4.1.so\u00a0\u00a0\u00a0\u00a0 ioncube_loader_lin_4.4.so\u00a0\u00a0\u00a0\u00a0 ioncube_loader_lin_5.1.so\u00a0\u00a0\u00a0\u00a0 ioncube_loader_lin_5.3.so\u00a0\u00a0\u00a0\u00a0 ioncube_loader_lin_5.5.so\u00a0\u00a0\u00a0\u00a0 LICENSE.txt\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 USER-GUIDE.txt\r\nioncube_loader_lin_4.2.so\u00a0\u00a0\u00a0\u00a0 ioncube_loader_lin_4.4_ts.so\u00a0 ioncube_loader_lin_5.1_ts.so\u00a0 ioncube_loader_lin_5.3_ts.so\u00a0 ioncube_loader_lin_5.5_ts.so\u00a0 loader-wizard.php\r\nioncube_loader_lin_4.3.so\u00a0\u00a0\u00a0\u00a0 ioncube_loader_lin_5.0.so\u00a0\u00a0\u00a0\u00a0 ioncube_loader_lin_5.2.so\u00a0\u00a0\u00a0\u00a0 ioncube_loader_lin_5.4.so\u00a0\u00a0\u00a0\u00a0 ioncube_loader_lin_5.6.so\u00a0\u00a0\u00a0\u00a0 README.txt\r\nioncube_loader_lin_4.3_ts.so\u00a0 ioncube_loader_lin_5.0_ts.so\u00a0 ioncube_loader_lin_5.2_ts.so\u00a0 ioncube_loader_lin_5.4_ts.so\u00a0 ioncube_loader_lin_5.6_ts.so\u00a0 USER-GUIDE.pdf<\/pre>\nWe will use the ‘ioncube_loader_lin_5.4.so’ file because it matches our PHP version. If you have a different version of PHP installed on your server you will have to use the appropriate file.<\/p>\n
To find out the location of the extension directory, run\u00a0the following command<\/p>\n
# php -i | grep extension_dir\r\nextension_dir => \/usr\/lib64\/php\/modules => \/usr\/lib64\/php\/modules<\/span>\r\nsqlite3.extension_dir => no value => no value<\/pre>\nCopy the ‘ioncube_loader_lin_5.4.so’ ionCube loader to the extension directory marked with red color.<\/p>\n
# cp ioncube\/ioncube_loader_lin_5.4.so \/usr\/lib64\/php\/modules<\/pre>\nNow, open the PHP configuration file and add the following line<\/p>\n
# vi \/etc\/php.ini\r\nzend_extension = \/usr\/lib64\/php\/modules\/ioncube_loader_lin_5.4.so<\/pre>\nPlease note that the path of the PHP configuration file may be different on your server. You can execute ‘php –ini’ to find the loaded PHP configuration file.<\/p>\n
# php --ini |grep \"Loaded Configuration File\"\r\nLoaded Configuration File:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/etc\/php.ini<\/pre>\nSave the configuration file and restart the Apache web server for the changes to take effect.<\/p>\n
# systemctl restart httpd<\/pre>\n<\/span>8. Verify ionCube Loader installation<\/span><\/h2>\nYou can check if ionCube Loader is successfully enabled using the following command<\/p>\n
# php -v\r\nPHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59)\r\nCopyright (c) 1997-2013 The PHP Group\r\nZend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies\r\nwith the ionCube PHP Loader (enabled)<\/span> + Intrusion Protection from ioncube24.com (unconfigured) v5.1.2, Copyright (c) 2002-2016, by ionCube Ltd.<\/pre>\n \nOf course you don\u2019t have to install ionCube loader on CentOS 7, if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to enable ionCube Loaders on your CentOS 7 server for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n
PS.<\/strong><\/span> If you liked this post, on how to install ionCube Loader on a CentOS 7,\u00a0 please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"We’ll show you, how to install ionCube loader on a CentOS 7. ionCube loader is a PHP module that enables … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":23990,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,13,1712],"tags":[34,191,50],"yoast_head":"\nInstall ionCube Loader on a CentOS 7 - RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n\t \n\t \n\t \n