![]() If you don’t have curl already installed, you can install it with the following command: You can try each in your web browser to determine if they work.Īnother option is using the tool, which is a website that, when accessed, returns your machine’s public IP address as read from another location on the internet. You will receive a few addresses separated by spaces. Try writing the following at your server’s command prompt: If you do not know your server’s IP address, you can get it a few different ways from the command line. You can access the default Apache landing page to confirm that the software is running properly through your IP address. However, the best way to test this is to request a page from Apache. ![]() ![]() This output confirms that the service has started successfully. ![]() Loaded: loaded (/lib/systemd/system/rvice enabled vendor prese>Īctive: active (running) since Wed 22:05:45 UTC 23s ago Your output will be a list of the application profiles: List the ufw application profiles by running the following: If you followed the instructions in the prerequisites, you should have a UFW firewall configured to restrict access to your server.ĭuring installation, Apache registers itself with UFW to provide a few application profiles that can be used to enable or disable access to Apache through the firewall. Step 2 - Adjusting the Firewallīefore testing Apache, it’s necessary to modify the firewall settings to allow outside access to the default web ports. Step 1 - Installing ApacheĪpache is available within Debian’s default software repositories, making it possible to install it using conventional package management tools.īegin by updating the local package index to reflect the latest upstream changes:Īfter confirming the installation, apt will install Apache and all required dependencies. Once you’re done setting this up, log in as your non- root user and proceed to the first step. You can learn how to do this by following our initial server setup guide for Debian 11. Prerequisitesīefore you begin this guide, you will need a Debian 11 server set up with a non- root user with sudo privileges and a firewall enabled to block non-essential ports. In this guide, you’ll install an Apache web server on a Debian 11 server. It provides many powerful features including dynamically loadable modules, robust media support, and extensive integration with other popular software. The Apache HTTP server is the most widely used web server in the world.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |