Deployment of Linux Apache Server using AWS EC2
Ujjwal Pratap Singh

Deployment of Linux Apache Server using AWS EC2

Apache HTTP Server is a free and open-source cross-platform (runs on Linux, Windows and MacOS) web server. It is top choice for website and applications worldwide due to its open-source, secure, reliable and highly customizable. It supports SSL, authentication and access control along with dynamic content support (PHP, Python, Perl, etc.). It uses a client-server model to provess the HTTP and HTTPS request. It listens for HTTP on port 80 and HTTPS on port 443.

It has some limitations like it is slower than NGINX and not as scalable for high loads. It is good for dynamic content but not better for higher traffic site.

Installing Apache on Ubuntu

sudo su
yum upgrade -y
yum install httpd -y        

Creating directory and hosting webpage

cd /var/www/html
nano index.html
#create HTML and save it by Ctrl+O. Press Enter and then press Ctrl+X to exit from nano.        

Check if Apache is running

sudo systemctl status httpd
#systemctl enable httpd
#systemctl start httpd        


Article content
Screenshot (AWS EC2 Instance)

Copy the Public IP and paste in new tab and hit the Enter button. Your website will be visible. Feel free to connect with me if want to learn more about AWS.

To view or add a comment, sign in

More articles by Ujjwal Pratap Singh

Explore content categories