By Lashjg
Hola amigos, tengo todo listo para instalar mi tema en wordpress pero al intentar subir me sale el error “413 request entity too large”, estoy trabajando con Ubuntu 18.04, Nginx. Espero su ayuda
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @Lashjg
What you can do is to increase the max upload size. You can do that using the php.ini file and using the ini_set from the theme’s functions.php file.
You can locate the functions.php file inside the theme’s directory and put the following snippet of code inside that file:
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );
The next thing you can do is to locate the php.ini file in use using a phpinfo file and then change the value for the upload_max_filesize in the php.ini file you can alter the following values and increase them:
memory_limit = 256M
post_max_size = 32M
upload_max_filesize = 100M
file_uploads = On
max_execution_time = 600
max_input_time = 600
Hope that helps!
Regards, Alex
Hola, muchas gracias por tu respuesta, te comento que he localizado el php.ini con el comando “sudo vim /etc/php/7.2/fpm/php.ini” encontré los parámetros pero no me permite editarlo solo me sale en modo lectura.
Y como ingreso al functions.php para editarlo, disculpa las preguntas pero recién estoy empezando con DO.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.