Curl Error With IPV6

Recently, there was an issue with a curl command that ran a script with php. The curl command would finish after a lengthy time as before it was completing within seconds. The issue turned out to be that the command was using the IPV6 connection where in the data center the IPV6 was not active. … Read more

Azure (Expand Disk)

How to expand a disk in Azure Windows https://querysurge.zendesk.com/hc/en-us/articles/115002530951-Azure-Expand-Disk- Linux https://docs.microsoft.com/en-us/azure/virtual-machines/linux/expand-disks

Subnet to Mask Bits conversion table

Subnet to Mask Bits conversion table Mask CIDR Length (Mask Bits) 128.0.0.0 1 192.0.0.0 2 224.0.0.0 3 240.0.0.0 4 248.0.0.0 5 252.0.0.0 6 254.0.0.0 7 255.0.0.0 8 255.128.0.0 9 255.192.0.0 10 255.224.0.0 11 255.240.0.0 12 255.248.0.0 13 255.252.0.0 14 255.254.0.0 15 255.255.0.0 16 255.255.128.0 17 255.255.192.0 18 255.255.224.0 19 255.255.240.0 20 255.255.248.0 21 255.255.252.0 22 … Read more

Benchmark Apache

How to test apache. Create 2 files: testload.php test.php Create a php file testload.php that checks the existence of another file named test.php in the same directory of two CentOS 7 servers with the same hardware characteristics and load but with different MPM. One of them will use event and the other one will use … Read more

Accessing Website with IP NAT Hairpinning

The term hairpinning comes from the fact that the traffic comes from one source into a router or similar devices, makes a U-turn and goes back the same way it came. Visualize this and you see something that looks like a hairpin. Hairpin NAT is a useful technique for accessing an internal server using a … Read more

How to Set or Change Hostname in CentOS 7

Use this information when changing the hostname in centos 7. Ways to show the hostname How to change the hostname. In order to change or set a CentOS 7 machine hostname, use the hostnamectl command as shown in the below command excerpt. In order to apply the new hostname, a system reboot is required, issue … Read more

How To: Fix kernel panic-not syncing: VFS: unable to mount root fs on unknown block(0,0) on Azure VM

When booting an Azure VM, this error: 304.863321] —[ end Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,0) Solution: remove old linux kernels, your /boot drive is out of space. -boot to grub and click on “Advanced options” -Select a previous kernel (should boot fine) login and enter command See … Read more