
Once modules are activated and linked to the mod-enable directory, they’re then made available to Apache to load. The a2enconf and a2disconf commands can enable or disable modules. Modules are only available to load with Apache when they’re enabled and symlinked to the /etc/apache2/mods-enable/ directory. sudo a2dissite Īpache uses modules to enhance and add additional functionalities and they are located in the /etc/apache2/mods-available/ directory.
#Install apache spark as a servie on ubuntu how to
Learn how to install and configure Apache Web Server on Ubuntu 20. (replace with your website VirtualHost file). Apache is one of the most widely used web servers in the world. To deactivate a virtual host use the command below. The command above will create a symlink of the website configuration files found in the sites-available directory to the sites-enabled directory. (replace with your VirtualHost file) sudo a2ensite To activate websites so they’re linked to the /etc/apache2/sites-enable directory, these the command below. Once activated, they are then linked to the /etc/apache2/sites-enabled directory. Website configurations are not used by Apache until they’re activated. This is the directory where individual website are defined. The ports in here are what Apache listens on for traffic.Īpache Virtual Hosts files are stored in /etc/apache2/sites-available directory. Port configurations, including changing the default listen ports are specified in this file /etc/apache2/nf. Global configuration settings are done in the file, but this file is rarely ever touched. This is considered Apache home directory.Īpache main configuration file is /etc/apache2/nf. On Ubuntu Linux, these are Apache directory structures and configuration files.Īll Apache configuration files are located in the /etc/apache2 directory. Other Linux systems might have different folder structures and configuration files. Now that Apache is installed, there are important folders and locations that you should be aware of. You should see Apache default welcome page.

With the firewall opened, simply browse to the server hostname or IP address to see if Apache default page is up. If you’re using UFW to manage Ubuntu firewall, then run the commands below to allow traffic. However, run the commands below if you’re not sure.

In most cases, Ubuntu server are running without firewall enabled. If you’re running Ubuntu in protected mode with firewall enabled, then you’ll have to allows HTTP (80) and HTTPS (443) to Apache web server. Sep 15 12:29:40 ubuntu2004 apachectl: AH00558: apache2: Could not reliably determine the > How to allow Apache through Ubuntu firewall Sep 15 12:29:40 ubuntu2004 systemd: Starting The Apache HTTP Server. Process: 4860 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS) Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Wed 12:29:40 CDT 10s ago It serves as a delivery man by delivering files requested by users when they enter a domain name in their browser’s address.
