HostOnNet Blog


Category Archives: PHP

PHP execute shell commands with exec

PHP exec command is used to execute system commands. I wanted to run “composer install” on a server with out SSH access. I created following script, uploaded to server.


Install PHP from source for local Development

Install PHP 5.6 on Ubuntu 16.04 To Install PHP on Ubuntu Local development machine, install dependencies sudo apt-get install libcurl4-openssl-dev libjpeg-dev libmcrypt-dev libtidy-dev libxml2-dev libpng12-dev libgd-dev For PHP 5.6, run mkdir ~/src cd ~/src wget http://in3.php.net/get/php-5.6.30.tar.gz/from/this/mirror -O php-5.6.30.tar.gz tar xf


Install Composer

Composer is PHP package manager. Something like npm, pip etc.. used by other languages. To install composer, run Install dependency using composer List Installed Packages Update Packages


Find Server Main IP

Many IP scripts require you to white list your sever IP before you can use API. On a server, there can be multiple IP address. But only main IP is used for out going traffic. So you need to find


ioncube

Installing ioncube on Ubuntu Installing IonCube for cPanel/WHM/Webmail Installing ioncube loader on CentOS


How to remove captcha from WHMCS domain checker

We can disable captcha through Setup > General > Security Tabs will disable captcha globally. But if do this,that will increase the spam support tickets. Follow the stpes if you want to remove captcha only from Domain Checker page(www.yourdomain.com/whmcs//domainchecker.php) Remove


How to install Apache MySQL and PHP on Cent OS 6.6

Following tutorial describes how to install Apache MySQL and PHP on a Cent OS based server. First we need to identify the version of OS using on the server. For that, login to the server as root user and run


Fatal error: Class ‘Mobile_Detect’ not found – PHP Melody

How to fix ‘Fatal error: Class ‘Mobile_Detect’ not found ” error in PHP Melody theme installation I have followed the instructions on ‘Essence User manual.pdf’ 1) Uploaded all the below files to PHP Melody website in the appropriate directories. include


Disable the php information on server for client

To disable the php information, open a servers php.ini file and make the following changes. Change from To It will prevent hacker to easily see that you have PHP installed on the system and what version you are running. You


Install PHP On CentOS

PHP is a widely used open-source general purpose scripting language that is especially suited for web development and can be embedded into HTML. To install php, open terminal and type in this command: You can install multiple libraries at once