$ sudo systemctl restart apache2 Access Webmin Then activate your newly created Apache virtual host through this command: $ sudo a2ensite your_domainįinally, this command will activate the Apache proxy_hhtp module along with your virtual host: Run the following command in order to Apache’s proxy_http module: $ sudo a2enmod proxy_http Step 5: Activate the Apache proxy_http module and your Apache Virtual Host This will apply all the configurations that you have made in the previous steps: $ sudo systemctl restart webmin Use the following command in order to restart Webmin. Step 4: Restart Webmin to apply configurations Move to the end of the file and add the following line to allow your domain name: referers=your_domainName Open the file through this command: $ sudo nano /etc/webmin/config The next thing to do it to add your domain name to the list of allowed domains in the Webmin configuration. Step 3: Add your domain name to the list of allowed domains Spot the line ssl=1 and change it to ssl=0, as follows:Įxit the file through Ctrl+X then save changes by entering Y. Run the following command in order to access the nf file: $ sudo nano /etc/webmin/nf The next step is to tell Webmin to stop using TLS/SSL as we will later configure Apache for this purpose. Note: In case UFW is enabled on your system, you can allow incoming traffic from any source to TCP port 10000 using the following command: sudo ufw allow from any to any port 10000 proto tcp This file will tell the server to pass all requests to port 10000. Let us create an Apache virtual host file as follows:Ĭreate the file through the following command: $ sudo nano /etc/apache2/sites-available/your_nfĮxit and save the file through CTrl+X and then enter Y for confirmation. Webmin uses port 10000 so we have to ensure that the port is open on the firewall. If you want to access Webmin using an FQDN, for example, webmin.your_domainName, it is best to configure an Apache virtual host in order to proxy requests on Webmin server. Step 1: Create a new Apache virtual host file This step is optional and assumes that you have an Apache web server installed, if you are fine with Webmin running on Port 10000 on localhost only, then skip this chapter and continue with Accessing Webmin chapter. In this step, we will make Webmin accessible remotely on port 80 by creating a proxy Vhost in Apache. This will give you information about how to access the Webmin console through your browser. When the installation is complete, look up for these lines at the end of the output. Once the repository has been added and recognized, let us update the list of packages on our system through the following command: $ sudo apt updateįinally, install the Webmin application through the following command: $ sudo apt install webminĮnter Y when prompted to continue installation. Then use the following command in order to download the Webmin repository to the list of sources on your system: $ sudo add-apt-repository "deb sarge contrib" ![]() Then add the key through the following command: $ sudo apt-key add jcameron-key.ascĪn alternative to the manual method described above is to add the key and repository through the following method:Įnter the following command in order to download and add the Webmin repository key: $ wget -qO- | sudo apt-key add Run the following command to do so: $ wget This way the system will trust this repository. The next step is to get the Webmin PGP key for the newly added repository. Save and exit the file by pressing Ctrl+X and then Y for confirmation. Move to the end of the file and paste the following line in order to add the Webmin repository to the list: deb sarge contrib ![]() This will open the file in the Nano editor. In order to open the sources.list file, run the following command as root in your Terminal: $ sudo nano /etc/apt/sources.list Open the /etc/apt/sources.list file to manually add the repository link to the list. There are two ways to do so: Method 1: Add Webmin Ubuntu repository The first thing to do is to add the Webmin repository to your sources list. In order to open the Terminal, you can either use the Ctrl+Alt+T shortcut or open it through Ubuntu Dash. Since the installation of Webmin is done through the Linux Command Line, we will use the Terminal application for this purpose. The commands and procedures mentioned in this article have been run on an Ubuntu 18.04 LTS system. We will also explain how to configure Webmin so that you can use your domain name to access Webmin through an FQDN. In this article, we will describe a step-by-step installation of Webmin on your Ubuntu system. You can use any web browser to setup user accounts, Apache, DNS, file sharing, and much more. The Webmin console is your answer to on-the-fly management of Linux as an administrator.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |