Generally, a SysAdmin uses the command line interface to configure server applications. However, there are web interfaces that facilitate the process of configuring these tools. In a server in production state, Apache plays an important role because it is the web server, which is why it must be correctly configured. With this in mind, it is helpful to install Apache GUI to make quick and easy adjustments to it.
Apache GUI is a free and open source web tool that is designed to help Administrate the Apache Web Server. Some of its functions are:
- Edit, Search and Validate your Configurations.
- Manage VirtualHosts.
- Edit web documents right from your web browser.
- Tail, download and search your logs.
- Install and remove Apache modules.
- View runtime statistics from your web server.
- Record, search and graph detailed transactions.
As you can see, this is a very useful tool especially if you are starting in the sysadmin world or if you prefer the convenience of a web interface over the terminal.
What you need to install it
To install Apache GUI, in the first place, you need a user who can execute commands as a superuser, for example, a user who can execute sudo. On the other hand, it is useful that you have some knowledge about terminal handling. And finally, to have a PC with Debian 9. Obvious, isn’t it?
1. Upgrade the system
In order to guarantee the correct functioning of the server, it is convenient to have the latest security patches installed. With this, you not only get stability but also performance and security improvements.
Open a terminal and run:
:~$ sudo -i
After entering the password, you will be able to update the computer. Run:
:~# apt update && apt upgrade
With this, you will have your Debian 9 updated.
2. Installing Java
Apache GUI is built with Java, so you must install Java on the server to run it. Run:
:~# apt install openjdk-8-jre
Then to check that java has indeed been installed, run:
:~# java -version
With this, Java has been installed.
3. Installing Apache web server and PHP
For a good running, Apache GUI requires that you install PHP. And obviously, you have also install apache web server.
First, install apache. Run:
:~# apt install apache2
It then enables the service for apache2 to run at system startup.
:~# systemctl enable apache2 :~# systemctl start apache2
Finally, verify that the installation has occurred satisfactorily. Go to a web browser and access to
http://IP_SERVER. You should see something like this.
With this apache2 web server is correctly installed.
Now continue with PHP. Run:
:~# apt install php7.0 php7.0-imap php7.0-xml libapache2-mod-php7.0 php-pear
To prove that the PHP installation has been successful. Create a file called
test.php in the
/var/www/html/ directory and place the following:
:~# nano /var/www/html/test.php
<?php phpinfo(); ?>
Go to your web browser and open it
PHP and Apache are correctly installed and working.
4. Install Apache GUI
It’s time for the green, now it’s time to install Apache GUI. First, you have to create a folder, access it and download the program.
:~# mkdir/usr/local/apachegui/ :~# cd /usr/local/apachegui/ :~# wget https://sourceforge.net/projects/apachegui/files/1.12-Linux-Solaris-Mac/ApacheGUI-1.12.0.tar.gz
Now unzip the downloaded file.
:~# tar -xvzf ApacheGUI-1.12.0.tar.gz
Then, change the directory to the Apache GUI directory and launch the installation script.
:~# cd ApacheGUI/bin/ :~# ./run.sh
With this, it’s already installed. Now go to your browser and access with the IP address of the server and port 9999.
As you can see, you have two options. Choose the first post you installed apache2 from the official Debian repositories.
Then you’ll see this screen. On that screen, you must place the credentials and folders where apache works. Don’t worry about the first field, there is a drop-down list and choose “Debian and Ubuntu” and the fields will be filled in. Then in username and password define the credentials.
Finally, you will see this screen.
Apache GUI is now correctly installed and configured in Debian 9.
If you want to close the application, write:
This type of application is useful for users who have a graphical alternative to configure such an important program as Apache.
Tell us, how was the installation? Have you used it? What is your experience with Apache?
Please spread this article on your social networks.