I have made a PHP 8.2 application and have hosted on Azure. I am not able to upload any file beyond 2 mb. Any help will be much appreciated. I get error 413- entity too large.
I have tried putting startup.sh and php.ini in root folder whose codes are as follows:-
startup.sh
#!/bin/bash
echo "client_max_body_size 5M;" > /etc/nginx/conf.d/upload.conf
service nginx reload
service php8.2-fpm restart
php.ini
upload_max_filesize = 5M
post_max_size = 5M
max_execution_time = 300
max_input_time = 300
memory_limit = 128M
it is still giving the same issue. I tried putting
client_max_body_size 5m;
on the server through ssh but it still the same result.
Tried copying the default folder to home and putting the client max body over there and on the startup command, gave the location to copy the default to the nginx/site-enabled/default and restarting the nginx server but nothing