I have set up my first nginx server and in PhpMyAdmin i am getting the following errors:
Error 413 - Request Entity Too Large
Error 504 - Gateway Timeout Reloaded
I used the following line and install the nginx and php files.
sudo apt-get install nginx php7.3 php7.3-fpm php7.3-mysql php7.3-curl php7.3-gd php7.3-mbstring php7.3-cli
php7.3-common php7.3-curl php7.3-zip php7.3-xml php7.3-json php7.3-opcache php7.3-readline
I might not needed all, as my web application is a simple CRUD style base on PDO, MySQL.
I am reading in the site that i have to change-edit some congif but i can make it work.
Do i have to change them in NGINX, PHP, PHP-FPM?
What i must add/edit in here, NGINX:
/etc/nginx/sites-enabled/default
or here:
/etc/nginx/nginx.conf
client_max_body_size = 0; in the server section
What i must add/edit in here, PHP:
/etc/php/7.3/cli/php.ini
max_execution_time = 600
upload_max_filesize = 15M
post_max_size = 15M
What i must add/edit in here, PHP-FPM:
/etc/php/7.3/fpm/php.ini
request_terminate_timeout = 600
upload_max_filesize = 15M
post_max_size = 15M
Do i need to make changes to another file, like ExecTimeLimit
to 0
in PhpMyAdmin(where it is located) or any other?
I have found this for the time....
I followed this steps at it seems to work fine now.
Must of my problem solved but if i tried in PHPMyAdmin/SQL page, to insert 30K rows, i am getting error.
According to error.log
I am missing something?