Category: Blog

Blog

Using multiple PHP versions in OpenLiteSpeed

OpenLiteSpeed (OLS) includes a nice “Compile PHP” option under Tools. We can use it to compile different versions of PHP. So, I compiled 7.4.24 and 8.0.11 and the binaries were saved in the folders /usr/local/lsws/lsphp7 & /usr/local/lsws/lsphp8 respectively. Then I set the default External App to use lsphp7 and created another External App to use …

Blog

Laravel gives error 500 without any further log or information if storage permissions are not allowed

I will start with the fact that I hate Laravel. But, still a client wanted to me to deal with an application built on it. First it forced me to upgrade PHP from 7.4 to 8.1. Then it kept giving error 500. I tried to add log options to PHP INI, enabled logging in the …

Blog

How to renew WildCard SSL using LetsEncrypt Certbot updating DNS records automatically without interaction?

As LetsEncrypt does not allow webroot or any other verification method for renewing WildCard SSL certificates like *.domain1.com, for a client I needed to renew LetsEncrypt WildCard SSL automatically without requiring any manual interaction. It is simple but took some time to figure out. The most important certbot parameter here is manual-auth-hook. The client’s domain …

Blog

How to create a WordPress blog post using WP CLI (remote too)

We can create a WordPress blog post using WordPress CLI (Command line interface) tool: wp-cli Please follow the installation instructions for your system on this page: https://wp-cli.org/ After we have installed, we can use the wp command now. We can also use this command to create a blog post even if the blog is on …

Blog

rclone – compress and backup full disk to remote or cloud storage

This is the command which will do the magic: dd if=/dev/sda1 | gzip | rclone rcat db-disks:/path/to/backup.gzip This command will read full disk contents and will stream it to gzip command for compression and which in turn stream to rclone. We are guiding rclone to rcat (remote cat) those contents to the desired remote path. …

Blog

How to archive emails on using Mac OSX and any IMAP provider

I have been using FastMail since a long time now and inbox is getting bigger than 20GB and will soon reach a limit of 30GB. I gathered all emails from GMail, Yahoo, Apple etc. using IMAP into FastMail account and it is so good to have all emails in one account. But, as emails are …

Blog

Amazon S3 Glacier Deep Archive storage class for $1/TB backups

Amazon S3 provides the most cost effective pricing of $1/TB for Glacier Deep Archive storage class. It is too good to be true. But, it comes with a drawback that when you need your data you will have to pay a lot. It is like a cheap hard drive on which you can easily store …

Blog

Dropbox best cloud storage

Always had problems with my file storage. Tried everything like Apple Time Capsule and other backup solutions, but Dropbox is the best way to backup your files. The best part is that if you fail to pay, Dropbox never deletes your files. They just downgrade your Dropbox account. I have been using Dropbox business since …

Blog

How to escape comma when importing WooCommerce products?

After spending some time on searching on Google and reading some WooCommerce forums I found out that it was much easier than expected. Do not use quotes or %2C. Just escape the comma using a backslash like \, That’s all! It will work like a charm. I had to replace all commas to \, on …