offer jobs schedule amazon media file explorer download upload index folder image licenses menu widget Play Pause profile-settings more dots-two-horizontal dots-two-vertical more-vertical pending google-plus hangouts facebook instagram whatsapp spotify telegram twitter vine renren rss youtube twitch vimeo flickr dribble behance deviantart 500px steam github soundcloud skype reddit linkedin lastfm delicious stackoverflow pinterest xing flattr foursquare yelp World

Installing Additional Apache Modules

If you want to add additional modules for Apache extension. You can install additional modules, for example, you can install module to add support for PHP, and the likes.

Run the following command to see a list of modules available for Apache:

apt search libapache2-mod

The following command would output several apache module packages, e.g libapache2-mod-php7.2 (this adds PHP7.2 support), so, to install the package, you simply run the following command:

sudo apt install libapache2-mod-php7.2

By default, installing module package is not enough for it to work in Apache, to view a list of modules that Apache has available, use the following command:

apache2 -l

These are the built in Apache module, and are already enabled, to view a list of all modules that are installed and ready to be enabled, you can run a2enmod, it would show you the installed module, and ask at the end of the output if you would like to enable any of the module.

Your choices are: access_compat actions alias allowmethods asis auth_basic auth_digest....
Which module(s) do you want to enable (wildcards ok)?

If you know the module you want to install you can type the names, alternatively, you can give the a2enmod command a module name as an option, it will enable it for you:

For example:

sudo a2enmod php7.2

Most of the time, the major modules would have likely be enabled for you, if that is the case, you would see the following output:

Module (name) already installed

If the module isn't already enabled, it would enable it, and you would be asked to restart it, this way, the module will take effect.

To disable a module, use the a2dismod command, e.g

sudo a2dismod php7.2

Restart fo the changes to take effect.

If you are installing a third party module, you would need to get the name of the required module for the third party application doc.

Related Post(s)

  • Installing WP-CLI In a GNU/Linux Server

    WP-CLI is a command-line interface for WordPress. It can also be used with ClassicPress, as they are no differences in their usage, maybe just minimal if you are updating or downloading new ClassicPr

  • Installing and Running Rclone Mount As a Windows Service

    I previously wrote a guide on how to mount and unmount rclone in Linux, in this guide, I’ll walk you through on how to do the same on a windows system. Step 1: Download Rclone First, go to rclone d

  • Installing and Using NCDU (NCurses Disk Usage)

    ncdu is a curses-based version of the well-known 'du' command and provides a fast way to see what directories are using your disk space. What I love about this utility is that it can traverse the re

  • Installing Nginx Server as Reverse-Proxy for Apache [Multiple Websites]

    Nginx or engine X is a free and open-source web server, reverse proxying, load balancer, caching, and more. Apache isn’t the only web server for hosting web content (although, it is the most used),

  • Installing and Using dig in Ubuntu

    dig is an awesome utility for querying DNS name servers. It performs DNS lookups and displays the answers that are returned from the name server(s) that were queried. In this guide, you'll learn how

  • Securing Apache Server Using a (Self Signed Certificate) [Ubuntu]

    In this guide, you'll learn how to use SSL to secure Apache, this way, you can ensure your websites are encrypted and available over HTTPS. By default, Apache configuration listens for traffic on por