Score:1

How to increase the PHP limits in Google Cloud Platform for web

jo flag

I am using wordpress for web design and was asked to contact the host to update to the config below:

max_execution_time 360
memory_limit 128M
post_max_size 32M
upload_max_filesize 32M

Would you please advise how could I do it in Google Cloud Platform? Thanks.

Score:1
jp flag

Does How To Edit php.ini File IN Google Cloud by Nahid Mahamud help you?

In short:

  1. Go to your project in google cloud platform
  2. Go to Computer Engine-> VM instances -> project name
  3. Click On SSH.
  4. It will open this [console] window.
  5. sudo find / -name "php.ini" will list the files.

Edit the php.ini file in use with your application & add the settings you need.

Score:0
br flag

For WordPress deployed via official Google Click to Deploy image, you can follow these steps:-

  1. SSH into your VM instance
  2. Type in the command sudo find / -name "php.ini"
  3. You will receive a list of files depending on your php version:
/etc/php/8.1/apache2/php.ini
/etc/php/8.1/fpm/php.ini
/etc/php/8.1/cli/php.ini
/etc/php/8.1/cgi/php.ini
  1. Edit the fpm/php.ini file using: sudo nano /etc/php/<php version>/fpm/php.ini and update the values.
  2. Save the file and restart php and apache.

Note: If it doesn't work, try editing the values in /etc/php/8.1/apache2/php.ini as well.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.