You'll need to find out where it is then edit it with a command-line editor.
Upload and view a PHP file with the following content:
And look for the line in the first section that says:
Code:
Configuration File (php.ini) Path
The bit next to it is your php.ini's location. For example, my local one says:
Code:
Configuration File (php.ini) Path C:\apache\xampp\apache\bin\php.ini
Now you'll need to fire up an editor to edit that file. Nano is probably the easiest to use, which would involve running:
(Presuming /etc/php.ini is the location phpinfo() told you.)
However, you might not have nano installed. You'll almost certainly have vim installed, but it's a little more difficult to use.
However, if you're just making a quick edit:
Run:
Scroll to where you want to edit using the arrow keys. Hit "i" to enter "insert" mode. Make your changes. Hit "Escape". Type "ZZ" to save and exit (it's case sensitive, so hold shift and hit z z).
Phew!
By the way, it'd probably be worth learning at least basic vim skills, since it's pretty much the one editor you can always rely on being installed when you SSH into a server
