Shadow

Linux

Assign Let’s Encrypt Certificate to Asterisk (Core) SIP TLS.

Assign Let’s Encrypt Certificate to Asterisk (Core) SIP TLS.

Linux
How to Install let's encrypt certificate on asterisk (core) and assign to the SIP TLS? Asterisk is an open-source communication tool kit. We can build voice, video, and text applications with it. Asterisk supports several standard VoIP (voice-over IP) protocols, including the SIP (Session Initiation Protocol), MGCP (Media Gateway Control Protocol), and H. 323. It supports most SIP telephones, acting both as registrar and back-to-back user agents. Let's Encrypt is a free SSL certificate provider. We can use this certificate for the SIP TLS encryption in the asterisk. We need to install certbot in the system. RHEL or CentOS # yum install epel-release# yum install certbot python2-certbot-apache mod_ssl Ubuntu # add-apt-repository ppa:certbot/certbot# apt get-update# apt-ge...
How to resize the root partition in centos?

How to resize the root partition in centos?

Linux
How to resize or extend the root partition in centos? All the Linux file systems are stored in the root partition. Sometimes we feel the provided storage is enough for the system but eventually, we need more storage at the root. So, In this post, I will share the steps to resize or extend the root partition. This method is also applied to RHEL. When we extend the storage in the system. We need to find out that how much free storage we have left. # parted(parted) print free There is a 10.7GB free space/storage. we will add this free storage to the root partition. Press q to exit. Next step, we need to run fdisk tool or command to manage disk or volumes. Run fdisk /dev/sda to access the disk management. press p to print or show the details of the disk. In the p...
Join a CentOS to Active Directory domain using LDAP.

Join a CentOS to Active Directory domain using LDAP.

Linux
How to configure windows active directory LDAP in CentOS? In most organizations or company's, users and groups are created and managed on the Windows Active Directory Domain controller. In short form Active Directory. What if we have some Linux servers and client's systems and need to authenticate using windows credentials? In this post, we will discuss integrating the Linux (centos) system or machine with windows AD and log in to those systems with AD credentials using LDAP protocol. 1- Prepare the Linux System In CentOS, the default system name is localhost.localdomain. Change it to something meaningful. Ex. centos7. #hostnamectl set-hostname centos7or#nano /etc/hostname Make sure that, the active directory is reachable. Ping the domain name and response from AD must b...
How to Install/Upgrade to PHP 7.4 on Ubuntu VestaCP or vesta

How to Install/Upgrade to PHP 7.4 on Ubuntu VestaCP or vesta

Linux
How to upgrade the php version to php7.4 in VestaCP or Vesta on Ubuntu. VestaCP or vesta is the most recommended, free, and open-source hosting application. Till this post, it uses a 7.2 version of PHP. In this post, I will install or upgrade php7.4 in vesta. First, let's check the current PHP version. # php -v The output of the command will be looks like this. The second method to verify the PHP version is, create a phpinfo.php file in the root directory and add this line without quote "<?php phpinfo(); ?>". Restart the apache2 service and refresh or browse the web page. Your URL will be http://example.com or IP_address/pfpinfo.php We have tested and verified the PHP version. The current version is 7.2Let's install and configure the php7.4 on the vesta.Instal...
Change the size of email attachments in roundcube on vestacp or vesta

Change the size of email attachments in roundcube on vestacp or vesta

Linux
How to change the email attachment size limit in roundcube on vestacp? Roundcube is the most used web-based email client. Vesta uses the roundcube as a default email client. The roundcube default email attachment size is 5.0 MB. We already know that file upload size or attachment size should be defined in the PHP configuration (php.ini) file. I have already configured the php.ini file for phpMyAdmin and it is set to 20 MB. It is working fine for the database or phpMyAdmin. But the still the same issue in the roundcube. Please follow this link to change upload size in the database or phpMyAdmin and edit the php.ini file. Below are the images, which I have made changed in php.ini files. Working fine with phpMyAdmin. And It should work with roundcube too. But modi...
Change upload file size in phpMyadmin on VestaCP.

Change upload file size in phpMyadmin on VestaCP.

Linux
Change upload file size in phpMyadmin on VestaCP. phpMyAdmin is an open-source and free database administration tool for MySQL and MariaDB. We can do much more database administration from MySQL commands than phpMyAdmin, but it requires advanced knowledge of systems and commands. So, phpMyAdmin is the first choice for database administration and VestaCP uses as a default. I have created the website in VestaCP. While trying to upload the database from phpMyAdmin for the created website, it says the limit is exceeded. I looked into it and the default max file upload size was 2 MiB (2048kiB). See in the image below. Let's change the file upload size or limits from the phpMyAdmin in VestaCP. Login to the VestaCP server, navigate to the Apache directory, and edit the php.ini fil...
Force redirect all websites to HTTPS in VestaCP

Force redirect all websites to HTTPS in VestaCP

Linux
Force redirect all websites to HTTPS in VestaCP Vestacp is one of the most popular, and free web hosting service provider. It uses Apache2 as a back-end and Nginx as a front-end web server. Let's Encrypt is a default SSL / HTTPS certificate provider for vestacp. It is installed as a default package. By default, Vestaacp provides the HTTP only. For the HTTPS, we need to browse manually. This is a step by step guide to solve this issue. Create an HTTPS template for Apache2 and Nginx and forcefully redirect websites to HTTPS. The below image is the default configuration of the vestacp. We can not select any HTTPS template in Nginx and Apache2. In this demo, I am using Ubuntu 18.04. Login to your server and update it. Navigate to the vestacp templates web directory. Download ...
VestaCP upgrade php7.3 in Ubuntu

VestaCP upgrade php7.3 in Ubuntu

Linux
VestaCP upgrade php7.3 in Ubuntu While writing this post VestaCP is using PHP 7.2 default installed. Running Apache2 and Nginx as back-end and frontend. In this post, I'm going to show you, how to upgrade Vestacp to php7.3 in ubuntu. First, Let's start by checking the current version of PHP in VestaCP. # php -v The output will look like this. In my environment, the PHP version is 7.2. PHP 7.2.24-0ubuntu0.18.04.6 (cli) (built: May 26 2020 13:09:11) ( NTS )Copyright (c) 1997-2018 The PHP GroupZend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologieswith Zend OPcache v7.2.24-0ubuntu0.18.04.6, Copyright (c) 1999-2018, by Zend Technologies Second option to verify PHP version, Create phpinfo.php file in the root directory of the VestaCP hosted website. Now browse the site...
How to create a user, add a user to sudo group and run sudo command without password in Ubuntu

How to create a user, add a user to sudo group and run sudo command without password in Ubuntu

Linux
How to create a user, add a user to sudo group and run sudo command without password in Ubuntu More than one person should interact with the same system at the same time. As a system administrator, we have the responsibility to manage the system’s users and groups by creating and removing users and assign them to different groups.  In Linux, you should not run the system with root privileges. But, it can also be inconvenient to have to enter the password every time when using sudo. This is a step by step guide to creating users, add users to specific groups, and allow to run sudo command without password.   Create or add a user using adduser command $ sudo adduser demo OR # adduser demo You will be prompted to enter and confirm the password and user detail. create a strong password. It ...