---
title: Apache2 on Ubuntu24-04
description: Deploy Apache2 on Ubuntu 24.04 LTS instantly. A pre-configured, high-performance web server optimized for reliability and seamless web traffic …
product: Marketplace
url: https://docs.digitalocean.com/products/marketplace/catalog/apache2-on-ubuntu24-04/
last_updated: "2026-07-08"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# Apache2 on Ubuntu24-04

Generated on 8 Jul 2026 from [the Apache2 on Ubuntu24-04 catalog page](https://marketplace.digitalocean.com/apps/apache2-on-ubuntu24-04)

Deploy a production-ready Apache2 web server on Ubuntu 24.04 LTS in seconds. This optimized image provides a secure, flexible foundation for hosting websites, APIs, and complex web applications. It is the ideal choice for developers who require a stable, industry-standard web server environment that is ready for immediate deployment.

## Software Included

*This Marketplace listing does not include a detailed software list.*

## Creating an App using the Control Panel

Click the **Deploy to DigitalOcean** button to create a Droplet based on this 1-Click App. If you aren’t logged in, this link will prompt you to log in with your DigitalOcean account.

[![Deploy to DO](https://www.deploytodo.com/do-btn-blue.svg)](https://cloud.digitalocean.com/droplets/new?onboarding_origin=marketplace&appId=236078785&image=apps4rent-apache2onubuntu2&activation_redirect=%2Fdroplets%2Fnew%3FappId%3D236078785%26image%3Dapps4rent-apache2onubuntu2)

## Creating an App using the API

In addition to creating a Droplet from the Apache2 on Ubuntu24-04 1-Click App using the control panel, you can also use the [DigitalOcean API](https://docs.digitalocean.com/reference/api). As an example, to create a 4GB Apache2 on Ubuntu24-04 Droplet in the SFO2 region, you can use the following `curl` command. You need to either save your [API access token](https://docs.digitalocean.com/reference/api/create-personal-access-token/index.html.md) to an environment variable or substitute it in the command below.

```shell
curl -X POST -H 'Content-Type: application/json' \
         -H 'Authorization: Bearer '$TOKEN'' -d \
        '{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image":"apps4rent-apache2onubuntu2"}' \
        "https://api.digitalocean.com/v2/droplets"
```

## Getting Started After Deploying Apache2 on Ubuntu24-04

Once the Apache2 on Ubuntu 24.04 One-Click Droplet is created, you can log into it as root. Make sure to substitute the Droplet’s public IPv4 address:

Bash

ssh root@your_droplet_public_ipv4

The Apache web server will already be running as a service and ready to use. You can access your server’s default page by navigating to http://your_droplet_public_ipv4 in your web browser.

Verification Commands

To verify that the Apache service has been installed and is running correctly, you can run the following commands:

1. To verify the installed version of Apache

Bash

apache2 -v

2. To check the installation path of the Apache configuration directory

Bash

which apache2

3. To check the current operational status of the Apache service

Bash

sudo systemctl status apache2