LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > web admin console error?

Reply
 
Thread Tools Display Modes
  #11  
Old 08-14-2012, 05:07 PM
Robbert Robbert is offline
Member
 
Join Date: Aug 2012
Posts: 11
Dear Friend mr.webizen i can 1 logged later dont login what is problem little speed_?

/usr/local/lsws/admin/logs/error.log it is 0 kb :S

what happened_?
Reply With Quote
  #12  
Old 08-14-2012, 05:15 PM
Robbert Robbert is offline
Member
 
Join Date: Aug 2012
Posts: 11
/usr/local/lsws/admin/conf#

admin_config.xml




Code:
<?xml version="1.0" encoding="UTF-8"?>
<adminConfig>
    <listenerList>
        <listener>
            <name>adminListener</name>
            <address>*:3535</address>
            <secure>0</secure>
        </listener>
    </listenerList>
        <enableCoreDump>1</enableCoreDump>
    <sessionTimeout>3600</sessionTimeout>
    <security>
        <accessControl>
            <allow>ALL</allow>
            <deny></deny>
        </accessControl>
    </security>
    <logging>
         <log>
             <useServer>0</useServer>
             <fileName>$VH_ROOT/logs/error.log</fileName>
             <rollingSize>10M</rollingSize>
             <logLevel>INFO</logLevel>
         </log>
         <accessLog>
             <useServer>0</useServer>
             <fileName>$VH_ROOT/logs/access.log</fileName>
             <keepDays>90</keepDays>
             <rollingSize>10M</rollingSize>
             <logReferer>1</logReferer>
             <logUserAgent>1</logUserAgent>
         </accessLog>
    </logging>

</adminConfig>

Code:
access.log

login ip - - [15/Aug/2012:04:07:12 +0400] "POST /login.php HTTP/1.1" 200 1185 "http://xxxx:3535/login.php" "Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1"
Reply With Quote
  #13  
Old 08-14-2012, 05:18 PM
Robbert Robbert is offline
Member
 
Join Date: Aug 2012
Posts: 11
htpasswd

adminuser:$1$4O2QsIsk$XVx.QWA3rh57eQtbUI4mb/

how to convert this encrypyted_?
Reply With Quote
  #14  
Old 08-14-2012, 05:55 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Quote:
how to convert this encrypyted_?
run
/usr/local/lsws/admin/misc/admpass.sh to overwrite it
Reply With Quote
  #15  
Old 08-15-2012, 01:43 AM
Robbert Robbert is offline
Member
 
Join Date: Aug 2012
Posts: 11
Quote:
Originally Posted by NiteWave View Post
run
/usr/local/lsws/admin/misc/admpass.sh to overwrite it
Code:
#!/bin/sh

CUR_DIR=`dirname "$0"`
cd $CUR_DIR
CUR_DIR=`pwd`


SUCC=0
cat <<EOF

Please specify the user name of administrator.
This is the user name required to login the administration Web interface.

EOF

printf "%s" "User name [admin]: "
read ADMIN_USER
if [ "x$ADMIN_USER" = "x" ]; then
    ADMIN_USER=admin
fi

cat <<EOF

Please specify the administrator's password.
This is the password required to login the administration Web interface.

EOF

while [ $SUCC -eq "0" ];  do
    printf "%s" "Password: "
    stty -echo
    read PASS_ONE
    stty echo
    echo ""
    if [ `expr "$PASS_ONE" : '.*'` -ge 6 ]; then
        printf "%s" "Retype password: "
        stty -echo
        read PASS_TWO
        stty echo
        echo ""
        if [ "x$PASS_ONE" = "x$PASS_TWO" ]; then
            SUCC=1
        else
            echo ""
            echo "[ERROR] Sorry, passwords does not match. Try again!"
            echo ""
        fi
    else
        echo ""
        echo "[ERROR] Sorry, password must be at least 6 charactors!"
        echo ""
    fi
done


# generate password file

ENCRYPT_PASS=`$CUR_DIR/../fcgi-bin/admin_php -q $CUR_DIR/htpasswd.php $PASS_ONE`
echo "$ADMIN_USER:$ENCRYPT_PASS" > $CUR_DIR/../conf/htpasswd 
if [ $? -eq 0 ]; then
    echo "Administrator's username/password is updated successfully!"
fi
Reply With Quote
  #16  
Old 08-15-2012, 11:05 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
do you try to decrypt password file? you are unable to decrypt password for security reason. password can only be reset (see command in NiteWave's post).

if you mean you can not login with the same password after a while, you can check the password file and see if it is changed since last time you login.
Reply With Quote
  #17  
Old 08-16-2012, 07:26 AM
Robbert Robbert is offline
Member
 
Join Date: Aug 2012
Posts: 11
Dear webizen i dont understand this solution :S
Reply With Quote
  #18  
Old 08-16-2012, 12:22 PM
Robbert Robbert is offline
Member
 
Join Date: Aug 2012
Posts: 11
Dear friend i am removed debian

but i will next time install

now i want to understand this software :S
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:13 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.