Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 49917  / 1 Year ago, thu, march 16, 2023, 6:52:37

I have installed Webmin with the view to try an understand what is all running.



Yesterday I had it setup with login and password, but today when I try to get access to the server with:
https://ubuntu:10000/ in order to login, I get unable to connect, the page does not load. Seems like there is no connection.




  • I tried http://localhost:10000 and https://localhost:10000 They both returned the same unable to connect response.



I am not sure of what it means to turn https on. ... the https and http is not showing.



Am I going about this the wrong way?


More From » webmin

 Answers
0

If you did not setup webmin with https you need to to connect using http://localhost:10000 instead of https://localhost:10000.



If webmin is not starting by default on your computer you need to create a script in your /etc/init.d with this content, call the script webmin



#!/bin/sh
# chkconfig: 235 99 10
# description: Start or stop the Webmin server
#
### BEGIN INIT INFO
# Provides: webmin
# Required-Start: $network $syslog
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start or stop the Webmin server
### END INIT INFO

start=/etc/webmin/start
stop=/etc/webmin/stop
lockfile=/var/lock/subsys/webmin
confFile=/etc/webmin/miniserv.conf
pidFile=/var/webmin/miniserv.pid
name='Webmin'

case "$1" in
'start')
$start >/dev/null 2>&1 </dev/null
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
touch $lockfile >/dev/null 2>&1
fi
;;
'stop')
$stop
RETVAL=$?
if [ "$RETVAL" = "0" ]; then
rm -f $lockfile
fi
pidfile=`grep "^pidfile=" $confFile | sed -e 's/pidfile=//g'`
if [ "$pidfile" = "" ]; then
pidfile=$pidFile
fi
rm -f $pidfile
;;
'status')
pidfile=`grep "^pidfile=" $confFile | sed -e 's/pidfile=//g'`
if [ "$pidfile" = "" ]; then
pidfile=$pidFile
fi
if [ -s $pidfile ]; then
pid=`cat $pidfile`
kill -0 $pid >/dev/null 2>&1
if [ "$?" = "0" ]; then
echo "$name (pid $pid) is running"
RETVAL=0
else
echo "$name is stopped"
RETVAL=1
fi
else
echo "$name is stopped"
RETVAL=1
fi
;;
'restart')
$stop ; $start
RETVAL=$?
;;
*)
echo "Usage: $0 { start | stop | restart }"
RETVAL=1
;;
esac
exit $RETVAL


make this executable with sudo chmod 755 /etc/init.d/webmin and add it to the startup procedure with update-rc.d webmin defaults. After this webmin will start with your computer.



To avoid all these small things you can also download webmin as a debian package that you can install in your system.



Fist you need to remove the current webmin tar install



/etc/webmin/uninstall.sh


Then install all webmin dependencies



sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python


Download the latest deb file from here or use this command to download the current latest version (up to this date)



wget http://dfn.dl.sourceforge.net/project/webadmin/webmin/1.570/webmin_1.570_all.deb


After downloading the file you can install it with



sudo dpkg -i webmin_1.570_all.deb


webmin will install, configure all necessary scripts and be ready for you in https://localhost:10000 all the time so you can login with your username / password.


[#42114] Friday, March 17, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
izeeas

Total Points: 412
Total Questions: 105
Total Answers: 118

Location: Trinidad and Tobago
Member since Fri, May 8, 2020
4 Years ago
izeeas questions
;