KNOWNHOST KNOWLEDGE BASE

Hosting Question? Find the Solution - Browse our Guides, Articles, and How-To's

Training SpamAssassins accuracy with sa-learn

Category: cPanel
Tags: # # # #

This is a guide to effectively use SpamAssassins sa-learn to help train tokens for spam flagging accuracy. What is ‘sa-learn’? Given a typical selection of your incoming mail classified as spam or ham (non-spam), this tool will feed each mail to SpamAssassins, allowing it to ‘learn’ what signs are likely to mean spam, and which are likely […]

MySQL/MariaDB It is very simple to set up remote connections in MySQL/MariaDB thanks to the WHM and cPanel interfaces. You will need to known advance what IP/hostname, or IPs/hostnames, require database access because you will need to specify them in the panel. If your IP is dynamic, you may be able to inquire your ISP […]

What is Memcrashed and how do I fix it?

Memcached Memcached is a memory object caching system for speeding up dynamic web applications… It’s open source and has been designed to work with a large number of open connections. Database calls, API calls, or page rendering are a few examples of the arbitrary data results that are stored in memory to alleviate database load. One can […]

PHP OPcode Cache Install Guide

Category: Guides
Tags: # # # # # # #

Overview Each time when PHP script executes on the server it goes through the following stages: tokenizing, parsing, compilation, and interpretation. PHP opcode caching allows skipping the first 3 stages by storing pre-compiled scripts in shared memory and reusing them. This significantly increases the performance of running PHP scripts. 
 It is important to know […]

If you are experiencing database connection errors, then look no further for troubleshooting assistance! This guide details the common causes of the dreaded Database connection error, how to find the root cause, and what to do to fix it. The commands in this article work with MySQL or MariaDB on CentOS 6 or 7 cPanel […]

How to Compress and Uncompress Files with cPanel

Introduction When transferring files to or from your server, it’s always best to compress them to make the transfer slightly smaller, and most importantly guard against corruption during the transfer process. What is compression? Any Windows, Linux and Apple computer are able to compress files. There are several different kinds of compression, but we’ll focus […]

cPanel deprecated Ruby on Rails in cPanel & WHM version 66 since it is not supported on CentOS 7 servers. Rails is a Ruby application, and they support Ruby applications via cPanel’s Application Manager interface (Home » Software » Application Manager), so this can technically be done. However, I cannot promise that it will run seamlessly forever […]

How can I make a phpinfo file?

Occasionally, while troubleshooting issues with a site, it can be useful to see all in one place all the current configuration for php affecting a particular folder or file. This can be done with the php function phpinfo. Among other things, this function can tell you the currently loaded php modules, the currently loaded php settings, […]