How to Install Apache GUI on Ubuntu 18.04 LTS

Apache GUI is a free and open source Java-based tool that can be used to manage and configure Apache web server through the web browser. It is specially designed for those who are looking for a comfortable graphical interface (GUI) to configure Apache servers.

Apache GUI Features

  • Edit, Search and Validate your Configurations.
  • Start, Stop and Restart Apache service.
  • View, install and remove apache modules.
  • Edit your web documents through web browser using inline editor.
  • Test the server configuration for errors.

Requirements

  • A server running Ubuntu 18.04.
  • A non-root user with sudo privileges.

Install Jave

ApacheGUI is written in Java, so you will need to install it first. You can install Java with the following command:

sudo apt-get install default-jre -y

Once the Java is installed. You can verify the Java version with the following command:

java -version

Output:

openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2, mixed mode)

Install LAMP Server

Next, install Apache web server and MariaDB with the following command:

sudo apt-get install apache2 mariadb-server -y

Install PHP with the following command:

sudo apt-get install php7.2 php7.2-mysql libapache2-mod-php7.2 -y

Next, start Apache and MariaDB service and enable them to start on boot time with the following command:

sudo systemctl start apache2
sudo systemctl enable apache2
sudo systemctl start mysql
sudo systemctl enable mariadb

Install ApacheGUI

First, you will need to download the latest version of ApacheGUI to your system. You can download it with the following command:

sudo mkdir /usr/local/apachegui
sudo cd /usr/local/apachegui
sudo wget https://excellmedia.dl.sourceforge.net/project/apachegui/1.12-Linux-Solaris-Mac/ApacheGUI-1.12.0.tar.gz

Next, extract the downloaded file using the following command:

sudo tar -xvzf ApacheGUI-1.12.0.tar.gz

Next, change the directory to the ApacheGUI and start installation script with the following command:

sudo cd ApacheGUI/bin
sudo ./run.sh

Your ApacheGUI is now starting and listening on port 9999.

Next, open your web browser and type the URL http://your-server-ip:9999/ApacheGUI. You will be redirected to the following page:

Apache GUI

Here, select the Apache web server installation method, then click on the OK button. You should see the following page:

Apache setup parameters

Here, provide your admin user credentials and click on the Submit button. You should see the ApacheGUI dashboard in the following page:

Set admin user for Apache GUI

To stop the Apache GUI server, run:

sudo ./stop.sh

Links

Share this page:

8 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Etcetera

Thanks, I didn't know about ApacheGUI's existence yet! Now, this being HowtoForge and me using ISPConfig which already manages Apache httpd, I wonder whether it still may make sense to use ApacheGUI, and what maybe could still be configured through ApacheGUI and what couldn't?

By: till

It probably does not make much sense to use it together with ISPConfig as ISPConfig manages the vhosts already, so you could use Apache GUI only for the non-vhost apache config files, but how often do you have to change something in these other files that it makes sense to install Apache GUI for it? Personally, I normally don't have to edit the files after the initial installation.

By: el dube

no se si me puedan ayudar o si este es el lugar pero cualquier ayuda vendrá de maravillas.

quiero instalar ubuntu server 18.04 con ispconfig para una intranet si salida a internet pero no me deja siempre al finalizar me da error ah y lo tengo montado con vmware y no se ya que mas hacer soy nuevo en este mundo de linux

By: till

Please post in the ISPConfig support forum to get help with your problem: https://www.howtoforge.com/community/forums/installation-configuration.27/

By: destroyed mysql

Tried to abort, but the above procedure ended up destroyed the default connection to the existing mysql database.  A bit of warning would have helped.  What to do now?

By: Jones

Thanks for making this available.

Suggestion for update:

The following command will display the following error:

sudo cd /usr/local/apachegui

Name or service not knownsudo: cd: command not found

Just execute the following command, as there is no need to used "sudo"

cd /usr/local/apachegui

By: z323791

For some reason it is not working for me I have followed evvery step and command. when I start practicing this tutorial I already had apachi install on my system I wanted to have GUI front to manage my server 1. So could it be because I already had Server install on my system 2. Apachi www folder is in user "pi" folder tree and when I was following steps: sudo cd /usr/local/apachegui it didn't work as just by typing above commands in terminal window I had to navigate to /usr/local to create apachegui and then download ApacheGUI in this folder 3. Also following command didn't work for me either sudo cd ApacheGUI/bin sudo ./run.sh message says: sudo: ./run.sh: command not found can you please let me know if it make sense and what could I have done wrong Thanks

By: ntalam

Thanks for sharing.

Very useful