Web Hosting Forum - Net Hosting Talk

We are a community of individuals and businesses passionate about web hosting. Let's build, learn, and grow together.

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

hannibal

Newbie
Registered
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
  • 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

    Back
    Top