HostOnNet Blog

Author Archives: admin

Install PHP 5.5 on Ubuntu 12.x

To install PHP 5.5.x on Ubuntu, add PPA To install PHP 5, run For updating existing version of PHP, run PHP Version before upgrade After Upgrade XCache is exta, i installed it with After PHP Upgrade.


Installing Ruby Gems from Gemfile

Gemlist list ruby gems needed for an application. To install all gems required by an application, go to application folder and run bundle install If you have no bundle command available, install it with gem gem install bundler Installing dependency


Can’t install RMagick 2.13.2. Can’t find MagickWand.h.

When installing rmagick gem, i got following error Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for Ruby version >= 1.8.5… yes checking for gcc… yes checking for Magick-config… yes Warning: Found a partial ImageMagick installation. Your


Installing Python 2.7 on CentOS for Django Framework

Django Framework need python 2.7 to run. CentOS come with python 2.6. To install python 2.7, run Now enable python 2.7 by running python –version Installing Setuptool, pip and Django


Goodbye FireFox, Welcome Google Chrome

I was using Firefox for long. For extra security i used NoScriptFirefox extension. This will stop bad scripts from starting when you visit unknown or hacked web sites. I recommend anyone using firfox or google chrome use NoScript (NotScript for


FIleZilla FTP Software Is Insecure

I was checking through the MetaSploit framework, i found the exploit to hack FileZilla. FileZilla store passwords in pain text in XML file. This was the same for years. I thought they had fixed it long back. I have not


PHP Script to alert if mail queue size is above X on Cpanel Server

I created a php script to alert if mail queue size if above 100. <?php $cmd =  ‘/usr/sbin/exim -bpc’; $num_mails = exec($cmd); if ($num_mails > 100) { $hostname = exec(‘/bin/hostname’); $subject = ‘Mail queue alert on ‘ . $hostname; $mail_text


PHP Fatal error: Class ‘DOMDocument’ not found in LocalisationCache.php

While install MediaWiki 1.20.4, i got error PHP Fatal error: Class ‘DOMDocument’ not found in LocalisationCache.php This is because PHP is not compiled with XML support, to fix install php-xml package. [root@lin wiki]# yum install php-xml Loaded plugins: fastestmirror, presto


phpmyadmin auto login

Install phpMyAdmin in RHEL/CentOS/Ubuntu/Debian To set phpmyadmin to auto login, edit config.inc.php Find $cfg[‘Servers’][$i][‘auth_type’] = ‘cookie’; Replace with $cfg[‘Servers’][$i][‘auth_type’] = ‘config’; Find $cfg[‘Servers’][$i][‘host’] = ‘localhost’; Add Below $cfg[‘Servers’][$i][‘user’] = ‘root’; $cfg[‘Servers’][$i][‘password’] = ‘YOUR_MYSQL_ROOT_PW_HERE’;


Installing php-mcrypt in CentOS 6

After installing phpmyadmin on CentOS 6 64 bit server, phpmyadmin displays warning The mcrypt extension is missing. Please check your PHP configuration. php-mcrypt is not availble in CentOS repo. To install it, you need to install EPEL repo. Now install