Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Max Upload File Size

Hi there, I am trying to upgrade the max upload file size for my wordpress deployed in compute engine by one click deployment. I've updated the value in php.ini from 2M to 512M. Still it is not increasing the maximum upload file size in wordpress. Any help will be appreciated.

0 3 1,034
3 REPLIES 3

Hello subodhverma,

Welcome to GCC!

May I know the path of the php.ini that you are editing?

Thanks

how do I increase the upload size am currently having the same issue kindly help. @Willbin

I am having the same issue here are the details

WordPress Multisite
Solution provided by Google Click to Deploy

Issue is when trying to upload plugins from network admin
Error: The uploaded file exceeds the upload_max_filesize directive in php.ini.

/etc/php/8.1/cli/php.ini = upload_max_filesize = 15M
/etc/php/8.1/cgi/php.ini = upload_max_filesize = 15M
/etc/php/8.1/fpm/php.ini = upload_max_filesize = 15M
/etc/php/8.1/apache2/php.ini = upload_max_filesize = 100M

Operating System
Debian (11.8)
Software
Apache2 (2.4.56)
MySQL-Client (8.0.35)
MySQL-Community-Client (8.0.35)
MySQL-Community-Server (8.0.35)
MySQL-Server (8.0.35)
PHP (8.1.27)
WP-CLI (2.9.0)
WordPress (6.4.2)

Any assistance here would be greatly appreciated