Answers for "Maximum upload file size: 2 MB"

0

Maximum upload file size: 2 MB

Step 1: find php.ini file in /etc folder by running below cmd:
  
  grep -rl "post_max_size" | xargs ls -lrth   
  
Here I have used post_max_size keyword to search php.ini file as might be we have to change the same on other file ,
It can vary to setup to setup. 

Step 2: 

Edit php.ini or found file.

 set post_max_size = 100M   
 upload_max_filesize = 100M
 
In the above you can set any value as per your requirenment .

Step 3: 

Restart the httpd or ngnix or apache and php service. As per setup you restart the service .

For me :

service nginx restart
Posted by: Guest on July-22-2021

Code answers related to "Maximum upload file size: 2 MB"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language