Install Microsoft Edge Browser (Stable) in Ubuntu/Debian via Official Repository

https://ubuntuhandbook.org/index.php/2020/10/microsoft-edge-dev-available-install-ubuntu/ by UbuntuHandbook

Why is this post important? Because installing Microsoft Edge via their official repository will facilitate the installation of ongoing updates. We found that most web-pages are directing readers to download a deb file from Microsoft’s website for a one-time installation, which will require manual downloads & installations to update on an ongoing basis, which is time-consuming, and compromises security due to delayed or lacking updates.

Many-in-One Email Plus Addresses with Microsoft & Google

Google’s Gmail and G Suite have “plus addresses” such as daniel+test@gmail.com

Microsoft’s Outlook.com (formerly Hotmail) added plus addressing back in 2013, and Microsoft enabled the plus notation for Microsoft 365 and Exchange Server in late 2020.

cPanel added support for plus addressing in 2019.

Plus addressing for email, also known as “subaddressing”, allows you to create unique, receive-only email addresses that are extensions of your actual email address. The syntax for plus addressing is <local-part>+<tag>@<domain>. For example, if your email address is daniel@outlook.com, you can use daniel+newsletters@outlook.com as a plus address. The original email address must be valid, and the +tag value you add is arbitrary, subject to regular character restrictions for SMTP email addresses12.

Use this plus addresses feature to manage/filter/route email for your site registrations, newsletters, subscriptions, etc.

Installing postgres (PostgreSQL) database on Ubuntu 22

Installation:

sudo apt update
sudo apt upgrade
sudo apt install postgresql postgresql-contrib postgresql-client-common

Start PostgreSQL service:

sudo systemctl start postgresql.service

Setup

Switch to postgres account; the installation of PostgreSQL automatically created a user account named “postgres”. Switch to this account for accessing the PostgreSQL database:

sudo -i -u postgres

Create new role

createuser --interactive

Create database

createdb exampledatabasename

Create a new Linux user

sudo adduser exampleusername

Switch to your user

sudo -i -u exampleusername

Connect to database

psql

Check connection information

\conninfo

Distilled from How to Install and Set up PostgreSQL Database on Ubuntu 22.04 on Linux Hint. For more details:
https://linuxhint.com/install-and-setup-postgresql-database-ubuntu-22-04/

PostgreSQL/postgres cheat-sheet: postgres-cheatsheet.md
https://gist.github.com/Kartones/dd3ff5ec5ea238d4c546

Installing PHP extension imagick manually because it’s missing in cPanel/WHM EasyApache 4

We needed imagemagick installed on our server for nextCloud, but imagick is missing/unavailable in EasyApache 4.

Fortunately, we found the following instructions, which worked perfectly for us on our cPanel/WHM server for PHP versions 7.4, 8.0, and 8.1…

Original source:
https://help.bigscoots.com/en/articles/730428-cpanel-easyapache-4-installing-imagemagick-and-imagick-php-extension

Originally written by Justin Catello

This is fairly simple, just copy and paste the following into SSH.

1. Installing imagemagick:

yum -y install ImageMagick-devel ImageMagick-c++-devel ImageMagick-perl

2. Installing the imagemagick PHP extensions for all installed PHP versions.

for phpver in $(whmapi1 php_get_installed_versions|grep -oE '\bea-php.*') ; do
printf "\autodetect" | /opt/cpanel/$phpver/root/usr/bin/pecl install imagick
echo 'extension=imagick.so' >> /opt/cpanel/$phpver/root/etc/php.d/imagick.ini
done
/scripts/restartsrv_httpd
/scripts/restartsrv_apache_php_fpm

3.  Test to make sure imagemagick is installed:

/usr/bin/convert --version

4. Test to make sure the PHP extensions loaded:

for phpver in $(whmapi1 php_get_installed_versions|grep -oE '\bea-php.*') ; do
echo "PHP $phpver" ; /opt/cpanel/$phpver/root/usr/bin/php -m |grep imagick
done
PHP 54
imagick
PHP 55
imagick
PHP 56
imagick
PHP 70
imagick
PHP 71
imagick