Enabling HTTP/2

aptitude or apt-get aptitude install php-fpma2enmod proxy_fcgi setenvifa2enconf php7.3-fpm #Lets enable mpm_event a2dismod php7.3a2dismod mpm_preforka2enmod mpm_event /etc/init.d/apache2 restart a2enmod http2 Few Errors that came up. The order above fixes the issues. a2enmod mpm_event Considering conflict mpm_worker for mpm_event: Considering conflict mpm_prefork for mpm_event: ERROR: Module mpm_prefork is enabled – cannot proceed due to conflicts. It […]

Mysql/MariaDB Upgrade from Debian 9 to 10

I read the release notes for Debian: https://www.debian.org/releases/stable/amd64/release-notes/ Did the standard upgrade from Debian 9(stretch) to Debian 10 (buster) In this blog we will cover the proper way to upgrade mysql as to not to get this problem. While I’m not saying this covers all steps mysql/mariadb upgrade, its a good lesson on what to […]

Moving / (root partition) to NVME while keeping /home on HDD

I need to move my running Linux Debian machine to my new m.2 nvme Samsung drive to gain 10x IO speed improvement. It’s crazy fast! The procedure is very similar as below http://lucasmanual.com/blog/move-root-partition-to-home-partition/ Prerequisites: You already installed NVME and partitioned it You have gpt2 with grub partition similar to : /dev/nvme0n1p1 [ 2.00 MiB] /dev/nvme0n1p2 […]

Cookiecutter – Modify context in post_gen_project.py

Cookiecutter is a template where you can setup skeleton of a project, and based on parameters from cookiecutter.json it will prefill all files with the supplied values. Advance Cookiecutter Question: How can I add new context based on what was submitted from cookiecutter.json, then come up with my own variations, and pass them back to […]

Quick Intro to Cassandra vs MongoDB with python

Cassandra Conclusion: “One way that Cassandra deviates from Mongo is that it offers much more control on how it’s data is laid out. Consider a scenario where we are interested in laying out large quantities of data that are related, like a friend’s list. Storing this in MongoDB can be a bit tricky – it’s […]

mdadm Raid5 – How to replace failed drive GPT partition

Install gdisk. On debian squeeze you need to add main backports vi /etc/apt/source.list #Add below deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free Install gdisk aptitude install gdisk Drive sdb1 failed? Show details of partition md0 mdadm –detail /dev/md0 cat /proc/mdstat Personalities : [raid6] [raid5] [raid4] md0 : active raid5 sdc1[1] sdd1[2] 3907028864 blocks level 5, 64k […]

Upgrade Grub to Grub-pc

During upgrade of Lenny to Squeeze I run into an an issue with upgrading grub to grub2. My 4x2Tb drivers were created using GDP partition. As a result of the upgrade the grub-pc had an issue with my gpt partition. If you receive any of these errors you might be in a similar situation. The […]