LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-01-2004, 06:16 PM   #1
Quincy Wisdom
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Rep: Reputation: 0
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.

Thanks.
 
Old 07-01-2004, 06:22 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 07-01-2004, 06:31 PM   #3
Quincy Wisdom
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
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?
 
Old 07-01-2004, 06:40 PM   #4
Quincy Wisdom
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Original Poster
Rep: Reputation: 0
sorry for the dumb questions, but I am brand new with Linux and root servers...

I managed to edit the file, but how do I save it?
 
Old 07-01-2004, 07:30 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat 9 server can't write PHP script, problem in httpd.conf file? x_menno_x Linux - Newbie 27 06-29-2004 04:44 PM
Red Hat 9 Install on File Server ScooterB Linux - Newbie 5 12-22-2003 09:22 AM
File Corruption in Red Hat 7.3 File Server dmurph2k2 Red Hat 3 10-09-2003 02:30 PM
File Corruption on Red Hat 7.3 File Server dmurph2k2 Linux - General 2 10-09-2003 12:38 PM
Red Hat Router/Webserver/Mailserver/File Server SixShooterz Linux - Networking 3 07-11-2003 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration