Results 1 to 6 of 6
Here is the message I get:
E325: ATTENTION
Found a swap file by the name "/etc/.php.ini.swp"
owned by: root dated: Thu Dec 7 09:06:58 2006
file name: /etc/php.ini
modified: YES
...
- 12-08-2006 #1Just Joined!
- Join Date
- Dec 2006
- Posts
- 12
how do I delete php.ini.swp file? (example shown)
Here is the message I get:
E325: ATTENTION
Found a swap file by the name "/etc/.php.ini.swp"
owned by: root dated: Thu Dec 7 09:06:58 2006
file name: /etc/php.ini
modified: YES
user name: root host name: ip-208-109-127-190.ip.secureserver.net
process ID: 12014
While opening file "/etc/php.ini"
dated: Thu Nov 2 13:32:36 2006
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/php.ini"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/.php.ini.swp"
to avoid this message.
"/etc/php.ini" 1208L, 44079C
Hit ENTER or type command to continue
All I know to delete a file is using rm. But I want to edit the php.ini file but I got the above message in ssh. How do I resolve this?
- 12-08-2006 #2
I'm not sure what you are asking here. VIM is telling you that whilst editing php.ini, it exited abnormally and saved the session in php.ini.swp. You can continue from where you left off by doing the recover stuff or start editing php.ini afresh by deleting php.ini.swp.
- 12-08-2006 #3Just Joined!
- Join Date
- Dec 2006
- Posts
- 12
well I am new to linux and ssh and I don't want to mess up anything if I could potentially do it. WHat I want to do is turn on the display parameters in php.ini so I can see error messages, right now I can't. But every time I try to edit php.ini I get that above message, then after that it doesn't look like I can run any more commands. Again, Im new to this and I am used to seeing my username and ip before I write any commands. After I get this message I don't see that. What I would LIKE to do is just edit the file in notepad or something and upload it but I don't know how to get to my /etc/ directory with ftp, I can only go to home. But the main thing is I want to turn on the "display errors parameter" in php.ini
- 12-08-2006 #4Just Joined!
- Join Date
- Dec 2006
- Posts
- 12
ok I found it in ftp! duh....
- 12-08-2006 #5Just Joined!
- Join Date
- Dec 2006
- Posts
- 12
Oh well, I still have to be root to edit or delete it,
back at square one!!!
- 12-08-2006 #6
If you are using ssh to login to the machine, all you need to do is enter "su" and the root password in order to get root privileges. Once you have logged in as root, you can then do "rm /etc/.php.ini.swp".


Reply With Quote