SSH no hostkey alg

When connecting to an Ubuntu 24.04 server from CentOS 6 server, i got error “no hostkey alg” To fix this error, edit /etc/ssh/sshd_config on Ubuntu server and add followng to end of the file Restart ssh service on Ubuntu Now you should be able to connect to Ubuntu server from CentOS 6 using SSH. If … Read more

CentOS 7 yum update HTTP Error 404: Not found

CentOS

If you’re still running CentOS 7 on your systems, you may have recently encountered errors when trying to run `yum update`. This error occurs because CentOS 7 reached its end-of-life (EOL) on June 30, 2024. As a result, the main CentOS mirrors no longer host packages for this version. CentOS maintains an archive of older … Read more

OVH CentOS 7 server grub rescue prompt

CentOS

On an OVH Cpanel server running CentOS 7, the server won’t boot. When accessing the server console using IPMI, I found the following error. I booted the server into rescue mode, checked the disk partitions with the command parted -l The server had 2 NVMe disks configured as RAID 1 mirrors. The first partition with … Read more

How to install cwebp on CentOS 7

CentOS

cwebp is a command line program used to convert images into webp format. To install cwebp on CentOS 7, run WebP is an image format that does lossy compression of digital photographic images. WebP consists of a codec based on VP8, and a container based on RIFF. Webmasters, web developers and browser developers can use … Read more

CentOS 8 Error: Failed to download metadata for repo ‘appstream’

When updating packages on CentOS 8 server, I got the following error [root@instance-20220409-2340 ~]# dnf update Failed loading plugin “osmsplugin”: No module named ‘librepo’ CentOS Linux 8 – AppStream 51 B/s | 38 B 00:00 Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist [root@instance-20220409-2340 ~]# This is … Read more

How to install MySQL 5.7 on CentOS 7 Server

To install MySQL 5.7 on CentOS 7 server, install the repository rpm -ivh http://repo.mysql.com/mysql57-community-release-el7.rpm import MySQL GPG key with rpm –import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022 Install MySQL with the command yum install mysql-community-server.x86_64 Enable MySQL to start on boot systemctl enable mysqld Start MySQL with systemctl start mysqld Find the initial MySQL password with the command grep ‘password’ … Read more

How to Install Supervisord on CentOS 7

Supervisor is a program used to monitor and control programs. It can auto startup application on server boot time, and restart if the application fails. http://supervisord.org To install supervisors on CentOS 7, first, enable epel repository. yum install -y epel-release Once EPEL repository is enabled, you can install supervisors with the yum command yum install … Read more

Install Tomcat on CentOS 7

Apache Tomcat is an open source implementation of the Java Servlet and Java Server Pages. To install Apache Tomcat on CentOS 7, run yum install tomcat To enable tomcat start on boot systemctl enable tomcat You can manage tomcat with systemctl stop tomcat systemctl start tomcat systemctl status tomcat systemctl restart tomcat To see the … Read more

Install Caddy Webserver on CentOS 7

Caddy Webserver

To install Caddy Webserver on CentOS 7, run yum install yum-plugin-copr yum copr enable @caddy/caddy yum install caddy Enable caddy start on boot systemctl enable caddy To start caddy, run systemctl start caddy Caddy configuration file available at /etc/caddy/Caddyfile See Caddy