Configuring Postfix to block outgoing mail to all but one domain Rumi, September 6, 2019 This is so simple to do, but I have to look it up every time I need it (not something that comes up regularly!); When configuring a development server, you may find you have a need to ensure that emails will not be sent to any domain except those you… Continue Reading
Install VirtualBox on Centos 6 / 7 Rumi, September 6, 2019 Step 1 – Add Required Yum Repositories Firstly you are required to add VirtualBox yum repository in your system. Download repository file from its official site and place it under at /etc/yum.repos.d/virtualbox.repo .First navigate to /etc/yum.repos.d/ directory and use one of below commands as per your operating system. cd /etc/yum.repos.d/ wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo… Continue Reading
Monitor and Manage your services with Monit on CentOS 6 / RHEL 6 Rumi, September 6, 2019 Install Monit For Debian/Ubuntu Monit is easiest to install through apt-get: sudo apt-get install monit For RHEL: Configure EPEL repo to download the latest Monit package. [root@server ~]# rpm -Uvh http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpm [root@server ~]# yum -y install monit Once monit downloads, you can add programs and processes to the configuration file:… Continue Reading
Debian Wheezy repository Rumi, September 2, 2019 Debian wheezy is no longer supported. It is two major releases older than stable. It has not received any updates since 31 May 2018. The resolution is to dist-upgrade to oldstable, or to stable. You can still use the archive repository but there is no more updates: deb http://archive.debian.org/debian wheezy… Continue Reading
NGINX as a Reverse Proxy Rumi, August 30, 2019 Configure NGINXPermalink At this point, you could configure Node.js to serve the example app on your Linode’s public IP address, which would expose the app to the internet. Instead, this section configures NGINX to forward all requests from the public IP address to the server already listening on localhost. Basic Configuration… Continue Reading
Proxmox change from local-lvm to local storage Rumi, August 30, 2019 First remove the existing LVM-Thin: lvremove pve/data Then create an normal lvm on existing group. For example: lvcreate -L 755.96G -n data pve Format it: mkfs.ext4 /dev/pve/data Mount it in the fstab. The mount target must be empty, so delete everything in there. /dev/pve/data /var/lib/vz ext4 defaults 0 2 rm… Continue Reading
Installing NTP Service and change timezone in CentOS 6 / CentOS 7 Rumi, August 30, 2019 Let’s install NTP service first: yum install ntp Configure NTP services by updating the following section (only if appropriate): nano /etc/ntp.conf And by commenting on the sections: # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org… Continue Reading
Install and integrate DKIM with OpenDKIM and Postfix on a CentOS 6 Rumi, August 24, 2019February 4, 2024 UPDATE THE SYSTEM Before going any further, make sure you’re in a screen session and your system is fully up-to-date by running: ## screen -U -S opendkim-screen ## yum update ENABLE EPEL REPOSITORY OpenDKIM is available in the EPEL repository, so we need to enable it on the system before… Continue Reading
Nginx Reverse Proxying Multiple Domains Using map Module Rumi, August 24, 2019 map_hash_bucket_size 128; map $http_host $backend_servers { hostnames; default www.example.com; frontend.example2.com backend.example2.com frontend.example3.com backend.example3.com www.example.org backend.example.org } proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; server { location / { proxy_pass http://$backend_servers } } Continue Reading
Install PHP 7.3, 7.2, 7.1 on CentOS/RHEL 6.10 Rumi, August 24, 2019 Configure Yum Repository First of all, you need to enable Remi and EPEL yum repositories on your system. Use the following command to install EPEL repository on your CentOS and Red Hat 7/6 systems Use this command to install epel-release yum repository yum install epel-release and now execute one of… Continue Reading