How to install and configure Apache Web Server on Godaddy Server?
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.
Please Login to comment...