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 install realpath on Centos 6

cd /usr/local/src/
wget http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/realpath-1.17-1.el6.rf.x86_64.rpm
rpm -Uvh realpath-1.17-1.el6.rf.x86_64.rpm

Source: https://centos.pkgs.org/6/repoforge-x86_64/realpath-1.17-1.el6.rf.x86_64.rpm.htmlRead 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