Editing a file using PuTTY on my Red Hat 9 server...please, need help
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Editing a file using PuTTY on my Red Hat 9 server...please, need help
Hi all, I recently made the move from managed hosting to my own dedicated root server. The root server runs off of Red Hat 9, and I am having trouble getting into the root to edit a file.
I need to edit the php.ini file, and the only was i see how to do this is using a SSH client like PuTTY, however, I have no idea how to get into the file to edit it.
Do I need to download it, change it, then replace it? Please, I need help.
Originally posted by Tinkster Hi, and welcome to LQ!
Well, let's hope that the server has at least ONE of
the more common editors ... once logged in, try
vi php.ini
or
emacs php.ini
or
pico php.ini
pico would be the safest choice to use if you're not
familiar with either of the other two ..
Cheers,
Tink
Another quesiton...I am getting into the files because the default memory limit is 8MB, and I have been getting some errors during heavy traffic...how much memory should I allocate if I have 2 busy php powered forums running on my server?
How much RAM does your server have? If those forums are all that's running you might allow as much as 1/3 of your server's RAM to be used by PHP and see how that works. You can go higher if you need to, but I'd be hesitant to at first.
As for saving the file, what editor are you using -- with pico type CTRL+O to save and CTRL+X to exit. With vi, hit escape then :wq .
It sounds like you really need an introductory book to using Linux. Please look at a guide like the Rute tutorial (found at http://www.icon.co.za/~psheer/book/index.html.gz ) or the introductory guide at http://www.tldp.org . You need to learn how to manage your server and keep it up to date and safe from attackers. Good luck!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.