Page 1 of 1
php.ini
Posted: Tue Sep 27, 2005 6:04 am
by pleigh
don't know guys if this is the right place for my query...anyway, moderator can transfer this to the right forum...my problem is this, i am ver new to linux and wanted to modify php.ini....i am using xandros desktop....i tried to open the file in the console....upon going to the right directory where the .ini file is located, i am stuck there, i don't know how to open the ini file...i tried this... /opt/directory/etc php.ini ....nothing happened saying command not found...i know there is a command to open that file, but i don't know realy that syntax....maybe this forum can help me, afterall, you guys are really being helpful to my queries...

....thanks in advance..
Posted: Tue Sep 27, 2005 6:59 am
by sheila
You need to open it in a text editor. I have no idea what text editors you have available for that version of Linux so I won't suggest one. However, you should be able to open a gui text editor and browse to the file and open it.
Posted: Tue Sep 27, 2005 7:52 am
by Chris Corbyn
As a safe guess in terms of editors I'll guess you'll have at least one of "nano" or "pico".
So "cd" to the correct directory and then type:
If that doesn't work try "pico -w php.ini". A command line based text editor will open, pretty basic like notepad in windows. Edit the file. Now to save it press "CRTL + O" that's O not zero. Then hit enter to "write out" your changes to the file. To close the file modified or unmodified press "CTRL + X".
That should work in most linux distros. You'll be pretty unlucky if they dont have nano/pico included by default.... you'd then have to learn vi/ed/emacs or whatever other tricker tools there are
Good luck.
Posted: Thu Sep 29, 2005 1:49 am
by dude81
Dont know about your desktop, but there will be a command line option in every desktop,
go to it and open file
generally by default all configuration files reside here.
Posted: Fri Sep 30, 2005 1:39 pm
by Skara
vi can be difficult for beginners. Use nano (pico) instead, if you're not comfortable.