Find the answer to your Linux question:
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 ...
  1. #1
    Just 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?

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    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.

  3. #3
    Just 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

  4. #4
    Just Joined!
    Join Date
    Dec 2006
    Posts
    12
    ok I found it in ftp! duh....

  5. #5
    Just Joined!
    Join Date
    Dec 2006
    Posts
    12
    Oh well, I still have to be root to edit or delete it, back at square one!!!

  6. #6
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    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".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...