cPanel – Installing Memcached !

Caching mechanisms are always useful to improve the speed and performance of the services being provided. Especially when you have dynamic webpages that are required to be loaded up, caching mechanisms, if enabled can be used to load the pages up quickly without bottle-necking the server.

Memcache(d) – | ‘d’ for daemon |  is an open source caching method used to speed-up webpages and its parsing.

Steps to install it on a cPanel based server is given below :

# yum install memcached ( ensure the EPEL repo’s are enabled ) : help needed on this ? Check this third-party link

# service memcached start – start the service.

# pecl install memcache – Install PHP memcache.

Now, make sure the memcache module is referenced in the php.ini file. If not, add the memcache extension in php.ini file.

# echo "" >> /usr/local/lib/php.ini

# service httpd restart

# chkconfig --levels 235 memcached on : To ensure memcached will be up even after a server reboot:

# php -m | grep memcache – check if you are good to go !

You can find the configuration file at –  vi /etc/sysconfig/memcached

Dont forget to open the port in your Firewall !


cPanel – Install Google mod_pagespeed module for Apache

“mod_pagespeed is an open-source Apache module created by Google to help Make the Web Faster by rewriting web pages to reduce latency and bandwidth” –

To incorporate this module to your Apache webserver in a cPanel running server, do the following steps :

Note : This is meant for Apache 2.2.x versions.

1) Clone the installation scripts to the server :

# /usr/local/cpanel/3rdparty/bin/git clone /tmp/pagespeed/

2) Create a tar.gz custom_opt_mod for EasyApache script to be detected :

# cd /tmp/pagespeed/Easy
# tar -zcvf pagespeed

3) Move the custom mod to the place which is scanned by EasyApache ( create that folder, if not already present ) :

# mv -t /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy/

4)  Remove the cloned script from /tmp

cd && rm -rf /tmp/pagespeed

Now, login to your cPanel WHM > EasyApache and look for “mod_pagespeed” option under the short lists along with other Apache modules. Select it,  make sure to enable deflate and version module.  Re-compile Apache webserver using this and you are good to go with PageSpeed.

– The default conf file will be under – /usr/local/apache/conf/

– Refer these sites to customize your configurations :


Root your Samsung Galaxy Tab4 SM-T-231

I recently bought this Galaxy Tab4 and opted to use without a sim. However, the notification “Insert your SIM”, was driving me crazy and I decided to remove this system notification, but needed to root my device before that. If you wish to root your Galaxy Tab4, use the following given steps :

1) Make sure all the samsung drivers are installed in your PC

2) Boot the device into download mode by holding Power+Vol down+home and connect to computer using the USB cable.

3) Install Odin 1.85 ( Download options can be found here )

4) Download the openrecovery-twrp from this URL here

5) Open Odin, select PDA and then select the just downloaded file – openrecovery-twrp-


Make sure to untick every option as given in the above screenshot.

6) Once the PDA along with the file is selected, hit the button ‘Start’

7) Once this is complete, power-off the device, and then press Power+vol up+home to boot into twrp recovery menu.

8) select the option –  reboot > system and then move across the slide option to install root.

9) As your device is rebooted open superuser installer app and follow instructions to update the App from PlayStore and then install SU binary updates and finally then reboot.

The above steps will ensure the Device is rooted.

Now, to remove that agonizing notification “No Sim inserted”, do the following steps :

  • Download the free “Notifications Off”  App from Play store
  • Once it is installed, open the App and search for “system ui” and then un-check it and save your settings.

Vanished ! 😀


cPanel upgrade to 11.50.x – issues with horde database ?

Prior to cPanel & WHM version 11.50,  Horde user data was stored in a single server-wide MySQL database. However, in 11.50, cPanel moved these data to individual SQLite database for each cPanel account.

Recently, during the upgrade, several users are seeing this failure message :

While attempting to back up Horde database, mysqldump did not exit cleanly: 2

For more information about the exact nature of the failure, review the /var/cpanel/logs/horde_mysqltosqlite_log file. cPanel & WHM versions 11.50 and later require SQLite for Horde data storage. Any Horde data that the system could not migrate is not visible to Horde users.

Review the log file as mentioned and see if the entire conversion has failed.

The command to perform the conversion in full on a server that did not get a chance to begin the conversion would be :

# /scripts/horde_mysqltosqlite

If you encounter a server that has been partially completed according to the output of the conversion process  /var/cpanel/logs/horde_mysqltosqlite_log , then it can be performed for a single user as per the logs using the following command :

# /usr/local/cpanel/3rdparty/bin/perl -MCpanel::Horde::MySQLToSQLite -e 'Cpanel::Horde::MySQLToSQLite->new->convert_user("cpanelaccountname")'

Replace ‘cpanelaccountname‘ with the concerned cpanel account name viewed from the logs !


Corrupt Roundcube tables in WHM ?

Are you getting a message from cPanel saying something like ?

check_mysql has determined that there are corrupted database tables .

cPanel & WHM has determined that the following database tables are corrupt: 

Error : Table 'roundcube.contacts' doesn't exist
Error : Table 'roundcube.identities' doesn't exist
Error : Table 'roundcube.messages' doesn't exist
Error : Table 'roundcube.session' doesn't exist

The roundcube database on the server might have got corrupt. You can re-generate the database by stopping the MySQL service, moving away the corrupt ones, restarting the service and then moving ahead with updating roundcube :

# /etc/init.d/mysql stop

# mv /var/lib/mysql/roundcube/ var/lib/mysql/roundcube_bk

# /scripts/restartsrv_mysql

# /usr/local/cpanel/bin/update-roundcube --force

Once this is done, you will be able to access roundcube and the databases will be fixed !


Upgrade / install a different version of Python in CentOS !

The Python version which comes along with CentOS is usually 2.4.x, which is way behind and some of the applications / scripts would require a newer version of Python.

Upgrading Python in a cPanel environment using yum is not preffered as it may break services / managers including yum which is dependent on Python.

The best option will be to install a different version of Python at a different location. The default Python binary will be at /usr/bin/python. We can install the newer one at an alternate location. Following steps will help you :

cd /usr/src


( You can download a different version if you prefer, just go to the above URL – deleting upto /3.0.. and check for the versions )

tar -xvzf Python-3.0.tgz

cd Python-3.0

./configure –prefix=/usr/local


make install

Now, Python3.0 will be installed in /usr/local and the binary will be available at /usr/local/bin/python3.0 and you can use this path as reference to scripts / apps which require the newer version.

That’s it !


Remove the option to change the theme for a cPanel user !

There might be situations in which a particular cPanel user mess with his themes and you would want to limit his privilages so that he cant change the theme to a specific one or two. Perhaps you do not want him to change to X Theme or Paper Lantern.

To do this, login to your server as root and create the following file :


Edit the file and mention the list of themes which you want to be in the switch theme dropbox in cPanel interface.

For example, if you do not want X theme, the content of the above file would be :


# cat /var/cpanel/themes.conf

If you want the X theme and do not want paper_lantern, just give x in place of paper_lantern in the file.

That’s it !


MySQL databases not showing up space in cPanel

When trying to view the databases from the cPanel interface of an account, you might end up with no values at all. However, if you check the backend, you can find that these database folders consumes space.

To fix this issue, SSH to the server and open the file :  /var/cpanel/cpanel.config and make sure the variable disk_usage_include_sqldbs is set to 1 ( instead of 0 )

Once that change is made, hit the following from the shell :

# /scripts/update_db_cache

This should fix the issue !


Run FSCK without password during the startup !

You might have a situation in which you need to run an FSCK in your server and you do not have a root password or you do not get the desired login prompt due to any disk issues, which might need an FSCK.

You can try the following steps to attempt an FSCK :

* Reboot

* Edit the grub

Edit grub entry by pressing ‘e’

Edit the kernel line by pressing ‘e’

Add the following at the end of the kernel line: init=/bin/bash

Press enter to save and ‘b’ to boot

The above given statement boots straight into a shell without any password. You can now manually run the FSCK using commands such as :  fsck -y /


Windows 10 Insider Preview Build 10074 (April Update) is available now: Let’s see what’s new

Microsoft made some pretty cool Windows 10 announcements at the Build 2015 happening at San Francisco, with it came latest Windows 10 insider Preview Build 10074. This new build is available to both the Fast and Slow ring of Windows Insiders (The Windows Insider program by Microsoft allows users to sign up for early builds of the Windows operating system.), which also means that ISOs are too available for those who like a clean install. According to the blog post by Microsoft this version of early build comes with lot of subtle changes and improvements, along with some more evolved features. Many of the changes were influenced directly by Windows Insiders feedbacks. One of those changes is the reintroduction of some Aero Glass elements in the UI. Also Microsoft promises to use insider feedback directly to shape how their feature teams operate, and they hope that Windows 10 will be the best version of Windows yet because the public have a direct hand in its creation.One other subtle change is that Microsoft has renamed its “Technical Preview” to “Insider Preview” to reflect the importance of the Windows Insider community in how they’re building Windows 10.

Win 10 PC
Windows 10 PC

Continue reading Windows 10 Insider Preview Build 10074 (April Update) is available now: Let’s see what’s new

%d bloggers like this: