Si te encuentras con un WordPress u otro software PHP con una limitación de tamaño máximo de subida, resolverlo es muy fácil.
Tag: debian
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. Pero hay una solución mejor: crear un certificado wildcard, válido para todos los subdominios dentro de un dominio, y olvidarme de crear más certificados para esos subdominios. Let’s Encrypt, la popular autoridad de certificación, nos proporciona esta funcionalidad.
Paquetes para una instalación LAMP
En esta entrada detallo los comandos para la instalación de un LAMP en Debian 10, con Apache 2, MySQL 5.7 y PHP FPM 7.4. Parto de la instalación base de Debian 10 que ofrece cualquier proveedor de servicios.
Desinstalar un programa completamente en Debian o en Ubuntu
A veces tienes que desinstalar un programa en Linux (Debian, Ubuntu o derivados). Esto lo puede hacer con el comando:
Update Debian to PHP 7.4
PHP 7.4 has been published on 28 Nov 2019.
To update the active version of PHP to this one in a Debian system, you can follow the next steps.
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 one goes down you can still work with the live server.
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 stretch InRelease Err:9 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 is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. ...
Installing and configuring a supervisor in Debian to execute a Laravel queue worker
I need to install and configure a supervisor in Debian to continuous execute a queue worker.
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] W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found [IP: 2001:41d0:202:100:213:32:5:7 80] E: Some index files failed to download. They have been ignored, or old ones used instead.