Increase PHP.ini file upload limit on Google Cloud Platform Kubernetes Wordpress Click-to-Deploy

3/14/2020

I deploy a one-click Wordpress Kubernetes application. Now I want to upload Gravity-From Plugin. But it gives me the error:

The uploaded file exceeds the upload_max_filesize directive in php.ini

How I am going to increase the PHP.ini file site so I can upload the plugin.

Note : Github Repo: https://github.com/GoogleCloudPlatform/click-to-deploy

Screenshot of The Error : enter image description here

Screenshot Of Application:enter image description here

-- Sushen Biswas
kubernetes
php
wordpress

1 Answer

3/22/2020

There are 4 ways that you can choose to increase the maximum upload file size in WordPress.

1. Update .htaccess file

php_value upload_max_filesize 128M

php_value post_max_size 128M

php_value memory_limit 256M 

php_value max_execution_time 300

php_value max_input_time 300

2. Update wp-config.php file

@ini_set( 'upload_max_filesize' , '128M' );

@ini_set( 'post_max_size', '128M');

@ini_set( 'memory_limit', '256M' );

@ini_set( 'max_execution_time', '300' );

@ini_set( 'max_input_time', '300' );

If you need more to learn follow the post.

https://help.servmask.com/2018/10/27/how-to-increase-maximum-upload-file-size-in-wordpress/

-- Sushen Biswas
Source: StackOverflow