Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to access Webmin through browser

I followed DigitalOcean's tutorials on how to set up your server with SSH, creating a new user, firewalls etc. The first tutorial in the series is linked under:

https://www.digitalocean.com/community/tutorials/how-to-connect-to-your-droplet-with-ssh

I've also installed Webmin on my server, but I still can't get a connection to the server by using the web-browser. It just loads for a long time and then says it can't establish a connection. The URL's I've been using are:

"Just-my-IP-adress" and "https://Just-my-IP-adress:10000"

The last one to open the Webmin administrator.

I'm not sure what else needs to be done to get a response from the server. This is all new to me, so you shouldn't assume that anything besides the tutorial I followed above has been done.

Any rookie-mistake-suggestions would be appreciated.

UPDATE1: After following this tutorial to install LAMP, I now get a response when just using my IP-adress, webmin is still not responding, but I assume it was not properly installed since I did not have LAMP installed when I did the Webmin-installation.

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu

UPDATE1: After installing Webmin again, I still can't access it through the browser. I tried the command:

nc -zvw 3 <my-ip> 10000

in the terminal and got this as a response:¨

Connection to <my-ip> 10000 port [tcp/webmin] succeeded!

So I guess the port is open and I should be able to connect to it, but it won't let me use the GUI in the browser.

like image 575
joseph Avatar asked Apr 20 '15 14:04

joseph


People also ask

How do I access Webmin browser?

Access Webmin. To access Webmin, open any web browser, and type https:// followed by localhost and the port 10000. To access Webmin from another system on the network, replace localhost with hostname, or simply the IP address of the system which you want to access the program.


4 Answers

Please try to restart webmin with the following command and check if you are getting any error.

/etc/init.d/webmin restart

If it's working fine, Then defiantly there is an issues with the firewall OR some ports are blocked at your DC end. Please try to stop firewall and check again.

like image 131
24x7servermanagement Avatar answered Oct 22 '22 18:10

24x7servermanagement


It will solve your problem

  1. nano /etc/webmin/miniserv.conf
  2. now change ssl=0 into ssl=1.
  3. Press Ctrl+o and Enter to save it.
  4. Press Ctrl+x to exit the nano.
  5. Now restart webmin service webmin restart

Cheers.

like image 18
Siraj Alam Avatar answered Oct 22 '22 20:10

Siraj Alam


Digital ocean sets up your basic firewall with the '1-click' LAMP stack. All ports but ssh and http are blocked. I think the tutorial has you setting that up as well.

Run sudo ufw status to see what ports are currently allowed

and then sudo ufw allow 10000/tcp to allow access to the one webmin needs.

like image 14
Deftwun Avatar answered Oct 22 '22 19:10

Deftwun


try this ... it's working for me

iptables -I INPUT 1 -p tcp --dport 10000 -j ACCEPT
service iptables save
/etc/init.d/iptables restart

open both link in Browser

https://your-IP:10000 and http://your-IP:10000

like image 8
Hitesh Aghara Avatar answered Oct 22 '22 19:10

Hitesh Aghara