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

Welcome to our community

Be apart of something great, join today!

hannibal

Newbie
Messages
2
Reaction score
0
Points
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,
 
  • Advertisement
  • javier

    Newbie
    Messages
    16
    Reaction score
    1
    Points
    3
    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