Changing PHP FPM Versions in Virtualmin

The issue is that Virtualmin currently only supports a single version of PHP FPM and seems to want to use PHP 7.2 no matter what I do, and I want it to use PHP 7.3 which is also installed. This appears to be a long-standing issue with Virtualmin. I solved it by...

How to Create and Push to a Local Git Repository

I want to store this one for later so I’m posting it here. If you find it useful feel free to link to it. I wanted to version some files I’m working on but didn’t want to use a git service like BitBucket, GitLab, etc. mainly because they are huge and...

Install new ARK server on Ubuntu 16.04

First provision your server at your desired web host. I recommend using an 8GB Linode VPS. I could not get the server to start on a 4GB but maybe some day they will optimize it enough for that if you aren’t planning to have a lot of players. Linode is great...

Website downloads instead of displaying

Recently I noticed a few sites had a page download instead of displaying when they were working perfectly fine before. I’m not 100% sure why but in my case the fix was to go into Virtualmin and toggle the PHP Version to some other version and back to my current...

Bash Script for Installing / Updating Java JDK RPM

Here’s a BASH script I wrote which downloads and installs the Java JDK RPM. Tested on CentOS 6.x. If you are looking to install on Ubuntu (or Mint) go here. It also downloads the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files...

Redirect Apache ServerAlias to ServerName

I had a website that was moved to a new domain name but I wanted to make all the old URLs redirect to the new domain. However, redirecting using a typical .htaccess redirect as shown below wouldn’t work because it was new using the old domain as a ServerAlias to...

Recursively find and replace php.ini date.timezone

I recently had to update PHP on a server and the php.ini settings but then the date.timezone wasn’t set in a bunch of servers. So I decided just to search and replace them instead of doing them all individually. find . -name ‘php.ini’ -type f -exec...

Building mod_webpresence for ejabberd on CentOS

I keep forgetting how to setup the mod_webpresence for ejabberd whenever I happen to reinstall everything so I am typing it out here for future reference and maybe it’ll even be useful for others. The instructions aren’t 100% clear for me on the...