Step 1 – Installing Apache
Apache web server debian packages are available under the default repositories. Login to your Ubuntu system with sudo privileges account. Open a terminal and execute the following commands:
sudo apt update
sudo apt install apache2 libapache2-mod-fcgid
The above commands will install Apache and FastCGI module to your server.
Step 2 – Install PHP with FPM
Next, install PHP and PHP-FPM on your Ubuntu system. For this tutorial, we choose PHP 7.4 to install using
For the PHP installation we recommend to use ppa:ondrej/php PPA. Execute below couple of commands to add the PPA to your system.
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
Then install PHP 7.4 (or required version) the latest version available on the day of writing this tutorial. Simply execute follows commands for the installation of PHP and PHP-FPM packages. Continue reading “Install LAMP with PHP-FPM on Ubuntu 20” »
Installing Development Tools
Development tools are required for building Python modules. To install the necessary tools and libraries type:
sudo yum groupinstall 'Development Tools'
Enable Software Collections (SCL)
Software Collections , also known as SCL is a community project that allows you to build, install, and use multiple versions of software on the same system, without affecting system default packages. By enabling SCL you will gain access to the newer versions of programming languages and services which are not available in the core repositories.
CentOS 7 ships with Python 2.7.5 which is a critical part of the CentOS base system. SCL allows you to install newer versions of python 3.x alongside the default python v2.7.5 so that system tools such as yum will continue to work properly.
To enable SCL, you need to install the CentOS SCL release file. It is part of the CentOS extras repository and can be installed by running the following command:
sudo yum install centos-release-scl
Continue reading “Upgrade Python 2.7 to 3.6 and installing pip on CentOS 7” »
yum install fontconfig libXext freetype libpng zlib libjpeg-turbo libpng libjpeg openssl icu libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi
sudo yum install -y https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm
wkhtmltopdf http://www.google.com google.pdf
OpenDKIM is method to digitally sign & verify emails on the mail servers using public & private keys. In other words opendkim implements the DKIM (DomainKeys Identified Mail) standard for signing and verifying email messages on a per-domain basis. DomainKeys are implemented to reduce the chances of outgoing mails to be marked as SPAM.
In this post we will demonstrate how to install & configure DomainKeys with postfix (MTA) on CentOS 7, i am assuming Postfix is already installed with following domain and hostname.
Hostname = mail5.freshdaymall.com
Domain = freshdaymall.com
Step:1 Set EPEL Repository using below rpm command
OpenDKIM package is not available in the default yum repositories but available in CentOS 7 EPEL repositories
[root@mail5 ~]# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Step:2 Install OpenDKIM Package using yum
[root@mail5 ~]# yum install -y opendkim
Step:3 Run below Command to create keys
Execute the below command to create public & private keys under folder “/etc/opendkim/keys” Continue reading “Configure DomainKeys- DKIM (OpenDKIM) with Postfix on CentOS 7” »
First, it is recommended to update your system packages to the latest version. You can do it with the following command:
apt-get update -y
After updating all packages, install all the dependencies required for LibreNMS with the following command:
apt-get install rrdtool whois fping imagemagick graphviz mtr-tiny nmap python3-mysqldb snmp snmpd python3-pip python3-memcache mtr-tiny acl unzip git curl wget -y
Once all the dependencies are installed, you can proceed to the next step. Continue reading “Install LibreNMS Monitoring Tool with Nginx on Ubuntu 20.04” »
Step 1 » Assign hostname for the server using the below command.
[root@krizna ~]# hostnamectl set-hostname mail.krizna.com
Step 2 » Make a host entry with your IP in /etc/hosts file.
Step 3 » Now start installing packages.
[root@krizna ~]# yum -y install postfix dovecot
After package installation continue with postfix configuration. Continue reading “Setup mail server on centos 7 using postfix and dovecot” »
1. Login to your Zimbra Admin Console using a browser.
2. In the left navigation pane under Home click Configure. Click Certificate.
3. On the right of the Zimbra Admin console click on the settings icon and select Install Certificate.
4. The Certificate Installation Wizard will pop up.
5. Under Server Name Select the Target server you are going to install the certificate for. Click Next Continue reading “Sectigo SSL certificate installation on Zimbra” »
Step 1 – Setup Yum Repository
In the first step install all the required yum repositories in your system used in the remaining tutorial for various installations. You are adding REMI, EPEL, Webtatic & MySQL community server repositories in your system.
CentOS / RHEL 7
yum install epel-release
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh http://repo.mysql.com/mysql-community-release-el7-7.noarch.rpm
Step 2 – Install PHP 7.4
Now install php 7 packages from webtatic rpm repository using following command.
yum --enablerepo=remi-php74 install php
Now install required php modules. Use following command to list available modules in yum repositories.
yum --enablerepo=remi-php74 search php
Now check all listed modules in above command and install required modules like below.
yum --enablerepo=remi-php74 install php-mysql php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt
For additonal php function to install use the command syntax below-
yum --enablerepo=remi-php74 install <your-php-funciton>
Continue reading “Install LAMP with PHP 7.4 on FastCGI/CGI configuration on CentOS 7” »
This can be easily achieved with yum config file “/etc/yum.conf“. Under main section define the proxy settings like below:
Save and exit the file and start using the yum command. Sample yum Config file with proxy settings is shown below :
You can use utility httping for that. It sends a HEAD request (by default) to a web server and measures the time it took to get a response.
The utility is available through a number of repositories for different OS’es and Linux distros:
sudo apt install httping
sudo apk add httping
macOS with Homebrew:
brew install httping
How to use it:
httping -x 22.214.171.124:1080 -g http://google.com
Continue reading “Ping behind proxy using httping” »