I have simple one code for change upload file limit. When you have wordpress website on Google cloud and you want to upload files largen then 2MB. So use use given code on your google cloud wordpress’s terminal
How to Do
- Open google cloud’s terminal or SSH.
- Use sudo nano /etc/php/8.1/fpm/php.ini command.
- Now find and change
upload_max_filesize = 2M
post_max_size = 8M - Then Save editor page using ctrl+S then use ctrl+x for exit.
- Then restart using sudo service php8.1-fpm restart command.
This code working on my server. Hope this code will work on your server. Thank for visiting.