Skip to content

Instantly share code, notes, and snippets.

@SrShark
Last active March 2, 2020 11:54
Show Gist options
  • Save SrShark/e4850c3c2a623fd0821863b619732c29 to your computer and use it in GitHub Desktop.
Save SrShark/e4850c3c2a623fd0821863b619732c29 to your computer and use it in GitHub Desktop.
Aumentar el uso de ram y carga de archivos en wordpress.

Modificar el archivo php.ini

/etc/php/7.0/fpm/

sudo nano php.ini

Cambiar los siguientes valores:

memory_limit = 256M
post_max_size = 256M
upload_max_filesize = 256M

Modificar el archivo de config nginx.conf

/etc/nginx

sudo nano nginx.conf

insertar en el cuerpo de http

# Max upload file
client_max_body_size 256M;

Reiniciar Nginx

sudo systemctl restart nginx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment