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 Pure-FTPd on CentOS with Virtual Users

To install Pure-FTPd on CentOS, run

Edit configuration file

To disable anonymous FTP, find

Replace with

To enable Virtual Users, find

Uncomment the line.

To Allow Apache user to login via FTP, find

Replace with

I set MinUID value to 47, as apache user have UID/GID of […]

Read More…

Install vim from source on CentOS

To install vim from source on CentOS server, run

This will install latest version of vim. You can start it with command

To get it work with “vi” command, i removed preinstalled vim editor with command

Now create a symlink with

[…]

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…

Set hostname in CentOS 7

Hostname is a sub domain. To set hosting, edit file

Add

Example

Now run

Example

Run

Edit file

Edit or add HOSTNAME entry

Reboot the server with

You can verify hostname with command

Related Posts Change Server Hostname in VestaCP Set Permanant hostname on AWS […]

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…