All posts in Server Configuration
Well now here’s an interesting error that mysteriously "just started happening" for no apparent rhyme or reason. We were working on a Cpanel server that we’re very familiar with, and went through the usual process of creating a new mysql database, creating a new mysql user, and then adding that . . . Read more
Mod_pagespeed is an *amazing* tool for improving page load speeds and improving the performance speed of your website. In many cases, it can double the speed of your website, cutting the average page load time in half, or more! This page speed optimization tool has been fully implemented on the . . . Read more
We sure would love it if git were installed on our server. So let’s do that! [root@sunshine /var/cpanel/easy/apache/profile]# yum install git Loaded plugins: fastestmirror, priorities, security Loading mirror speeds from cached hostfile stable-arch | 951 B 00:00 stable-generic | 951 B 00:00 stable-noarch | 951 B 00:00 system-base | . . . Read more
Sometimes we have the need to recursively change the permissions, but only for either files or directories. Here’s a handy way to do this, from the command line. *Note: Being recursive, these are powerful commands, and can change a whole bunch of things, in a very short amount of time. Please do . . . Read more
The SpamAssassin server-side spam email filter employs Bayesian statistical algorithms to tell the difference between spam and ham. As such, these filters do their best when they’re “learned”. Here are some examples from a sample account. Let’s assume we’re working with a cpanel account called “oicom”, and we want to . . . Read more
On a WHM/Cpanel server, the main php.ini file is located thusly: /usr/local/lib/php.ini See also: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/PhpIni Related articles Page: Install Git on Centos Page: EasyApache & Recompiling Apache / PHP (Easy Apache) Page: How to Recursively Change Permissions, Only Files / Directories, Chmod Page: How To Restart Various Server Services . . . Read more
Disk Free, human readable df -h Disk Usage, summary, human readable (I think this include DOES include hidden files / directories) du -sh Disk Usage, per directory, human readable (does NOT include hidden files / directories) du -sh * Disk Usage, per directory, human readable (INCLUDES hidden files & directories) du -sh . . . Read more
Firewall blocks can be a rather common issue, especially if a user is trying to setup their email for the first time, or is wrestling with ftp or such. o For first time clients, just setting up their email, it’s a very good practice to whitelist their ip, before they . . . Read more
As root, you can use EasyApache to rebuild apache and php, enabling and disabling modules and extensions, changing php versions, changing apache versions, and configurating all kinds of things. At the end of the selection process, the build is run, and you get to watch a whole lots of beautiful . . . Read more
Our goal was to increase the maximum upload size via php config. You can do this straight from WHM. But the gotchya is that there are TWO places you can do it from. And evidently one overrides the other. So, for diagnosis, I created a phpinfo() file on the WP . . . Read more
This article assumes that you’ve got two servers: one with a cpanel account (server X, with IP X.X.X.X), and another server that you’d like to transfer to (server Y, with IP Y.Y.Y.Y). We’re also going to transfer the nameservers from server X to server Y. DNS Setup: Add A records . . . Read more
This document will walk you through the process of spinning up a new cpanel hosting account instance in WHM. Log into WHM: Enter creds from admin sheet. Once in in the upper left hand corner search for ‘list acc’ and click ‘List Accounts’ Run a search for the domain you . . . Read more
WP CLI is an amazing and very powerful command line tool for administering WordPress sites, plugins, themes, and core files. Once you’re comfortable with it, you’ll wonder how you ever managed without it! So, you just installed this spiffy tool on your server, and you go to test it with . . . Read more
Yes, it’s true. We play favorites. And for very good reason! Over the years, we’ve dealt with dozens and dozens of web hosting companies. We’ve wrestled with their idiosyncrasies, we’ve seen them come, and we’ve seen them go. And in our experience, we’ve found Liquid Web to be one of . . . Read more
Here’s an interesting one: Your server suddenly goes unresponsive, and your alerting service awakens the response team at 2am. Upon logging into the server, httpd appears to indeed be running, load is nil, mysqld is fine, but your website is still down. What’s up with that?! In the error log, . . . Read more
The MySQL slow query log can be very insightful for tracking down slow-running queries that are bogging down your webserver. But more often than not, it’s not enabled by default. So let’s learn how to enable and configure it, so you can start examining your slow running queries yourself! Ok, . . . Read more
1. Install Node.js Browsersync is a module for Node.js, a platform for fast, scalable network applications. There are convenient installers for MacOS, Windows and Linux. 2. Install Browsersync The Node.js package manager (npm) is used to install Browsersync from a repository. Open a terminal window and run the following command: . . . Read more
*Note: PM servers are currently using the CSF firewall, NOT the APF firewall for which this article applies. Please see the following revised article for CSF firewall administration: Problem User is unable to connect to sites hosted on Stormcloud, and or their email client is being blocked. Solution User should . . . Read more
Oh that *is* interesting. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] The condition that is in bold above (which is already in the htaccess), should be doing the trick. But for some reason, it’s not. The “RewriteCond %{REQUEST_FILENAME} !-d” says, “if the request is . . . Read more
After one of our Easy Apache rebuilds, we encountered the following alert email, entitled “[check_cpanel_rpms] Altered RPMs found on today.example.com”. Well now, how about that. Very interesting! The full reasons for the above remain a mild mystery, but the fix entailed running: