Categories
Solution

Invalid configuration value: failovermethod=priority – Oracle Cloud

On a CentOS installation over Oracle Cloud, when running dnf or yum, you may get the error:

Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/litespeed.repo; Configuration: OptionBinding with id "failovermethod" does not exist

To solve the issue, using the command line tool sed, we first start off by making a backup of the repository files:

sudo sed -iBAK '/^failovermethod=/d' /etc/yum.repos.d/*.repo

Then we use the sed command again to remove the problematic parameter in the repository files:

sudo sed '/^failovermethod=/d' /etc/yum.repos.d/*.repo

Once you have done it, you can run dnf to check whether the error appears again:

dnf upgrade

Source: https://communicode.io/how-to-fix-failovermethod-error-fedora/

Categories
Solution

Failed loading plugin “osmsplugin”: No module named ‘librepo’ – Oracle Cloud

On a CentOS installation over Oracle Cloud, when running yum or dnf, you may get the error: Failed loading plugin “osmsplugin”: No module named ‘librepo’

To fix this error install the python3-librepo package with:
sudo dnf install python3-librepo

Categories
Solution

Install Photo Viewer on Windows Server

How to install Windows Photo Viewer on Windows Server 2016 or Windows Server 2019 VPS: https://www.windowsworkstation.com/win2016-2019/5-4-installing-windows-photo-viewer/

Categories
Solution

How to enable image thumbnails on Windows Server

If your Windows Server VPS is not showing image thumbnails in folders, here is how to make it show photo thumbnails instead of just icons.

Go to Control Panel -> Folder Options -> View tab, make sure that “Always show icons, never thumbnails” is unchecked.

Categories
Tutorial

How to get visitor ip on cPanel NGINX Reverse Proxy with PHP

If you are using cPanel NGINX Reverse Proxy setup you may notice PHP $_SERVER['REMOTE_ADDR'] is returning server main IP address instead of visitor IP address.

To get visitor IP address use $_SERVER['HTTP_X_REAL_IP']

Source: https://stackoverflow.com/questions/44145688/remote-addr-ip-from-user-instead-of-nginx-reverse-proxy-server

Categories
Tutorial

How to edit Windows 11 HOSTS file

How to edit the hosts file on Windows 11: https://websiteforstudents.com/how-to-edit-windows-11-hosts-file/

In short, open Windows Terminal (Admin) or Command Prompt in Administrator Mode and type:

notepad.exe c:\Windows\System32\Drivers\etc\hosts
Categories
Solution

[Fix] Xiaomi MI 4A Router 5 GHz Issue

How to solve MI 4A Router (Gigabit & Regular, Global Version) 5 GHz not being available issue:

Links:
To get available countries: /api/xqsystem/country_code
To set country: /api/xqsystem/set_country_code?country=SG

Known issue with this fix: Mobile app stops working!

Categories
Tutorial

How to install watch faces on Haylou Solar

How to install custom 3rd party .bin watch faces on Haylou Solar: https://amazfitwatchfaces.com/forum/viewtopic.php?f=14&p=8339

Categories
Tutorial

DKIM Selector for CyberPanel

DKIM Selector for CyberPanel hosted web sites: default._domainkey

Details: https://cyberpanel.net/blog/2018/01/28/how-to-setup-spf-dkim-and-dmarc-inside-cyberpanel-manually/

Categories
Solution

Restoring visitors IP with mod_remoteip

Restoring visitors IP with mod_remoteip on cPanel: https://support.cpanel.net/hc/en-us/articles/360051107513-Restoring-visitors-IP-with-mod-remoteip