Category Archives: Linux

Apache cookie authentication

There’s a module that let’s you authenticate via any auth method (basic auth, ldap, etc…) to specific locations, you can also set an expiration time on the cookie, so when the time expire the user will be redirected to the … Continue reading

Posted in Apache, Linux, Misc, PHP, Security | Leave a comment

Installing ModSecurity with Nginx and OWASP CRS on Debian Stretch

First we have to install all dependencies including ModSecurity and Nginx. It’s recommended to install Nginx from the stable branch of the official repositories, this way you can update nginx without compiling it everytime however we’ll need to compile the … Continue reading

Posted in Debian, Linux, ModSecurity, Nginx, Proxy, Security, Unix | Tagged , , , , , , | Leave a comment

Percona XtraDB Cluster in Docker Swarm.

I have the next scenario where I needed to setup a MySQL Percona XtraDB Cluster on containers on 3 different servers.

Posted in Cluster, Containers, Databases, Docker, HA, Linux, Misc, MySQL, Percona, Percona XtraDB | Leave a comment

Incorrect definition of table mysql.proc

I recently upgraded my server from Debian 8 to Debian 9, I also upgraded MySQL5.5 (Percona)  to MariaDB 10, everything seemed fine until I noticed the database was down, and i just couldn’t bring it up, it just kept dying, … Continue reading

Posted in Databases, Debian, Linux, MySQL, Systemd, Unix | 4 Comments

Installing HaProxy in Debian 8

there’s a package in debian 8 repository however it’s not the newest version (1.5), so in order to have the most recent release (1.6.5) we are going to compile it from source. You can download it from the official page … Continue reading

Posted in Debian, HaProxy, Linux, Load balancing, Systemd, Unix | Leave a comment