Editing PHP.INI Via FTP As Root. Bad Idea?

Hey,

My web host wants me to edit php.ini so I can disable safe mode. No problem. The question is if I should only do it via SSH or, since I have a root ftp user/pass and can view the php.ini when I ftp, can I do it that way or is it dangerous to edit it via ftp (I use Coda, a web development tool for mac)

Just curious to see how the results would differ between ftp edit via root and SSH

Thanks.

It’s very much more dangerous. FTP is a plain text protocol. You will be sending your root password over multiple networks in plain text that anyone watching can read.

You should be logging in to SSH, to a non-administrator account, using an authentication key. Then you can temporarily raise yourself to root access to make the change.

Ok. Would you advise pico as the tool to use? My understanding is that I should:

pico /path/to/php.ini

open it up. Scroll to the line. Make the change. Quit and then
service httpd restart

Sound right?

Thanks

Sure. pico is just a text editor like notepad in windows.