Enable Quotas on CentOS 6

In this example I will be checking all user quotas on an LVM which is mounted as /data    1)  The first  step will be to check the fstab. As we see there are no mount options for quotas # cat /etc/fstab # /dev/mapper/centos-root / ext4 defaults 1 1 UUID=2fd24677-cf50-420b-a3dd-cea7c29aa185 /boot ext4 defaults 1 2 /dev/mapper/centos-swap Read More…

Custom php.ini File in cPanel

In this example I will be creating a custom php.ini file in my WordPress website which runs on a cPanel server using SuPHP. I will also be turning off PHP display errors as a test.   1) Create your php.ini file in your public_html folder and add the following: # vi /home/jordansphere/public_html/php.ini display_errors = Off Read More…

Add NRPE Exim Mailqueue Check to cPanel Server

  This blog assumes that NRPE and nagios plugins are already installed on the remote server. Remote OS: Centos 6.7Nagios Server OS: Centos 5.7WHM: 11.50.0NRPE: 2.14   Remote server Download the check_eximailqueue plugin (version 1.3 as of writing) from Nagios.org . Upload the plugin to the the Nagios plugin directory (/usr/lib64/nagios/plugins/) on the remote server [RemoteServer]# vi /usr/lib64/nagios/plugins/check_eximailqueue Uncomment the following Read More…

How Does SSL Work?

  Below is a very simple overview of how SSL works in an asymmetric browser to web server scenario.      1. The client browser (eg Internet Explorer, Google Chrome, Safari etc) requests a secure HTTPS page by typing in  https://www.domainname.com .   2. The web server responds by sending SSL certificate and public key.   Read More…

cPanel libMagickWand.so.2 PHP Extension Error after UPCP Update

Centos: 6.7 WHM: 11.50.0 Apache: 2.2.39 PHP: 5.4.42 I awoke today to find all websites hosted on one particular cPanel server showing the following message at the bottom of every web page.   Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-xxxxxxx/imagick.so' – libMagickWand.so.2: cannot open shared object file: No such file or directory in Unknown on Read More…