How to install Apache Web Server on Linux Mint 18

 Linux Mint Tutorial-Hello everyone, today I am going to show you how to install Apache Web Server on Linux Mint 18 Sarah. Linux Mint is an Ubuntu based Linux desktop that is handy, simple and beautiful. Even its too fancy for a server, Linux Mint is Linux. So, we can easily turn it into a powerful server in few steps.

Steps to install Apache Web Server on Linux Mint 18

Step 1. Update Your System

Its highly recommended to update Linux Mint prior to Apache web server installation. This will ensure we have the latest package available in the repository.

sudo apt-get update && sudo apt-get upgrade

Step 2. Install Apache

Use this command to install Apache on Linux Mint

dhani@dhani-Mint ~ $ sudo apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.1-0
0 upgraded, 9 newly installed, 0 to remove and 174 not upgraded.
Need to get 1.537 kB of archives.
After this operation, 6.350 kB of additional disk space will be used.
Do you want to continue? [Y/n] 

Step 3. Start Apache

dhani@dhani-Mint ~ $ sudo systemctl start apache2
dhani@dhani-Mint ~ $ sudo systemctl enable apache2
apache2.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable apache2

Now check the Apache status

dhani@dhani-Mint ~ $ sudo systemctl status apache2
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: active (running) since Tue 2017-05-09 11:02:24 WIB; 1min 35s ago
     Docs: man:systemd-sysv-generator(8)
   CGroup: /system.slice/apache2.service
           ├─26953 /usr/sbin/apache2 -k start
           ├─26954 /usr/sbin/apache2 -k start
           └─26955 /usr/sbin/apache2 -k start

May 09 11:02:24 dhani-Mint systemd[1]: Starting LSB: Apache2 web server...
May 09 11:02:24 dhani-Mint apache2[26930]:  * Starting Apache httpd web server apache2
May 09 11:02:24 dhani-Mint apache2[26930]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName
May 09 11:02:24 dhani-Mint apache2[26930]:  *
May 09 11:02:24 dhani-Mint systemd[1]: Started LSB: Apache2 web server.
May 09 11:03:14 dhani-Mint systemd[1]: Started LSB: Apache2 web server.
lines 1-17/17 (END)

Now open web browser and type the Linux Mint IP address or simply type localhost on address bar. You should see something like this.

At this point, the web server is up and running on Linux Mint 18. Thanks for coming and have a nice day.

1 Trackback / Pingback

  1. Install Apache Linux Mint? Top 21 Best Answers

Leave a Reply

Your email address will not be published.


*