Move MySQL Directory in WHM \ cPanel

March 24, 2016 Jordansphere Cpanel

We originally installed an image from the cPanel website. The /root parition holds the system information and the /data  houses the users  web and mail data. Unfortunatley the /root partition is NOT installed as an LVM which makes it difficult to expand. What I did notice is that the users MySQL data is actually stored in the /root […]


cpanel, mysql, new partition, whm,

Custom php.ini File in cPanel

October 1, 2015 Jordansphere Apache

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 […]


apache, htaccess, suphp,

Add NRPE Exim Mailqueue Check to cPanel Server

September 22, 2015 Jordansphere Cpanel

This blog assumes that NRPE and nagios plugins are already installed on the remote server. Remote OS: Centos 6.7 Nagios Server OS: Centos 5.7 WHM: 11.50.0 NRPE: 2.14   Remote server Download the check_eximailqueue plugin (version 1.3 as of writing) from . 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 […]


cpanel, exim, Mailqueue WARNING - query returned no output!, nagios, nrpe,

cPanel PHP Extension Error after UPCP Update

August 7, 2015 Jordansphere Apache

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/' – cannot open shared object file: No such file or directory in Unknown on […]


Hostname Configuration Error – cPanel DNS Only

April 14, 2015 Jordansphere Cpanel

One of our cPanel DNS Only servers was throwing up the below error: Hostname Configuration Error: Your WHM server is configured with IP address and has a misconfigured hostname. This misconfiguration can cause some services on your server to not restart properly. The cause of your misconfiguration is:   WHM has detected a manual […]


Change DocumentRoot of main site in CPanel

June 26, 2014 Jordansphere Cpanel

To change the document root of a main site in CPanel you'll need root SSH access. Note that you will be able to change an "Add on domains" via the GUI.   # vi /var/cpanel/userdata/{myusername}/{} Once in Vi change the documentroot: /home/{username}/public_html  to whatever you want (eg /home/{username}/public_html/ ) Afterwards you'll need to run this command: […]


cpanel documentroot change,

Powered by WordPress. Designed by elogi.