Report this

What is the reason for this report?

just got a droplet with fedora and tried to install apache and it did not work

Posted on April 9, 2015

https://www.digitalocean.com/community/tutorials/how-to-install-lamp-linux-apache-mysql-php-on-fedora

used that as starting point and when got to the go to my web site point

nothing showed up



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

that was not the problem the firewall was not letting people talk to apache had to open port 80

Have you set up the DNS records for your domain name? How To Set Up a Host Name with DigitalOcean

Are you able to access it by browsing to your droplet’s IP address?

For anyone stumbling upon this, To install the Apache web server on a modern version of Fedora, you can use the dnf package manager. Here are the steps to install Apache on Fedora:

To install the Apache web server on a modern version of Fedora, you can use the dnf package manager. Here are the steps to install Apache on Fedora:

  1. SSH to Droplet: SSH to your Droplet.

  2. Update System Packages: Before installing any new software, it’s a good practice to ensure that your system’s package repositories are up to date. Run the following command:

sudo dnf update
  1. Install Apache: To install the Apache web server, use the following command:
sudo dnf install httpd
  1. Enable and Start Apache: After installation, enable Apache to start on boot and start the service:
sudo systemctl enable httpd 
sudo systemctl start httpd
  1. Firewall Configuration: If you have the firewall enabled, you need to allow HTTP traffic. You can use firewalld to open the HTTP port (80):
sudo firewall-cmd --permanent --add-service=http 
sudo firewall-cmd --reload
  1. Verify Apache Installation: Open a web browser and enter your server’s IP address or domain name in the address bar. You should see the default Apache test page, which indicates that Apache is working correctly.

    If you don’t know your server’s IP address, you can find it by running:

ip a
  1. Configure Virtual Hosts (Optional): If you plan to host multiple websites or need custom configurations, you can create Apache virtual hosts. These configurations are typically stored in files under /etc/httpd/conf.d/ or /etc/httpd/conf/httpd.conf depending on the Fedora version.

  2. Secure Your Apache Installation (Optional): It’s important to secure your Apache installation by configuring SSL/TLS certificates, setting up authentication, and regularly applying security updates.

That’s it! You have successfully installed Apache on your Fedora system. You can now start deploying and hosting web applications and websites on your server.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.