Categories
Code docker Linux

Docker Basics

The below docker commands should give you a basic understanding of how docker works.  This is obviously not a comprehensive lesson, but should give you enough information to take off on your own. Create an account https://hub.docker.com Login to docker hub docker login Search docker hub docker search centos Run a basic container Run in […]

Categories
Code Linux

Secure your website using Let’s Encrypt with Certbot SSL

https://letsencrypt.org/ # Let’s Encrypt is a new Certificate Authority https://community.letsencrypt.org/ # Let’s Encrypt community https://certbot.eff.org/ # certbot is a Let’s Encrypt Client OS: CentOS release 6.8 (Final)Web Application: httpd – Server version: Apache/2.2.15 (Unix) Run the following commands as root. cdyum install epel-releasewget https://dl.eff.org/certbot-autochmod a+x certbot-auto Create conf I created a separate conf file within /etc/httpd/conf.d/ (removed the old one […]

Categories
Code Design Internet Linux UNIX

Enable keep-alive in Apache

What is keep alive? Keep alive is a method to allow the same tcp connection for HTTP conversation instead of opening a new one with each new request. More simply put, it is a communication between the web server and the web browser that says “you can grab more than just one file at a time”. Keep […]

Categories
Code Internet Wordpress

Browser Caching via .htaccess

I added simple browser caching through my .htaccess file. vi .htaccess IMPORTANT: Add the following to the top of the file. ## EXPIRES CACHING ## ExpiresActive On ExpiresByType image/jpg “access 1 year” ExpiresByType image/jpeg “access 1 year” ExpiresByType image/gif “access 1 year” ExpiresByType image/png “access 1 year” ExpiresByType text/css “access 1 month” ExpiresByType text/html “access 1 month” […]

Categories
Code Linux MAC UNIX Wordpress

WordPress Backup on CentOS

Now that I’ve moved my website over to CentOS, I’ll be showing you how I do backups. My Setup VirtualBox – CentOS web server running WordPress iMac – connected Drobo Goal Run daily mysql backups Run weekly website backups Only keep the latest two backups Run daily rsync’s to my Drobo from my iMac CentOS — […]