Welcome to Web Hosting Forum - Net Hosting Talk

Register now and be part of our community! When you register with the Net Hosting Talk you can join in with topics, start new topics, and generally be a part of the first level of our community. It's also quick and totally free, so what are you waiting for?

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

hannibal

Newbie
Messages
2
Reaction score
0
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
Messages
12
Reaction score
0
for an easier way can use nano / pico
if not installed please install first use this command

Code:
yum install nano -y

if nano is successfully installed live run this
Code:
nano /etc/php.ini

save and exit using command
Code:
ctrl + x
 

Advertisement

Top