• ngnix .htaccess disable

    I recently converted a bunch of sites from Apache to Ngnix. This left a ton of .htaccess files that I wanted to keep for reference, but don’t want them to be read. This handy command will change the permissions on all “.htaccess” files under “/home/” so they can’t be read by a browser.

  • Install PHP 8.2 on Ubuntu

    Quick guide on how to install PHP 8.2 on Ubuntu Install PHP 8.2 sudo apt install php8.2 -y Install common extensions sudo apt install php8.2-cli php8.2-common php8.2-fpm php8.2-mysql php8.2-zip php8.2-gd php8.2-mbstring php8.2-curl php8.2-xml php8.2-bcmath php8.2-intl php8.2-imagick Install SQLite extension sudo apt-get install php8.2-sqlite

  • My Virtualmin Setup Guide for a Webserver

    Virtualmin is a rock-solid web hosting control panel I have used for 10+ years. There are free and paid tiers. This is a simple list I created of steps I take from a bare Ubuntu VPS to a production ready web server. Note that use CloudFlare for all my websites, so everything in this guide…

  • Ubuntu: Install Redis Cache with WordPress

    https://redis.io/docs/getting-started/installation/install-redis-on-linux/ Install the WordPress Plugin https://wordpress.org/plugins/redis-cache/ Activate the plugin, then click to enable the object cache. Optionally install: sudo apt-get install php-redis

  • WordPress + SQLite

    WordPress needs a database abstraction layer. WordPress should support any major database, especially with the divergence of MySQL and MariaDB. WordPress will eventually have to choose between them if they are to continue down the path of a single database technology. SQLite should be the default database of WordPress. It would likely improve performance and…

  • PHP-FPM parse .htm or .html files.

    In order to get the PHP-FPM process to parse files other than PHP, I followed these steps below. Edit the Apache Conf file for the website in question as follows:REMOVE the line below in red (best way is just put # in front of the line, so it’s still there) <FilesMatch \.php> Change the top…

  • WP CLI Quick Shortcuts

    WordPress WP CLI is a powerful (and fun) tool to take care of all your WordPress maintenance. WordPress site health nags for a backup theme… easy to fix wp theme install twentytwentyone Run Yoast SEO index, runs much faster from command line wp yoast index Install BBQ Firewall wp plugin install block-bad-queries wp plugin activate…

  • 2 GB / 2 CPU 40 GB SSD VPS for $20 month

    Great deal on a virtual server with 2 CPU’s, a full 2 GB of ram and a 40 GB SSD Drive and 3000 GB month transfer. Also you get the ability to make snapshots at anytime without powering off the server. VULTR