Techworked has covered on how to set up WordPress on Google Cloud Platform HERE
One of the problem encountered when setting up is ‘upload_max_filesize’ error. A limit set in php.ini causing this issue. On GCP platform, we have to use SSH and some linux commands to solve this issue. Techworked got you covered with the steps to solve.
Follow as below (this is applicable for WordPress by Google click to deploy) ;
1.Open Deployment manager in GCP console. Check on the left pane.
2.Open SSH Terminal by clicking as below from dropdown menu.
3.Once SSH terminal opened it should look like image below
4.Now lets key in some commands
- First to increase upload size
sudo sed -i "s/upload_max_filesize =.*/upload_max_filesize = 20M/g" /etc/php5/apache2/php.ini
- Second to increase post size
sudo sed -i "s/post_max_size =.*/post_max_size = 20M/g" /etc/php5/apache2/php.ini
- Finally restart Apache 2 Webserver
sudo /etc/init.d/apache2 restart. $ sudo /etc/init.d/apache2 restart
5.Once the webserver restarted , refresh your webpage in the browser. You can close the terminal as well.
Stay tuned for more about GOOGLE CLOUD PLATFORM on Techworked
One thought on “Solve “upload_max_filesize” in WordPress on Google Cloud Platform”
very nice http://www.google.com