The Wayback Machine - https://web.archive.org/web/20240118173132/https://www.geeksforgeeks.org/how-to-install-and-configure-apache-web-server-on-godaddy-server/
Open In App
Related Articles

How to install and configure Apache Web Server on Godaddy Server?

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

GoDaddy VPS is a shared server that provides computational services, databases, storage space, automated weekly backups, 99% uptime, and much more. It’s a cheaper alternative to some other popular cloud-based services such as AWS, GPC, and Azure. Apache HTTP Server is an open-source web server software widely used by web hosting companies to provide shared and virtual hosting. The software was released in 1995 and is mainly written in C. In this article, we will discuss how to install the latest version of the Apache web server on GoDaddy VPS (Ubuntu).

Install and configure Apache Web Server on Godaddy Server

Step 1: Open your terminal and ssh into the Godaddy server.

$ ssh [username]@[ip]

 

Step 2: Update and upgrade the server by running.

$ sudo apt update -y
$ sudo apt upgrade -y

 

Step 3: Install the apache server from APT software repositories.

$ sudo apt install apache2

 

Step 4: Verify the installation by performing a version check

$ apache2 -version

 

Step 5: Now, run the server by using systemctl command.

$ sudo systemctl start apache2
$ sudo systemctl status apache2

 

Step 6: Once again, use the systemctl command to enable the apache2 service on the server. Now, apache2 will restart whenever the server boots up.

$ sudo systemctl enable apache2

 

Step 7: Apache2 is now running on our server. Lastly, open ports for HTTP and HTTPS requests and redirect traffic to Apache. For this, we will use UFW (Uncomplicated Firewall). So, enable UFW on your server.

$ sudo ufw allow

 

Step 8: Open port 80 (unencrypted web traffic) and 443 (TLS/SSL encrypted traffic) for the apache server.

 

Step 9: Remember to open port 22 for ssh connections otherwise you will be locked out of your server.

$ sudo ufw allow 'OpenSSH'

 

Step 10: Verify the changes by checking the status of ufw.

$ sudo ufw status

 

Step 11: In your browser, navigate to http://server_ip to view the default Apache home page.

 

Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore.
Last Updated : 07 Nov, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads
Complete Tutorials