How to install Ioncube loader on cPanel servers

How to install Ioncube loader on cPanel servers[/caption] To start, you must decide if you want IonCube installed for your cPanel/WHM scripts or for your Apache/PHP scripts. It is pretty easy to find out if you require IonCube; the main use of IonCube is to access scripts from inside the /cPanel, /whm, or /webmail interface. If you require this, then you have to get IonCube. install Ioncube loader on cPanel servers Below, we will guide you through the steps for both.before going into details, Installing IonCube for cPanel/WHM/Webmail We have laid out both the GUI and the CLI methods below. Installing via the WHM To follow the steps below, you are required to have administrative privileges, usually the root password.Step 1: Begin by logging into WHM. This can be done by going to your servers’ IP followed by ‘/whm’ or ‘:2087’. For example: ''Step 2: Once viewing your servers’ IP, you will see a Tweak settings link on the left side, click on this.Step 3: Now, click on the PHP tab on the right-hand side.Step 4: Look for the configurable option called ‘cPanel PHP loader’ and check the ‘ioncube’ checkbox.Step 5: Lastly, click on ‘Save’. Installing via the CLI To follow the steps below, you will need to have shell access to the server as the user root.Step 1: Start by logging into the shell as the user root.Step 2: Modify ‘/etc/cpanel/cpanel.config’ and look for the line starting with ‘phploader=‘.If there is no value after the equal sign then all you have to do is add ‘ioncube’ to it. For example: ‘phploader=ioncube’.If there is another loader in place, just append your new loader by placing a comma before the additional loader. For example: ‘phploader=exampleloader,ioncube’.Step 3: Now, run the command: ‘/usr/local/cpanel/whostmgr/bin/whostmgr2 –updatetweaksettings’Step 4: Afterwards, execute this following command: ‘/usr/local/cpanel/bin/checkphpini’Step 5: And lastly, this command: ‘/usr/local/cpanel/bin/install_php_inis’ Installing IonCube Loader for Apache/PHP You have several ways to do this, they will all be listed below.Installing IonCube using the CLI version of PHPExtensionManagerThe following method is the one we recommend. It allows you to install the loaders without the need to rebuild Apache and PHP; this also makes it the quickest method.In this method, you will need shell access to the server as the user root via either the console, SSH, or any other means.Step 1: Begin by logging into the console as root.Step 2: Then, execute the following command: ‘/scripts/phpextensionmgr install IonCubeLoader’That is it. Simple and fast. Installing IonCube using the WHM In the next method, we will use the GUI version of easyapache to install the ioncube loader.If you are not interested in rebuilding Apache and PHP then do not use this method.Step 1: Start by logging into the WHM as the user root.Step 2: Once you are at the WHM interface, scroll down and the click on the ‘EasyApache’ link on the left-hand side.Step 3: Below ‘Profile’, choose ‘Previous Saved Config’ and click on the ‘Start customizing based on profile’ button.Step 4: Below ‘Apache Version’, find and click on ‘Next Step’Step 5: Now, below ‘PHP version’ again find and click on ‘Next Step’Step 6: Below the ‘Short Options list’, check the ‘ioncube Loader for PHP’ option and then click ‘Save and Build’.Step 7: This procedure may take a little while to finish; usually between 10-30 minutes depending on your hardware.ThanksDo let us know if you want to add any specific Linux or Web panels topics into this tutorial series.

By | Aug 6

Accessing cPanel/WHM without a Password

Accessing cPanel/WHM without a Password[/caption]   Login cPanel/WHM without a Password cPanel is the most commonly used panel for Linux servers and allows users to control their server with an easy-to-use interface. The Web Host Manager (WHM) is a powerful program which grants you the ability to administer the server. cPanel is the site management panel where every individual account is accessible by the owner of that specific account.You may access the WHM portal through 'http://IP-address:2086' or 'https://IP-address:2087' with ‘root’ as the Username. The password should be the same as the server root Password.You can access cPanel from 'http://IP-address:2082' or 'https://IP-address:2083' with the right account username and password. However there is a way to access WHM/cPanel without the correct password;. If you have shell access to the server then you can do this by running the command ‘whmapi1’ using the Linux shell terminal.WHMAPI1 is the utility to run WHM api commands which is used to run administrative tasks, manage cPanel and WHM services, as well as administrating cPanel and WHM reseller accounts.Make the WHM root session by executing the ‘whmapi1’ commandYou can create a temporary WHM root session by using the following in the cli. # whmapi1 create_user_session user=root service=whostmgrd locale=en You should receive the below output. data: cp_security_token: /cpsess7930048577 expires: ‘1491540516’ locale: en service: whostmgrd session: root:LCKz_G4ZISNdw77u:create_user_session,96b5e9c677a842314de146743ed1b030 url: metadata: command: create_user_session reason: Created session result: 1 version: 1 Copy the WHM Url and put it in the browser; then you should be able to access WHM without having to use a password. This will be a one time user session to access the WHM panel.If you would like to access the reseller WHM account simply replace the ‘user’ name as the reseller account username from the root. # whmapi1 create_user_session user=reseller service=whostmgrd locale=en Create a cPanel user session by using ‘whmapi1’ command.To make a cPanel account user session, you can run the command below before copying the URL and pasting it to the browser; this will grant you the ability to access cPanel for that specific user with out having to put in your password. # whmapi1 create_user_session user=myowndom service=cpaneld locale=en You should receive the following output: data: cp_security_token: /cpsess5912188631 expires: ‘1491539384’ locale: en service: cpaneld session: myowndom:ROD5U7R74EF3G3e0:create_user_session,c9ffbc44e75b866374096d78c1726f02 url: locale=en&session=myowndom%3aROD5U7R74EF3G3e0%3acreate_user_session%2cc9ffbc44e756352g4526d78c1726f02 metadata: command: create_user_session reason: Created session result: 1 version: 1

By | Aug 9