LinuxQuestions.org
Review your favorite Linux distribution.
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 08-23-2005, 11:08 PM   #1
kbf
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
trouble with swap files


I've spent 3 days researching and reading, and I still can't solve this.

I have a vds w/ RH9.

I installed OS commerce, and I need to turn register_globals on in php.ini.

So, using putty I ssh, and, I open php.ini in vi and accidentally close vi before saving changes. Now, when I locate php.ini, it's indicating that there's also a .php.ini.swp. So, I vi php.ini, and I get
Code:
"php.ini" a new file

I'm trying and reading trying to figure out how to straighten this mess up. It would seem I need to rm this .swp, but that doesn't work... and, i need my original php.ini file to exist, but it seems to be erased.
I would be extremely grateful for any help.

Thanks, kbf.
 
Old 08-23-2005, 11:14 PM   #2
flower.Hercules
Member
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 228

Rep: Reputation: 31
When you are notified that there is a swap file for php.ini, press space until you reach the bottom of the page and press "E" for (E)dit Anyways. If you simply need the default PHP.ini, do a `find / -name php.ini -type f` in the console, I believe the default is stored in multiple places.

HTH

Last edited by flower.Hercules; 08-23-2005 at 11:17 PM.
 
  


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
Swap Files and LVMs moxieman99 Fedora - Installation 4 11-15-2005 05:07 PM
swap-files after emergency exit? ungua SUSE / openSUSE 8 08-23-2005 01:58 PM
Slackware Memory/Swap trouble koehnb Linux - General 5 03-16-2005 06:50 AM
Stopping Creation of Swap Files SaTaN Linux - General 4 09-02-2003 09:59 PM
Swap trouble.. Cyth Linux - General 2 11-17-2001 04:45 PM

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

All times are GMT -5. The time now is 03:05 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