How to Add/Remove Yum Repositories

Red Hat Enterprise Linux, CentOS, Fedora and other Linux distributions based on RHEL all use YUM as a package management system to install, remove, and update software. Each distribution has its own main repository, but you can also install or remove third-party repositories whenever you like.
To add a YUM repository, type as root:
yum-config-manager –add-repo repository_url
For […]

How to Remove Old Linux Kernels

Linux distributions that use binary packages usually install kernel updates in separate directories from previous kernel versions. Therefore, it is possible to have several instances of Linux installed within the same system. This is a precaution that prevents you from overwriting your kernel with one that may not function the way you want, or at […]

Htop: An Advanced Alternative to Top

Top shows you a great deal of information about the top running programs on your server, load averages, memory usage and more. Now imagine Top a little more colorful with some graphical representations of CPU, memory and swap usage, and a full range of shortcuts and functions that can help you manage tasks and find […]

How to Build Linux Server Programs with CMake

We have previously illustrated how to compile a program with Make. In this brief guide, you will learn a little bit about building with CMake, a useful alternative found in many Linux distributions.
First, you should install CMake on your system, if it is not already present. On RHEL and CentOS, type:
# […]

How to Install Softaculous in cPanel/WHM

Softaculous is a handy add-on for cPanel that gives your users the ability to quickly and nearly effortlessly install web application scripts. You can administer it through WHM, but once it is installed, any of your cPanel users can do one-click script installations. Installing Softaculous is relatively easy. Just follow these steps.
First, you should make […]

Speed Up Your Web Applications with Memcached

Most modern websites are dynamic in nature. They are updated on the fly, rely on database backends and often feature some type of support for user interaction. While those aspects of dynamic websites are all positive, the negative side is that they require more system resources, especially memory. A more resource-intense web application can slow […]

How to Force Installation of Ubuntu Packages Kept Back

Ever so often, you might try to update your Ubuntu Server packages and find that certain ones are “kept back” during the upgrade process. These will often be kernel or other mission critical packages that do not get updated.
The reason some packages might get kept back is that some dependencies have been changed for them, […]

Hot Fix: Apache Displays Contents of PHP Script Instead of Running Script

If you have ever installed Apache HTTP Server and had it up and running perfectly without any issues, you are truly a genius or very lucky. Inevitably, you are going to encounter a few hiccups if you are doing things manually. With all of the imaging, virtual machines, and hosting automation technology, few system administrators […]

How to Manually Install Packages on a RHEL/CentOS Server

On Red Hat Enterprise Linux and Red Hat-based servers (ex: CentOS), the best way to install packages is to use YUM. By entering the yum command, you can download and install software from the distribution and third-party repositories without any difficulty. On occasion, however, you might need to install an rpm package that is not […]

How to Manually Install Packages on a Debian Server

On Debian and Debian-based servers (such as Ubuntu Server), the primary method of package installation is APT. Using the apt-get command, you can download and install software from the distribution and third-party repositories with relative ease. There may come a time, however, when you need to install a deb package that is not from your […]

Using VMware Player for Server Testing: Part 1

In the past, creating a testbed environment for your server often involved setting aside an old machine or even using a desktop or laptop computer. In most cases, it was difficult to mimic the exact hardware configuration of your server and not as efficient. Virtualization changed all of that, and VMware Player is one free […]

How to Install Webmin in Ubuntu

Ubuntu is the most popular desktop Linux solution, and because of this, many system administrators have become comfortable using it even on the server. Ubuntu does offer a server edition, and it is just as powerful and useful as any of the other Linux server distributions. This brief guide will explain how to install Webmin, […]

How to Remove Old Downloaded Packages from APT

One of the routine end-of-year tasks you might want to perform is the removal of old packages that your system downloaded but may no longer need. You may have installed applications and later uninstalled them, but your package manager sometimes keeps those downloaded packages in case you need them later. Fortunately, with APT, it is […]

How to Reinstall Packages on a Linux Server

Linux has a very unique method of installing applications. Most Linux distributions rely on package management systems that download package archives containing all of the files for an application and then copy them to their correct locations. Once the files are installed, any changes you make to them can affect the functionality of the app. […]

How to Install and Remove Packages in FreeBSD

If you have used Linux servers, you are probably very familiar with the package management systems, such as YUM or APT. Unless you used Gentoo, however, you may find the package management system in FreeBSD to be noticeably different. What follows is a quick start guide to FreeBSD’s package management system called Ports Collection and […]

3 Reasons to Upgrade to Dedicated Hosting

Your shared hosting account has probably served you well for quite some time, but there comes a time when it might be a good idea to upgrade your website(s) to a dedicated hosting plan. There are definitely financial factors that determine when you can and will get a dedicated server, but today we will look […]

How to Connect to a Virtualbox VM Via SSH (Part 1)

In some previous posts, you learned how to setup a Virtualbox virtual machine (VM) for the purpose of creating a test server environment. Once you have a functioning test server, you are free to always work on it within the virtual machine, but if you ever want to connect to it remotely, you probably soon […]

How to Setup a Test Server in VirtualBox: Part 2

Now that you have a virtual machine created, it needs an operating system. Just follow these simple steps:

With your virtual machine selected from the side panel, click the “Settings” button
Click the “storage” option
Click the “add attachment button” and then choose CD/DVD device”
You can then select an ISO to create a virtual drive. Alternatively, you […]

How to Setup and Use KVM: Part 3

This is the third part of a series on KVM. If you have not already read them, you should begin with part 1 and continue with part 2.
Once you have KVM installed, you should make sure that you have libvirt installed as well. If not, install it now.
# yum install libvirt
Next, […]

How to Reinstall a Package with YUM

In the event that something happens to the software you have installed on your server, you may need to reinstall it. YUM, the package manager for Red Hat Enterprise Linux, Fedora, and CentOS, allows you to reinstall packages whenever necessary.
To reinstall a package with YUM, do the following:
# yum reinstall name-of-package
YUM will prompt you before […]

How to Setup and Use KVM: Part 2

This guide will describe how to install and setup KVM on a Red Hat/CentOS server. The end result will be a system capable of hosting multiple virtual machines, all of which operate on a bridge network, meaning they are equally accessible within the same LAN and would appear to a remote user as though they […]

How to Update Packages with Webmin

In the previous post, you learned how to install and remove software packages using Webmin’s graphical interface. Today, you will learn how to update individual packages and do a system-wide upgrade, all from within Webmin’s control panel.
Just like installing and removing packages, Webmin will rely on your package manager (APT, Yum, etc.) to update […]

How to Install and Remove Packages with Webmin

One of the features Webmin has to make your system administration easier is a module for software package installation, updates, and removal. Using a graphical interface, you can keep your dedicated server updated and install new software whenever you need it.
To install software, do the following:

Login to Webmin and click “System”
Click the “Software Packages” […]

Are There Benefits to Manually Installing Software?

Linux servers have a distinct advantage over most proprietary operating systems because of their extensive package management systems. Whether a server uses YUM or APT, it is much easier and faster to install and update software than using traditional manual installation methods. This raises the question: is it ever a good idea to install software […]

How to Fix APT Dependency Problems

APT is a package management system for Debian and other Linux distributions based on it, such as Ubuntu. For the most part, APT is easy to use for installing, removing, and updating packages.
With a normal APT install, using the apt-get command, a package will install without any problems. Installing a package in an APT repository […]

How to Install FFMPEG in CentOS

Websites have graduated far beyond simple text-based one-page documents. Most include all sorts of multimedia, from videos to full animated applications. Many small website owners may rely on cloud service providers for their music and video streaming, but if you ever need to host your own media content, you will probably need a program that […]

How to Install CentOS in VirtualBox

Virtualization is a great tool for testing, learning, and general server skills practice. Using a virtualization tool like VirtualBox, you can install a server operating system within a virtual machine on your desktop or laptop. Once installed, you can pretty much do whatever you want with it and use it to learn more about […]

What to Do When Package XYZ is Not Available

Dedicated Servers do not need a lot of software to run. You have your operating system, basic system services, the web server, mail server, database server, and a firewall. Depending on your setup, you may have other applications, but you usually do not need to install any exotic software. Web applications cover most frontend functions. […]

YUM Tutorial: Undo Package Updates with Rollback

In almost all situations, keeping your server up-to-date with the latest packages is the smart thing to do. In some cases, however, updates (especially more involved upgrades) may cause certain web applications to stop functioning properly or may introduce a new bug that the developers missed.
To make sure you do not get one of these […]

YUM Tutorial: Disable and Remove Repositories

YUM is a package management system for Red Hat Enterprise Linux, Fedora, and Red Hat-based distributions such as CentOS and Scientific Linux. With yum you can keep your operating system and applications up to date without much hassle. The following tutorial will explain how to use yum to remove packages, purge old package headers, and […]