Pick our brains...

All posts in Server Configuration

Cpanel There Was a Problem Adding the User: (XID hc2f35) Database Error: Can’t Find Any Matching Row in the User Table

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

Install Git on Centos

We sure would love it if git were installed on our server.  So let’s do that!   [[email protected] /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

How to Recursively Change Permissions, Only Files / Directories, Chmod

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

How to Tune SpamAssassin Server-Side Spam Filters

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

Where the Frack is php.ini on a WHM/Cpanel Server?

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

Linux Disk Free / Disk Usage, Per Directory ~ “du”

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

How to Create a Liquid Web / Storm on Demand Webserver

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

Apache Httpd is Running But Unresponsive, Website is Down, The Scoreboard is Full!

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

MySQL Slow Query Log Changes Its Game (& Syntax)

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

Using Browsersync, Website Development on Multiple Browsers & Mobile Devices

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

Htaccess DirectoryIndex index.php Not Found 404

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