SSL is a great way to protect traffic to your website. These are the steps to create a self-signed certificate and install it on an apache web server. It is self-signed, so the user’s browser will throw an error because it doesn’t trust the certificate. It’s a start though….
Install Mod SSL
yum install mod_ssl
Continue reading “Create and Install a Self-Signed SSL Certificate on Apache/CentOS 6”
Steps to install WordPress on a CentOS host using RPMs the easy way instead of installing from source.
Configure Epel repository
Continue reading “Install WordPress on CentOS 6”
The Epel repositories provide many more packages than what comes with just the CentOS repositories.
Download the latest RPMs
Continue reading “Configure Epel Repository on Centos 6”
The following instructions will help you install and configure BIND on CentOS 6.
Install BIND with the following command:
yum install bind -y
Continue reading “Configure BIND on CentOS”
This line of code will copy the backups off of a remote server.
rsync -r -a -v -e "ssh -l <username>" --delete <server>:/backup /backup
Create a user account with an ssh key pair so that you can schedule the task as a cron job and have it run without having to enter a username and password.
Just so that I don’t have to keep looking this stuff up over and over again.
Configure Postfix main.cf
# The host name of the system
myhostname = mail.domain.tld
# The domain name for the email server
mydomain = domain.tld
# The domain name that locally-posted email appears to have come from
myorigin = $mydomain
# Network interfaces that Postfix can receive mail on
inet_interfaces = all
# The list of domains that will be delivered
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
# Trusted IP addresses that may send or relay mail through the server
mynetworks = 192.168.0.0/24, xxx.xxx.xxx.xxx/32, 127.0.0.0/8
# List of destination domains this system will relay mail to
# Path of the mailbox relative to the users home directory
home_mailbox = Maildir/
Continue reading “Notes From My Postfix Setup”
Turn on IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
Continue reading “NAT with IPTables”