Why Is Most of My Memory Being Used?

Reading Time: 2 minutes

Often we hear a lot of customers asking why, when their server is largely idle, much of their RAM appears to be in use.

When RAM is not needed for other functions, your server will load frequently-accessed files into memory in order to read them more quickly. When a file is loaded into RAM, the server can access the information orders of magnitude faster than from disk. A modern SSD disk can read files at up to around 500-700 MB/second, if the files are in sequential units. However, RAM can be read at GB/second rates; or even tens of GB/second.

If the RAM becomes needed for another function, these files are quickly flushed out of memory, and the RAM becomes available for other tasks. Continue reading “Why Is Most of My Memory Being Used?”

Enable Remote MySQL Connections in cPanel

Reading Time: 2 minutes

Remote MySQL connections are disabled by default in cPanel servers because they are considered a potential security threat. Using the tools in the Web Host Manager (WHM) and the domain-level cPanel interface (usually http://domainname.com/cpanel) remote hosts can be added which the server allows to connect to the MySQL service.

Before using either of the following techniques, you will need to to open up port 3306 in your server’s firewall.

Continue reading “Enable Remote MySQL Connections in cPanel”

How To: Upgrade Apache and PHP using cPanel’s Easyapache

Reading Time: 2 minutes
Note:
Please note that this article is considered legacy documentation because EasyApache 3 has reached its end-of-life support.

If you run a cPanel server, and need to upgrade your Apache or PHP version, cPanel provides the Easyapache tool to make these updates a breeze. While it can be run from WHM, it is generally preferred to run it from the command line.

Continue reading “How To: Upgrade Apache and PHP using cPanel’s Easyapache”

How To: Check PHP Modules With phpinfo

Reading Time: 2 minutes

Say your PHP application is unable to load a needed PHP module. The first thing to check is to see if the PHP module is available to the application. The best way to do that is with what is called a “phpinfo” file.

Continue reading “How To: Check PHP Modules With phpinfo”

Digging Into Exim Mail Logs With Exigrep

Reading Time: 3 minutes

Perhaps a particular domain on your cPanel server has stopped receiving e-mail. Or, an address on your domain is able to receive e-mail, except from your supplier. Maybe you can receive e-mail just fine, but are receiving error message bounce-backs from Yahoo. How are you going to get the fine-grained information you need to figure out just what is going on?

The answers you seek can be found in exim’s logs.

Continue reading “Digging Into Exim Mail Logs With Exigrep”

CSF: Config Server Firewall Installation

Reading Time: 5 minutes

An alternative firewall to APF is the Config Server Firewall, or CSF.

CSF is generally considered a more advanced firewall as there are more configuration options compared to other firewalls, while still being simple enough to install and configure that even novice administrators can use it. This article will give you a simple overview about how to install and configure CSF and its security plugin LFD (Login Failure Daemon).

Continue reading “CSF: Config Server Firewall Installation”

DNS Hosts File

Reading Time: 7 minutes

One of the most powerful tools available to anyone working on their site during a migration is their computer’s “hosts” file. The hosts file is used to map domain names to IP addresses, and can be used as an alternative to DNS. It also allows you to specify the IP address to which a website resolves on your computer, regardless of what may be published in the site’s DNS zone file. Continue reading “DNS Hosts File”