How to edit phi.ini file in an SSH connection
To download a copy of the SSH:
To Find the php.ini file on the server
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

