php.ini
Moderator: General Moderators
php.ini
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..
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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.
So "cd" to the correct directory and then type:
Code: Select all
nano -w php.iniThat 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.
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.
go to it and open file
Code: Select all
vi /etc/php.ini