To install and configure Apache on Ubuntu 24.10, follow these steps:
Step 1 : Update the package manager.
Step 2 : Install Apache.
Step 3 : List available UFW applications:
Allow Apache through the firewall:
Step 4 : Check Apache's status.
Step 5 : Create a directory for your website and an example index.html.
Step 6 : Create the Apache configuration file for example.com.
Add the following content:
Step 7 : Enable the site configuration.
Step 8 : Test the Apache configuration
If there are no errors, you should see:
Step 9 : Test the configuration by visiting http://example.com in your web browser.
Congratulations! You have successfully installed and configured Apache on Ubuntu 24.10.