How to Migrate from RHEL 8 to CentOS 8
Live migration of a RedHat Enteprise Linux 8.0 to Centos 8.0
RHEL 8 to CentOS 8 migration guide.
If you tried a RHEL 8 Beta or you have a Developer’s License of RedHat Enterprise Linux 8 and you want / need to migrate to CentOS 8 for any reason (licensing, cost, hobby, …Read More
Installing Virtualmin
What is Virtualmin?
Virtualmin is a powerful and flexible web hosting control panel for Linux and BSD systems. Available in an Open Source community-supported version, and a more feature-filled version with premium support, Virtualmin is the cost-effective and comprehensive solution to virtual web hosting management.
Requirements
Any of the below OSes and architectures:
Installing docker with Ubuntu 16.04 LTS, Mint 17 and CentOS 7
Installing docker with Ubuntu 16.04 LTS, Mint 17 and CentOS 7
A brief introduction to virtualization
Today we will learn installing docker with Ubuntu, mint and CentOS 7 Linux, Before the evolution of the concept of virtualization, to run one application one dedicated server was required, if you wanted to run 20 …Read More
Understanding Containers, user space, userland and kernel space
Perhaps you’ve been charged with developing a container-based application infrastructure? If so, you most likely understand the value that containers can provide to your developers, architects, and operations team. In fact, you’ve likely been reading up on containers and are excited about exploring the technology in more detail. However, before …Read More
Setting up PPTP VPN server on CentOS Server
Setting up PPTP VPN server on CentOS Server
There are 3 basic types of VPN servers: Point-to-Point Tunneling Protocol (PPTP), Layer 2 Tunneling Protocol(L2TP) and OpenVPN. (Yeah there are more but let’s deal with the basics here). In this post I will use PPTP as it’s supported by almost all devices and OSes natively: …Read More
Centos Recover broken rpmdb or missing packages
Centos Recover broken rpmdb or missing packages
Did you ever encountered broken rpmdb ? Missing packages, filesystem corruption at /var/lib/rpm and ran out of backups or a restore isn’t possible ? You can fix it in Centos Recover broken rpmdb or missing packages and on other RHEL based systems too.
Let’s assume that …Read More
Configure FirewallD in RHEL/CentOS 7 and Fedora 21/22
In a previous post I’ve showed how to disable firewalld and roll back to our favorite post-systemd iptables firewall. In this post we gonna see how to Configure FirewallD in RHEL/CentOS 7 and Fedora 21/22.
Firewalld is a dynamic daemon to configure and manage firewalls (iptables rules typically) with support for …Read More
Change Timezone Centos / RHEL 7 systems
Usually in Centos and RHEL 6 systems a soft link is enough to change the Timezone. On RHEL 7 a few things have change. Anyway. In this post I will show you how to Change Timezone Centos / RHEL 7 systems, plus the old way for 6.
Change Timezone Centos / …Read More
Setup CentOS server (CentOS 7): First steps
Introduction: How to Setup CentOS server
When you first Setup CentOS server, there are a couple setup steps that you ought to take at an opportune time as a feature of the fundamental setup.
This will build the security and ease of use of your server and will issue you a strong …Read More
Enable Apache UserDir In CentOS 7 / RHEL 7 with SELinux
Lets show you how to install userdir for Centos 7 with Selinux Enabled. In this method all users should have their own public_html directory.
1. Go to root user
1 |
su - root |
2. Create /etc/httpd/conf.d/userdir.conf file
Install apache:
1 |
yum install httpd -y |
Enable Apache Userdirs
1 |
vi /etc/httpd/conf.d/userdir.conf |
add:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
<IfModule mod_userdir.c> # # UserDir is disabled by default since it can confirm the presence # of a username on the system (depending on home directory # permissions). # UserDir enabled nixpal # # To enable requests to /~user/ to serve the user's public_html # directory, remove the "UserDir disabled" line above, and uncomment # the following line instead: # UserDir public_html </IfModule> <Directory /home/*/public_html> Options Indexes Includes FollowSymLinks ##For apache 2.2,Please use: AllowOverride All Allow from all Order deny,allow #For apache >= 2.4,Please use : Require all granted </Directory> |
Restart apache
1 |
systemctl restart httpd.service |
Then create user’s public_html and assign permissions.
1 |
mkdir /home/nixpal/public_html |
1 |
chmod 711 /home/nixpal |
1 |
chown nixpal:nixpal /home/nixpal/public_html |
1 |
chmod 755 /home/nixpal/public_html |
Then here’s the other new things, especially you are using …Read More
Disable a Firewall In Red Hat Enterprise Linux / CentOS
Disable a Firewall In Red Hat Enterprise Linux / CentOS
RHEL 6.x and beyond:
A Linux firewall is an integrated collection of security measures designed to prevent unauthorized electronic access to a networked computer system. Red hat Linux kernel has firewall called iptables. It can be disabled by typing following command (login …Read More