How to edit php.ini by using SSH (putty)

Hello everyone,

I did search in google but still I don’t know howto do it, here are my step

imagehosting.jootix.com/images/1.png
I press Enter
imagehosting.jootix.com/images/2.png
Enter again!
imagehosting.jootix.com/images/3.png
In this page I don’t know what to do, help please!

I want to turnoff ‘open_basedir’

Did you connect to your site?

Try whereis php.ini if you don’t know where that file is. It is usually in the /etc folder.

Use ls to list the directory contents of your folders to see if php.ini is in there.
Open it up with vi and go to the line open_basedir and set to Off or false (forgot which noe it is)
Hit escape and type :wq

then restart Apache with httpd -k restart or however you do it. If this is a shared hosting environment there should be a way for you to edit those options.

Another tip after escape for :wq:
press shift and hit z twice to save the entry.

I know where is my php.ini please take a look at images

Find the line where “open_basedir” is listed and change it. Eg. press /, then type open_basedir and press enter. Press i to go into edit mode. Delete the value after open_basedir and put in the value On. Press escape. Press : and type wq and press enter. Now restart the web server, probably by typing apache2ctl restart and pressing enter.

hahaha:lol:

Know i know why i couldn’t edit i was trying scrol down with my mouse now i know i have to press down by using keyboard. lol

Thanks Darren884, mmarif4u and kyberfabrikken