Categories
Tutorial

How to enable OpenLiteSpeed WebAdmin on CyberPanel

How to enable OpenLiteSpeed WebAdmin on CyberPanel: https://community.cyberpanel.net/t/tutorial-how-to-setup-and-login-to-openlitespeed-webadmin-console/14052

In short, run this command in ssh:
/usr/local/lsws/admin/misc/admpass.sh

If you are using any firewall, allow TCP 7080

Then access the OpenLiteSpeed WebAdmin by https://server.host.name:7080

Categories
Tutorial

How to install FFmpeg on CentOS cPanel server

How to install FFmpeg on CentOS cPanel server:

Step 1: Update the system
sudo yum install epel-release -y
sudo yum update -y

Step 2: Install the Nux Dextop YUM repo
There are no official FFmpeg rpm packages for CentOS for now. Instead, you can use a 3rd-party YUM repo, Nux Dextop, to finish the job.

On CentOS 7, you can install the Nux Dextop YUM repo with the following commands:

sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

For CentOS 6, you need to install another release:

sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm

Step 3: Install FFmpeg and FFmpeg development packages
sudo yum install ffmpeg ffmpeg-devel -y

Step 4: Test drive
Confirm the installation of FFmpeg:

ffmpeg

source: https://forums.cpanel.net/threads/ffmpeg-on-cpanel-server.478751/post-2519691

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
Tutorial

Enable EPEL on CentOS

How to enable EPEL on CentOS: https://www.vultr.com/docs/enable-epel-on-centos

sudo yum install epel-release
Categories
Tutorial

How to Set or Change Hostname in CentOS 7/8

To set or change hostname on CentOS 7/8 use the command:
hostnamectl set-hostname your-new-hostname

Check your hostname:
hostnamectl or hostname

Categories
Solution

[fix] At least xMB more space needed on the /boot filesystem

How to fix: At least xMB more space needed on the /boot filesystem:
https://haydenjames.io/fix-least-xmb-space-needed-boot-filesystem/

Categories
Solution

[solution] cmake 3.1 or higher is required. you are running version 2.8

If you are getting the error “cmake 3.1 or higher is required. you are running version 2.8” while trying to compile znc or something else on CentOS, follow the solution given here to upgrade your cmake from cmake 2 to cmake 3:
https://stackoverflow.com/a/59689105

If you get the error “Cannot find a C++ compiler that supports both C++11 and the specified C++ flags.” while compiling cmake, you can try installing cmake 3.9.6 instead of the latest
https://github.com/Kitware/CMake/releases/download/v3.9.6/cmake-3.9.6.tar.gz

If cmake --version gives you error:
-bash: /usr/bin/cmake: No such file or directory
run hash -r and then check again.

Issues covered over this solution:
cmake 3.1 or higher is required. you are running version 2.8.12.2
Cannot find a C++ compiler that supports both C++11 and the specified C++ flags.
-bash: /usr/bin/cmake: No such file or directory