Generar un certificado SSL wildcard con Let’s Encrypt

En un servidor de preproducción habitualmente uso un dominio propio para poder tener cada proyecto con un subdominio. Por ejemplo: comercioelectronico1.example.com webapp5.example.com … En estos proyectos quiero tener un certificado SSL válido para cada proyecto. La primera opción que se me ocurre es crear un certificado SSL para cada proyecto cada vez que lo necesite.… Continue reading Generar un certificado SSL wildcard con Let’s Encrypt

How to setup a master-master replication system between two MySQL servers

In this post, I will go to explain how to set up a master-master replication system between two MySQL to replicate an existing database. The MySQL master-master configuration is a master-slave configuration in both directions and allows us to get a high availability configuration because you have the same data in both servers and if… Continue reading How to setup a master-master replication system between two MySQL servers

How to rotate the Laravel logs

Laravel stores the logs of the project in the file “storage/logs/laravel.log”. If you don’t rotate this file can increase its size a lot, using the most part of the storage, causing problems with a full disk.

Problem updating Grafana in a Debian 9

Updating a Debian 9 I get this error with the “grafana” update: $ apt update … Ign:7 https://packagecloud.io/grafana/stable/debian stretch InRelease Err:9 https://packagecloud.io/grafana/stable/debian stretch Release 404 Not Found Reading package lists… Done E: The repository ‘https://packagecloud.io/grafana/stable/debian stretch Release’ does no longer have a Release file. N: Updating from such a repository can’t be done securely, and… Continue reading Problem updating Grafana in a Debian 9

Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/main/ 404 Not Found

Executing apt update in a Debian 8 I get the error W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy-backports/main/binary-amd64/Packages 404 Not Found [IP: 2001:67c:2564:a119::148:12 80] W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/main/source/Sources 404 Not Found [IP: 2001:41d0:202:100:213:32:5:7 80] W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found [IP: 2001:41d0:202:100:213:32:5:7 80] W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/main/source/Sources 404 Not Found [IP: 2001:41d0:202:100:213:32:5:7 80]… Continue reading Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/main/ 404 Not Found