How to edit php.ini from ssh
18 Jun
Type:
1. “cd /etc”
2. “ls”
Check that there is the php.ini listed if not you will have to ask your hosting provider where it is.
3. “vi php.ini”
Find the bit in php.ini you would like to edit.
4. “i” – This enables you to edit the php.ini file
5. After changing the file, please Esc.
6: “:wq” – (w = saves the file, q = quit)
7. reboot your server and your done.
Related posts:

this is helpful, thx
Thank you so much!! exactly what I needed!
This is very helpful. Thanks a lot
Hi, just a small query. Will this change erase the contents on the server? Do I have to reinstall the website again after finishing the steps and restarting the server or will the steps stated by you will have no effect on the contents, database etc, but will only modify the php.ini file as desired?
Many thanks in advance
SOOOOOOO helpful for me newbe.
Gracias.
the ;wq didn’t happen to me… I try press the keys but the windows beep sound keeps coming up -.-
I am still struggling this to maybe make it work xD
very good tutorial thought, if possible please tell me what’s wrong with my SSH thingy
Thanks alot
@ClayC
It’s :wq not ;wq.
That might help. Otherwise sorry no idea why it might be doing that.
Thanks , i have susseccfull config my VPS server by your stuff :
Largest buy|sell machine tool, manufacturing technology
Thanks for this tutorial!
This was a great help and like you i’m not too familiar with SSH commands, i managed to update my PHP ini file and now my upload limit has been increased.
Many thanks..!
Hi, being a windows techie i hadn’t a clue how to edit the PHP.ini. It took me ages to your so user friendly way to find and edit the file. Although I want to become more familiar with Linux I find most of the info from competant users over techie. They give an answer but without the ‘how to do’. So a big thanks, keep up the good work.
P.S. I’m book marking your site for future answers.
Many thanks! this really helped me with an installation i had (i know nothing about PHP, Linux etc…)
excellent. great tutorial and worked like a charm!
thank you about it
nice post.. thanks u a lot for this post.