Perfect Ubuntu 20 Nginx Web Server

jong07

Active member
Dec 21, 2020
146
56
28
@simplysexyboy hi, how to solve this? i already change the fpm php.ini to 128m but still get error, i also followed the instructions like add in wp function.php but still get error. i hope you can solve it thanks :)

error 413.PNG
 

simplysexyboy

Well-known member
Trusted Uploader
Oct 24, 2020
557
625
93
U.S.A
go to your - /etc/nginx/nginx.conf

NGINX:
   client_max_body_size 100M;

add this code to nginx Server block

then restart nginx and PHP fpm.

sudo systemctl reload nginx
sudo systemctl reload php7.4-fpm


Yoi can also make this command prefred quick alians
Go to your home directoy
cd
sudo nano .bashrc
find the alias line and add the below

alias ngt='sudo nginx -t'
alias ngr='sudo systemctl reload nginx'
alias fpmr='sudo systemctl reload php7.4-fpm'
alias rr='sudo systemctl restart redis'
alias mdr='sudo systemctl restart mariadb'
alias upt='sudo apt update'
alias upg='sudo apt upgrade'
alias rb='sudo reboot'

After run this command
~/.bashrc

now you can use
ngr - reload nginx
fpmr -reload PHP fpm
 
  • Love
Reactions: jong07

jong07

Active member
Dec 21, 2020
146
56
28
go to your - /etc/nginx/nginx.conf

NGINX:
   client_max_body_size 100M;

add this code to nginx Server block

then restart nginx and PHP fpm.

sudo systemctl reload nginx
sudo systemctl reload php7.4-fpm


Yoi can also make this command prefred quick alians
Go to your home directoy
cd
sudo nano .bashrc
find the alias line and add the below

alias ngt='sudo nginx -t'
alias ngr='sudo systemctl reload nginx'
alias fpmr='sudo systemctl reload php7.4-fpm'
alias rr='sudo systemctl restart redis'
alias mdr='sudo systemctl restart mariadb'
alias upt='sudo apt update'
alias upg='sudo apt upgrade'
alias rb='sudo reboot'

After run this command
~/.bashrc

now you can use
ngr - reload nginx
fpmr -reload PHP fpm
haha yes! you solved it. Thank you very much also for additional instruction very important.
 
  • Like
Reactions: simplysexyboy

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu