So have installed PHP8.1 from ondrej PPA sudo add-apt-repository ppa:ondrej/php Install PHP8.1 sudo apt install php8.1-fpm sudo apt install php8.1 sudo apt install php8.1-intl sudo apt install php8.1-mbstring sudo apt install php8.1-mysql sudo apt install php8.1-xml...
James McDonald
Install nodejs in docker container and auto detect architecture
Installing node binary package from https://nodejs.org/en/download/ I use Docker on my x86_64 Ubuntu Workstation and Macbook Pro M1 aarm64 so Dockerfiles need to be multi-arch This Dockerfile snippet detects the architecture we are running in and sets the correct...
wp-cli update – file rename error
I have a script that runs the wp cli to loop through and update the Wordpress themes, plugins & core for a number of sites. Each site has different linux user ownership. The problem I am seeing is an error message of Permission denied when running sudo -u $OWNER...
Modifying the WordPress sitemap.xml output
I use Wordpress for customer websites with the Divi theme and layouts however Wordpress is fundamentally a blogging platform so its sitemap.xml contains links to categories and users and you might not want to have those publicised and indexed by Google The following...
A better compression than gzip for your website aka Brotli
Apparently brotli is a more efficient compression protocol than gzip. Install both the PHP and the Nginx support Install nginx Support https://www.atlantic.net/dedicated-server-hosting/how-to-install-brotli-module-for-nginx-on-ubuntu-20-04/ Install PHP Brotli Support...
User crontab missing supplementary groups
Problem: You get access denied when running a script from your user crontab but not when running it interactively Cause: Your user is in the correct group when logged in but not for cron Resolution: Add the user to the correct group This is on Ubuntu 20.04 LTS How to...
Cheap and Cheerful Email Alerting from Your VPS
Quick and dirty email sending from a virtual server. (On Azure port 25 outbound is blocked so this works nicely sending to port 587) You will have to tweak your gmail account to use less secure auth and allow app passwords. Install the SSMTP package apt-get install...
Brays Roofing Site Live
So I just put up another website for a client. I originally did a website for them around ~2013 Check out Brays Roofing A Tile Roof Specialist who does Roof Restorations and Repairs
Check if VARIABLES are set with Bash
I have a script that needs to check if it is called with an environment that contains two variables OPERATOR_ADDRESSDELEGATOR_ADDRESS if it does not find them it will call a script ./getNodeAddressBech32.sh to set them and continue. How do you (properly) check for a...
Clear the DNS Cache in Firefox
If you have edited your C:\Windows\System32\Drivers\etc\hosts file to add a custom DNS entry and run ipconfig /flushdns and Firefox is still returning the old address enter the following in the browser location bar and then click the Clear DNS Cache button...
