E212: Can't open file for writing Press ENTER or type command to continue ?!!!!

Discussion in 'Server Operation' started by liebre, Aug 9, 2011.

  1. liebre

    liebre New Member

    E325: ATTENTION
    Found a swap file by the name "/var/tmp/config.inc.php.swp"
    owned by: root dated: Tue Aug 9 01:21:18 2011
    file name: /usr/share/phpmyadmin/config.inc.php
    modified: YES
    user name: root host name: CentOS-60-32-minimal
    process ID: 2157
    While opening file "/usr/share/phpmyadmin/config.inc.php"

    (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 /usr/share/phpmyadmin/config.in
    c.php"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/var/tmp/config.inc.php.swp"
    to avoid this message.
    "/usr/share/phpmyadmin/config.inc.php" [New DIRECTORY]
    Press ENTER or type command to continue

    and after i click enter and try to add

    [...]
    /* Authentication type */
    $cfg['Servers'][$i]['auth_type'] = 'http';
    [...]

    and save it

    i get this !!!!

    "/usr/share/phpmyadmin/config.inc.php"
    "/usr/share/phpmyadmin/config.inc.php" E212: Can't open file for writing
    Press ENTER or type command to continue

    p.s I am was trying to do this lesson :

    http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-centos-6.0-lamp-p2

    so :(
     
  2. falko

    falko Super Moderator

    Delete /var/tmp/config.inc.php.swp...
    Code:
    rm -f /var/tmp/config.inc.php.swp
    ... and try again.
     

Share This Page