Thursday, April 25
Shadow

Linux

How to set up confluence with MySQL database. Part 2

How to set up confluence with MySQL database. Part 2

General, Linux
Part 2 of 2 If you haven't found part 1, you can access it from here. In part 1 we installed MySQL, created a confluence database and user, and granted all the required permission to the user. Installed open JDK and configure or set up JAVA_HOME. Downloaded the Confluence file, created the required directory, extracted the Confluence file, and moved to the created directory. In this part, we will configure confluence and connect or set up with MySQL database. In this step, we will configure the confluence home directory by editing the confluence.init.properties file. which is located in the /opt/confluence/confluence/WEB-INF/classes/ directory root@conf:~# nano /opt/confluence/confluence/WEB-INF/classes/confluence-init.properties uncomment the confluence.home se...
How to set up Confluence with MySQL database. Part 1

How to set up Confluence with MySQL database. Part 1

General, Linux
Part 1 of 2 Confluence supports most of the databases. In this post, we will set up confluence with MySQL database in a Linux environment. I am using ubuntu 20.04 OS. In the first step, we will install the MySQL database. apt install mysql-server and press y. root@conf:~# apt install mysql-serverReading package lists… DoneBuilding dependency treeReading state information… DoneThe following additional packages will be installed:libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libevent-core-2.1-7 libevent-pthreads-2.1-7 libfcgi-perllibhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perlliblwp-mediatypes-perl libmecab2 libtimedate-perl liburi-perl mecab-ipadic mecab-ipadic-utf8 mecab-utilsmysql-client-8.0 mysql-clien...
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...