14 Nov 2017

How to install SSL certificate on webmin

Webmin is one of the most commonly using Web Hosting control panels. This is an open source control panel which works on port 10000. Here Serversupportz going to explain how/steps to install SSL certificate on a Webmin server.

To add SSL certificate on a domain in your server which has Webmin installed, you must have a valid SSL certificate. Upload the SSL certificate to your server, under the domain name.

Follow the below pasted steps for installing SSL certificate on Webmin:

  1. Upload your SSL certificate file to your server – we recommend that this isn’t in your web root but under the domain name so you know where it is.
  2. Log into your Webmin control panel.
  3. Select the virtual host that you want to secure.
  4. Click on SSL options.
  5. Click “Yes” on Enable SSL.
  6. Select Certificate/Private key and browse to the location of the SSL certificate.
  7. Select Private key file and browse to the location of the ssl private key file.
  8. Save changes and return to the server index.
  9. Restart necessary services.

You may need to restart Apache. From the Apache Webserver page click on “Stop Apache” top right and then “Start Apache” when displayed.

 That’s it!
14 Nov 2017

How to change the Apache port via command line in cpanel?

In a cPanel server the port value for the web server Apache is defined in the configuration file ‘/var/cpanel/cpanel.config‘. You can change the default value from this configuration file.

Please do follow the steps below to change it from command line interface:

Step 1: Open the configuration file by using your favorite text editor and find the directive ‘apache_port’

# vim /var/cpanel/cpanel.config

apache_port:0.0.0.0:80

Step 2 : Change the port number

Here, 80 is the default port value. You can change it to your own custom value.

Step 3 : Run this script for it to take effect

# /usr/local/cpanel/whostmgr/bin/whostmgr2 –updatetweaksettings

Check the httpd conf file ‘/usr/local/apache/conf/httpd.conf‘ for finding any occurrences of default port (80) and run the following script to make httpd conf is up to date.

# /scripts/rebuildhttpdconf

That’s it!!

©2021 Tranzmedia Netvision Limited. All Rights Reserved.
Top