yum [Errno 5] [Errno 2] No such file or directory

When running yum update on CentOS 7 server, i get following error

Someone had tried to install differnt version of python on this server. That caused this problem. When i run urlgrabber-ext-down, i get error saying python missing.

Problem fixed by creating symlink

See yum […]

Read More…

Install Vagrant on CentOS

To install Vagrant on CentOS, go to https://www.vagrantup.com/downloads Get link to latest version, then run “rpm -ivh URL_TO_RPM_FILE”. At time of writing this post, latest Vagrant version is 2.2.9, to install Vagrant 2.2.9, run

To check Vagrant version

See Vagrant […]

Read More…

Install bind in CentOS 7

bind is a DNS server. To install bind on CentOS 7, run

Enable bind to start on boot

Start bind

You can see status with

Setup firewall You need to allow DNS ports UDP/TCP 53 in firewall. On CentOS 7, you can run

Configure bind By default bind only listens […]

Read More…

yum list all available packages in a repo

To list all packages available on a specific repo, run

Example:

This command list all packages available in repo “litespeed” […]

Read More…

Install PHP 7 on CentOS VestaCP

To install PHP 7. you need to first enable epel and remi repo.

Remove existing PHP

Install PHP 7.3

start php-fpm

Set php 7.3 as default PHP for cli

Restart apache

[…]

Read More…

rpm verify packages

To verify a package installed on system, you can use

Example

Here bind package have /etc/named.conf file modified. To verify all packages on system, run

[…]

Read More…

CentOS 7 resolv.conf make changes permanent

On rebooting CentOS 7 server, changes made to resolv.conf is lost. This is becaise one of the network interface is configured to use DNS server.

To fix, edit

Remove the line

Now NetworkManager will not modify /etc/resolv.conf file on boot. Or you can set valid DNS servers in network config file like […]

Read More…

Install OpenLiteSpeed on CentOS

OpenLiteSpeed Benchmark

To install OpenLiteSpeed web server on CentOS, install repository for your CentOS version For CentOS 6

For CentOS 7

For CentOS 8

To install OpenLiteSpeed, run

Before you can install PHP, you need epel repository enabled with

Install PHP with

Set symlink

Start OpenLiteSpeed with

To stop […]

Read More…

CentOS 7 VestaCP Upgrade PHP to 7.x

On CentOS 7 VestaCP install PHP 5.6 by default. This is very old version of PHP. To upgrade PHP to latest version 7.x, you can install remi repo. Install EPEL repo

Install yum-utils

Install remi repo

Select PHP version you need

Here i selected PHP 7.3. You can select differnt PHP […]

Read More…