How to install WireGuard on xUbuntu 18.04

I prefer OpenVPN as I had problems using WireGuard on two machines (video and networking drivers broken)

sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:wireguard/wireguard
sudo apt install wireguard -y

Once installed create and update wg0.conf… Read the rest

How to completely get rid of abrt service

Disable the abrtd service

service abrtd status
systemctl stop abrtd
systemctl disable abrtd
systemctl daemon-reload

At this step you can get when accessing SSH

‘abrt-cli status’ timed out

Check yum:

yum list abrt*

And remove:

yum remove abrt*

Run cagefs update if any:

cagefsctl --force-update
Read the rest

Magento 2 upgrade from 2.3.4 to 2.3.5

Switch to maintenance mode:

bin/magento maintenance:enable

Check current version

bin/magento --version
Magento CLI 2.3.4

Backup project

cp -rp composer.json composer.json_bk

Remove previous:

composer remove magento/product-community-edition --no-update

Append actual:

composer require magento/product-community-edition=2.3.5 --no-update

Remove update/ folder

rm -rf update

Ensure you have enough resource to execute composer update

Run:

php -d memory_limit=-1 /opt/cpanel/composer/bin/composer update

Clean up the cache

rm -rf generated/code/*
rm -rf var/page_cache/*
rm -rf var/cache/*

Clean cache:

bin/magento cache:clean

Update DB:

bin/magento setup:upgrade

Deactivate maintenance mode:

bin/magento maintenance:disable

Check current version:

bin/magento --version
Magento CLI 2.3.5

In my case I faced only one issue related to /home/lkerie/public_html/app/code/Magefan/Blog/Model/ImageUploader.php… Read the rest

How to install/reinstall mailman on cPanel server

Check Tweak Settings, should be ‘0’

cat /var/cpanel/cpanel.config |grep skipmailman

skipmailman=0

Deprecated scripts

/scripts/reinstallmailman
/usr/local/cpanel/bin/mailman-install --force

Deprecated scripts:

/usr/local/cpanel/scripts/update_local_rpm_versions --edit target_settings.mailman installed
/usr/local/cpanel/scripts/check_cpanel_rpms --fix --targets=mailman

The latest way to reinstall mailman on cPanel server:

rpm -e --nodeps cpanel-mailman
/usr/local/cpanel/scripts/check_cpanel_rpms --fix --targets=mailman

Run upcp:

/scripts/upcp --force
systemctl start mailman.service
Read the rest

How to create a post using wp-cli

Install wp-cli and run something like the following:

wp post create --post_type=page --post_status=publish --post_title='Home' 
wp post create --post_type=page --post_status=publish --post_title='About'
wp post create --post_type=page --post_status=publish --post_title='News'
wp post create --post_type=page --post_status=publish --post_title='Contact'
Read the rest