1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Major Plesk problem

Discussion in 'Plesk for Linux - 8.x and Older' started by qiqme, Mar 11, 2006.

  1. qiqme

    qiqme Guest

    0
     
    Hey,

    I'm really stuck now :(

    Code:
    ERROR: Unable to connect to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 
    0: /usr/local/psa/admin/auto_prepend/auth.php3:81 psaerror(string "Unable to connect to database: 
    Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)")  
    
    - I can't login with SSH as root (account is gone or corrupted)

    - i have a bin/bash ssh account but no way i can change files or whatever. No rights or permission denied.

    - Plesk is down

    Have tried below but does not werk
    Code:
    - bash2-2.05b$ su root 
    Password: 
    su: /bin/bash bin:x:1:1:bin:/bin:/sbin/nologin: No such file or directory 
    
    Below some more stuff that did not work

    Code:
     
    -bash2-2.05b$ cd psa 
    -bash2: cd: psa: Permission denied 
    -bash2-2.05b$ mysql -uadmin -p`cat /etc/psa/.psa.shadow` 
    cat: /etc/psa/.psa.shadow: Permission denied 
    Enter password: 
    ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 
    -bash2-2.05b$ su admin 
    su: user admin does not exist 
     
    Can't do anything :(

    I think my passwd file is corrupted
    Code:
    root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin
    daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin
    lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin sync:x:5:0:sync:/sbin:/bin/sync
    shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
    halt:x:7:0:halt:/sbin:/sbin/halt
    mail:x:8:12:mail:/var/spool/mail:/sbin/nologin news:x:9:13:news:/etc/news: 
    etc etc
    And it should be
    Code:
    root:x:0:0:root:/root:/bin/bash
    bin:x:1:1:bin:/bin:/sbin/nologin
    daemon:x:2:2:daemon:/sbin:/sbin/nologin
    adm:x:3:4:adm:/var/adm:/sbin/nologin
    lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
    sync:x:5:0:sync:/sbin:/bin/sync
    shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
    halt:x:7:0:halt:/sbin:/sbin/halt
    mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
    news:x:9:13:news:/etc/news:
    uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
    operator:x:11:0:operator:/root:/sbin/nologin
    games:x:12:100:games:/usr/games:/sbin/nologin
    gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
    etc etc
    
    Please help me
     
Loading...