Carlos Sura

Centos

Custom Apache Handler Multiple PHP Versions

I needed to install PHP 7.4.x on CentOS 6 aside from the existing version on the server. It was quite a challenge but I made it work, the other issue I had to work with was because of the Apache 2.2 …

Install ElasticSearch CentOS

I started playing around with Elasticsearch and after searching a little bit I found a way to install it quickly and with minimal/default settings By executing the following steps: rpm --import …

Change Postfix Port

I was trying to route emails from one MTA to postfix, so I needed to change the port that postfix was using, so this is what I did: First, please backup the file in case you break something cp …

Start OpenVPN at boot CentOS 6

I was not able to remember how to do this… Therefore every time I was rebooting my server OpenVPN was not starting. So, here is how I did this: mv my-cert.ovpn /etc/openvpn/my-cert.conf …

Create swap file on CentOS

I needed swap for a t2.micro ec2 machine because it was dying almost twice a week, so I created a swap file for this. Run as root or the following commands: fallocate -l 1G /swapfile chmod 600 …