How to edit phi.ini file in an SSH connection

This post was written by shantopagla on March 20, 2009
Posted Under: .php,I.T.,techno

To download a copy of the SSH:

To Find the php.ini file on the server

Mastering the VI editor.

after logging on, elevate to ROOT level access by typing this at the prompt:

  • su -

It will ask for your Admin password for this.

The most common editor used is the ‘vi’ editor in this text-based system.
To navigate to the folder and edit php.ini fileusing ‘vi,’ use these commands:

  • cd /etc (assuming it’s the php.ini is in this folder – see above)
  • vi php.ini (opens the VI editor for editing the file)

Simple VI commands

  • a to append
  • : to user command line
  • wq to write and exit on command line
  • CTRL C to exit editing

Add a Comment

You must be logged in to post a comment.