Tomcat Module for Webmin

Yesterday, we released our Tomcat Module for Webmin

The module works like any other Webmin module and allows you to install and manage Apache Tomcat from within Webmin.

The module provides a GUI for you to Stop, Start, and Restart Tomcat, Deploy and Un-Deploy WAR files, as well as edit the main configuration files.

The easiest way to install it is to simply go to Webmin->Webmin Configuration->Webmin Modules

In the ‘From ftp or http URL’, enter:

Refresh the main page and you should see “Apache Tomcat” under “Servers” in Webmin menu.

Click the “Install Now” button to install Tomcat and Java.

Below are Some Screen Shots

Tomcat Module:

Tomcat Module WAR Manager:

Tomcat Module Configuration Editor:

If you prefer to use GIT, you can follow below:

Distro Notes

Ubuntu

Tested on Ubuntu 12, 14, 15, and 16

Readhat/Fedora/CentOS

Tested on CentOS 6×64 and 7×64

haveged helps Tomcat start much faster.

Debian

Tested on Debian 7 and 8

FreeBSD

tomcat_env doesn’t work, because tomcat service(/usr/local/etc/rc.d/tomcat8) is not sourcing the setenv.sh file. Work around is to set tomcat7_java_opts= in service file.

ArchLinux

Install tomcat packages manually and then install module, because Webmin doesn’t support pacman. Go to Existing Tomcat Installations below.

OpenSuSe

Install tomcat packages manually and then install module. Go to Existing Tomcat Installations below.

Installing on Existing Tomcat Installations

You can also use the module to manage an existing installation as well.

1. Install via Webmin->Webmin Configuration->Webmin Modules
2. Under Server > Apache Tomcat click on the configuration icon in the top left corner.
3. Update the configuration paths to your existing Tomcat paths.
4. You should now be able to use all functionality.

*Issues
Please post any issue here or at https://github.com/cited/Tomcat-Webmin-Module

Happy Tomcat’ing 🙂

Install PhantomJS on cPanel

This post will cover installing PhantomJS on cPanel with root access.

The documentation at http://phantomjs.org/build.html is all that is needed.

I am only blogging this to let others know it did not break my cPanel server.

1. Download and install the dependencies

I already had openssl-devel, make, gcc, abd gcc-c++

 

2. Download and unzip latest source code from http://phantomjs.org/download.html

 

3. Enter the phantomjs-2.0.0 directory and run ‘./build’;

 

You will see a notice saying it will 30 minutes to several hours. It only took about 20 minutes on my server.

When build completes and you are still in the phantomjs-2.0.0 directory, you can run ‘bin/phantomjs’ to test and you should get a prompt.

4. Create a symlink to put phantomjs in everyone’s path:

 

As stated in the documentation at

“This produces a build bin/phantomjs. This is an executable; it can be moved to a different directory (e.g. /usr/local/bin) or another machine.”

So you could just move it to /usr/bin as well.