Tagged: linux

Server Management 1

YUM: Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast

Have you ever ecounter this error “Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast”?

If you are running a server that was not able ti connect to an active repository server for weeks, that error will prompt about an outdated repository entries. This can be solved by purging the “yum data”

PHP Programming Start to End 0

PHP Autoloading Class

Many developers writing object-oriented applications create one PHP source file per class definition. One of the biggest annoyances is having to write a long list of needed includes at the beginning of each script (one for each class).

In PHP 5, this is no longer necessary. The spl_autoload_register() function registers any number of autloaders, enabling for classes and interfaces to be automatically loaded if they are currently not defined. By registering autoloaders, PHP is given a last chance to load the class or interface before it fails with an error.

Digital sign your email with DKIM 4

Digitally Sign Your Email with DKIM

Digitally sign your email with DKIM (DomainKeys Identified Mail) and help prevent email spoofing on your side. DKIM adds a private key which stays in your server and a public key that stays in your DNS record. The outgoing email header that you send gets encrypted and the recipient servers then retrieve the public key to decrypt the incoming headers and verify that the messages really comes from your domain and was not altered while it is on transit.

CentOS - Community Powered Operating System 0

Save Bandwidth Using Delta RPM

“What are Delta RPMs anyway?”. Linux OS providers have come up of a way to save bandwidth when installing or updating your Linux packages/programs. One of the answers are Delta RPMs. A Delta RPM basically collects the difference from the old RPM (packages on your computer) from the one available on the repository and only downloads the correct RPM stripped down to the exact changes.

Wordpress multi site using subdomain 0

Setup WordPress Multiple Site Using Subdomains on VIrtualmin

I keep on seeing a few multi-site Wordpress installation using a sub directory but a few have a multi-site using a subdomain. Firing up curiosity, I tried installing a one using subdomains instead.

This guide will teach you the easy way to do things using virtualmin.

How to install virtualmin 0

How to Install Virtualmin on CentOS 7/ RHEL 7

Virtualmin is an advance, powerfull and flexible web hosting control panel for your Linux and UNIX system. It is the virtual host magement module of the well-known Open Source web-based server management system Webmin. With virtualmin, you can manage multiple virtual hosts, multiple virtual domains, mailboxes, database, applications and other stuff from its comprehensive and friendly web interface.

Virtualmin is a comprehensive and excellent replacement for your cPanel and Plesk control panels . Virtualmin offersr the same features that you can find from the two mentioned control panels such as account creation, domain management, dns management, MySQL management and much more. Virtualmin also offers a control panel for non-root users for management of their hosting account.

Securing your server from attackers 2

Install and Setup CSF / LFD on CentOS

After learning what CSF / LFD module can do, it is time for a small guide on how to install them. The guide is for RHEL type version of Linux which consist of Redhat, Fedora and CentOS. A separate procedure is needed for Debian based Linux which will be added later.

Securing your server from attackers 2

What is a CSF / LFD

ConfigServer Security & Firewall (CSF) is a stateful packet inspection firewall (SPI), login/intrusion detection, and security application for most Linux distributions and Linux based VPS.

CSF is versatile enough to host more features other than the standard filtering of packets. CSF can give you login detection, brute force detection, system intrusion and flood detection. CSF have a UI integration for cPanel, DirectAdmin and Webmin.

CSF can also detect port scans, SYN flood and can temporarily or permanently block clients who are flagged as an attacker.