Nginx PhpMyadmin error: 413 Request Entity Too Large

people

Lets Try

. min read

A 413 Nginx error occurred while uploading the database through phpMyAdmin.  the requested entity was too large as per the error. 


Solution : 


If you are trying to upload large files and are seeing this error, it means the client_max_body_size value is too low.


You may access the Nginx configuration file with the command:


sudo nano /etc/nginx/nginx.conf


It may also be located in /usr/local/nginx/conf/nginx.conf or /usr/local/etc/nginx/nginx.conf.


Add the following line within the http block


http {

    . . .

    client_max_body_size 128M;

    . . .

}


Save and exit (press CTRL + X, press Y and then press ENTER)


Now, check if the Nginx config file syntax is valid.


sudo nginx -t


If valid, restart Nginx service.


sudo systemctl restart  nginx


You may also need to edit the php.ini config file.

Done!

More Stories from

Lets Try
Lets Try.8 min read

Deploy Boxcoin SAAS on VPS Ubuntu Nginx Server

Looking for the fastest way to run Boxcoin Crypto SAAS on Ubuntu server? We cover the full installation process on Self-Managed VPS of webdock, hetzner, aws

.
Lets Try
Lets Try.4 min read

Set Up Daily MySQL Backups to DigitalOcean Spaces (S3-Compatible)

Step-by-Step Guide to implement Automated MySQL Database Backup to DigitalOcean Spaces or s3 compatible buckets (With Retention & Logs) on Ubuntu server.

.
Lets Try
Lets Try.3 min read

Raspberry Pi NAS: Install OpenMediaVault + CasaOS (Step-by-Step Guide)

Turn your Raspberry Pi into a powerful NAS by installing OMV for RAID storage and CasaOS for a simple UI—build a secure, user-friendly home cloud.

Dev
Dev.2 min read

Window Server 2025 Contabo VPS Install Guide

Window server in contabo is very costly but you can deploy your license key with custom image.

Dev
Dev.1 min read

Setting up SSH keys to a Ubuntu Server with Mac

Generating SSH keys on a Mac for use with an Ubuntu server is a straightforward process. Here’s a step-by-step guide: Generate the SSH Key Pair

.
Built on Koows