How To Edit php.ini File IN Google Cloud

Share Now

1. Go to your project in google cloud platform
2. Then go to Computer Engine-> VM instances -> project name
https://i.postimg.cc/8zgbR2zL/google-cloud.png
3. Then Click On SSH
https://i.postimg.cc/q7kXY2nR/google-cloud-2.png
4. It will open in this window
https://i.postimg.cc/HnprWtYc/gc-3.png
5. Now write these code:
Find php.ini file

sudo find / -name "php.ini"

6. It will show these datas

/etc/php/7.0/cgi/php.ini
/etc/php/7.0/apache2/php.ini
/etc/php/7.0/fpm/php.ini
/etc/php/7.0/cli/php.ini

7. Copy this one:

/etc/php/7.0/apache2/php.ini

8. Now write

sudo -i

9. and then

nano /etc/php/7.0/apache2/php.ini

10. It will open the php.ini file
11. Edit these datas:

upload_max_filesize = 256M
post_max_size = 256M
memory_limit = 256M

12. For search in SSH Use: Ctrl+W
For save in SSH Use: Ctrl+O
For exit in SSH Use: Ctrl+X

Video: Watch Now

Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert