1670613900
How to install Apache on Ubuntu Amazon EC2 Instance – AWS. Apache is the most widely used HTTP web server which provides dynamic loading modules, easily integrating with other applications.
This guide helps you to install Apache on Ubuntu 18.04 on AWS EC2 Instance and configure firewall (UFW).
This tutorial is tested on an AWS EC2 Instance with Ubuntu 18.04 AMI, So, this will work on any servers running Ubuntu 18.04.
SSH to your EC2 Instance and perform the steps listed below.
Let’s start by updating the local package index with the following command.
sudo apt update
sudo apt upgrade
Install Apache 2 package from the Ubuntu repository.
sudo apt install apache2
This will install apache2
and all required dependencies.
Now you can set up Uncomplicated Firewall (UFW) with Apache to allow public access on default web ports for HTTP
and HTTPS
sudo ufw app list
You will see all listed applications.
Output
Available applications:
Apache
Apache Full
Apache Secure
OpenSSH
80
(normal, unencrypted web traffic)80
(normal, unencrypted web traffic) and port 443
(TLS/SSL encrypted traffic)443
(TLS/SSL encrypted traffic)22
for SSH access.If you are not going to use SSL you need to enable only the Apache profile.
Now we will enable Apache Full.
sudo ufw allow OpenSSH
sudo ufw allow 'Apache Full'
With this command you can view the status of UFW.
sudo ufw status
You will see the output as follows.
Output
Status: active
To Action From
-- ------ ----
Apache Full ALLOW Anywhere
OpenSSH ALLOW Anywhere
Apache Full (v6) ALLOW Anywhere (v6)
OpenSSH (v6) ALLOW Anywhere (v6)
Once Apache is installed is is started automatically and already be up and running.
Every process in Apache is managed with the systemctl
command. Check the status of Apache with the following command.
sudo systemctl status apache2Output
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Tue 2020-01-06 03:59:34 UTC; 5min ago
Main PID: 10617 (apache2)
Tasks: 55 (limit: 667)
CGroup: /system.slice/apache2.service
├─10617 /usr/sbin/apache2 -k start
├─10619 /usr/sbin/apache2 -k start
└─10620 /usr/sbin/apache2 -k start
Jan 06 03:59:34 apache systemd[1]: Starting The Apache HTTP Server…
Jan 06 03:59:34 apache systemd[1]: Started The Apache HTTP Server.
Now visit the External IP address of your VM instance, you will see the default Apache welcome page.
To start Apache web server.
sudo systemctl start apache2
To stop Apache webserver.
sudo systemctl stop apache2
To restart Apache web server.
sudo systemctl restart apache2
To reload Apache without dropping connections.
sudo systemctl reload apache2
To disable Apache.
sudo systemctl disable apache2
To enable Apache.
sudo systemctl enable apache2
Become a Certified AWS Professional with this easy to learn course now.
Now you have learned how to install Apache and configure firewall (UFW) on AWS EC2 Instance.
Thanks for your time. If you face any problem or any feedback, please leave a comment below.
Original article source at: https://www.cloudbooklet.com/
1595429220
Microsoft Teams is a communication platform used for Chat, Calling, Meetings, and Collaboration. Generally, it is used by companies and individuals working on projects. However, Microsoft Teams is available for macOS, Windows, and Linux operating systems available now.
In this tutorial, we will show you how to install Microsoft Teams on Ubuntu 20.04 machine. By default, Microsoft Teams package is not available in the Ubuntu default repository. However we will show you 2 methods to install Teams by downloading the Debian package from their official website, or by adding the Microsoft repository.
01- First, navigate to teams app downloads page and grab the Debian binary installer. You can simply obtain the URL and pull the binary using wget
;
$ VERSION=1.3.00.5153
$ wget https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_${VERSION}_amd64.deb
#linux #ubuntu #install microsoft teams on ubuntu #install teams ubuntu #microsoft teams #teams #teams download ubuntu #teams install ubuntu #ubuntu install microsoft teams #uninstall teams ubuntu
1621745280
Secure and resizable compute capacity in the cloud.
Amazon Elastic Compute Cloud ( Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers.
In this article let us see how to create On-demand EC2 instance from Console.
#create-ec2-instance #aws-ec2-instance #ec2-instance #amazon-web-services #aws
1595515560
TeamViewer is a cross-platform, proprietary application that allows a user to remotely connect to a workstation, transfer files, and have online meetings. In this tutorial, we will walk you through how to install TeamViewer on Ubuntu 20.04 Desktop through the command line.
Before continuing with this tutorial, make sure you are logged in as a user with sudo
privileges.
01- To install TeamViewer, first, download the TeamViewer .deb
package. So, open the Terminal and run the following wget
command.
$ wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
02- Once you have downloaded the TeamViewer‘s Debian package, execute the following command to install Teamviewer:
$ sudo apt install ./teamviewer_amd64.deb
The system will prompt you with a [Y/n]
option. Type ‘Y
‘ and hit the enter
key in order for to continue the installation.
03- Once the installation is done, you can launch TeamViewer either by typing the command teamviewer
in your terminal or by clicking on the TeamViewer
icon (Activities -> TeamViewer
).
04- A pop-up License Agreement will be displayed. To proceed, click on the Accept License Agreement
button.
#linux #ubuntu #install teamviewer #install teamviewer ubuntu #teamviewer #teamviewer ubuntu #teamviewer ubuntu install #ubuntu install teamviewer
1592209410
pgAdmin is the leading graphical Open Source management, development and administration tool for PostgreSQL. pgAdmin4 is a rewrite of the popular pgAdmin3 management tool for the PostgreSQL database.
In this tutorial, we are going to show you how to install pgAdmin4 in Server Mode as a web application using apache2 and Wsgi module on Ubuntu 20.04 LTS.
#databases #linux #ubuntu #install pgadmin4 #install pgadmin4 ubuntu #install pgadmin4 ubuntu 20 #pgadmin4 #ubuntu pgadmin4 #ubuntu pgadmin4 install
1595372400
1- We need to add official repository to the sources list. Therefore, type the below command to add the Android Studio repository:
$ sudo add-apt-repository ppa:maarten-fonville/android-studio
02- Now let’s install Android studio and all the software dependencies as below.
$ sudo apt update
$ sudo apt install android-studio
We can install using the snap
tool. So, use the below command to install Android Studio:
$ sudo snap install android-studio --classic
01- You can start Android Studio either by typing the command android-studio
in your terminal or by clicking on the Android Studio icon (Activities -> Android Studio
).
02- When you start Android Studio for the first time, a window like the following will appear asking you to import Android Studio settings from a previous installation. However, if you have a previous installation of Android Studio, simply browse to the configuration folder. If not, go with the default option which is Do not import settings
.
03- Click on the Next
button, and you will be presented with a window to choose your type of setup you want for Android Studio. So, let’s choose Standard which will install the most common settings and options as below.
04- Click Next
and you’ll be taken to the following window to choose your UI theme:
05- You’ll be taken to a window to verify your chosen settings. Simply click on Next
. Finally, wait for the Wizard to download and install the required dependencies before you can start your first Android project
#linux #ubuntu #install android studio #install android studio ubuntu #install sdk ubuntu #sdk #sdk install android studio #ubuntu install android studio