Apache GUI – Front-end management portal for your Apache Webserver.

Hello Friends,
I recently came to know that there is way to manage our Apache (HTTPD) webserver without logging in to the server. We usually do the basic configuration and management either via WHM or by logging in to the server via SSH. ApacheGUI provides you with a separate panel to manage your Apache HTTPD server thereby allows you to manage your webserver without logging in to your WHM or SSH. Let us see how to install and use ApacheGUI.

Here I will guide you on how you can install and configure Apache GUI Web Tool on CentOS or RHEL 7 and provides a short init script for starting or stopping the process. The same instructions also works for RHEL/CentOS 6.x and Fedora 20/19/18 distributions.

1) Download and Install Apache GUI
Install JDK version greater than or equal to 1.7
# yum search openjdk
# yum install java-1.7.0-openjdk

2) Download Apache GUI
Please make sure that you have allowed the following ports in Firewall: 9999, 8443, 8080, 8998, 8009
# cd /opt
# wget http://sourceforge.net/projects/apachegui/files/1.9 Linux-Solaris-Mac/ApacheGUI-1.9.7_1.tar.gz
# tar xfz ApacheGUI-1.9.7_1.tar.gz
# cd ApacheGUI/bin
# ./run.sh

# netstat -tlpn | grep 9999
You should get an out something like below for netstat:
tcp6        0       0      : : :9999                  : : : *                        LISTEN                  2846/java

If you are getting this output, then everything is going good and you have completed installing the Apache GUI in your server.

3) Accessing and Configuration of APacheGUI
Now to access it use the URL:
Username: admin
Password: admin

Provide your Apache Web Server Package Parameters with the following configurations and, also, choose a username and a strong password to login Apache GUI next time. Please note that below details may change for different servers.
Server Root: /etc/httpd
Primary Configuration File: /etc/httpd/conf/httpd.conf
Configuration Directory: /etc/httpd
Log Directory: /var/log/httpd
Modules Directory: /etc/httpd/modules
Binary File: /usr/sbin/apachectl
Username: choose a username
Password: choose a strong password
Password: repeat the above password

4) Create systemv init script
# vi /etc/init.d/apache-gui
Type in the following script:

# System startup script for apache-gui
# Provides: apache-gui
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start the apache-gui
# Description:       Start the apache-gui
# chkconfig: 2345 20 80
# description: Runs the apache-gui
# processname: apache-gui
# Source function library
. /etc/init.d/functions

case "$1" in
    cd /opt/ApacheGUI/bin/
   cd /opt/ApacheGUI/bin/
        echo $"Usage: $0 {start|stop}"
        exit 2
exit $?


Now you can manage the Apache GUI via following commands:
# service apache-gui start
# service apache-gui stop


# systemctl start apache-gui
# systemctl stop apache-gui
# systemctl status apache-gui

If you want ApacheGUI to start automatically after System Reboot:
# chkconfig apache-gui on

To disable it server wide:
# service apache-gui stop
# chkconfig apache-gui off

I hope you find this useful. Thank you for reading. Have a Great Day!!!


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s