How to edit php.ini file via ssh in google cloud

Discuss the latest Cloud topics and keep track of recent developments in our Cloud Hosting forums. Whether you’re a pro soaring in the cloud or a novice stuck in the mud you can find all you need to know right here.
Post Reply
hannibal
Newbie
Posts: 2
Joined: Fri Dec 22, 2017 10:12 pm

Fri Dec 22, 2017 10:15 pm

Hello,
 
Currently I'm learning to use GCE (Google Cloud Engine), Can install VestaCP but there are some module configuration that has not been installed like Imagick and Ioncube.  I stuck in step: 

# vi /etc/php.ini

because it has to add code zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.4. so in php.ini in ssh command. I tried to sign in using WinSCP but the php.ini file is Read Only. 

Please advise which command can I use for Insert / Paste, Save and Exitif using vi /etc/php.ini at command prompt gcloud ssh 

Thank you 

Regards,


javier
Newbie
Posts: 4
Joined: Mon Oct 02, 2017 1:09 pm

Sat Dec 23, 2017 12:14 am

for an easier way can use nano / pico
if not installed please install first use this command

Code: Select all

yum install nano -y
if nano is successfully installed live run this

Code: Select all

nano /etc/php.ini
save and exit using command

Code: Select all

ctrl + x
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests