Apache Server
- This is a popular web server
- Open Source =>
- Free/Community Editions
- Enterprise Editions (Support)
- Web Server:
- exposes http connectivity
- returns web pages
- Web Page:
- HTML Page
- Webservers generally understand http and respond with
- html
- json
- other formats
- Webservers also support executing some languages
- php
- Webservers can also forward the request to some other servers.
-
Popular Webservers:
- Apache
- Nginx
- IIS
- Lets create a linux VM
- To install apache
sudo apt update
sudo apt-cache search apache
sudo apt install apache2 -y
- Any application that runs in the background is called as daemon or service
- To control services linux has
systemctlcommand - To view the service status
sudo systemctl status apache2.service - To stop
sudo systemctl stop <service-name> - To start
sudo systemctl start <service-name> - To enable
sudo systemctl enable <service-name> -
Lets add our page into apache server
- folder for webpages
/var/www/html/ - Lets create info.html and add
<h1>information found </h1>
- folder for webpages
- Exercise: Try doing the same in nginx server
Copying files between windows and linux
- Lets use sftp
Installing Softwares in Linux
- We have 3 ways
- download the software and extract it on your own
- using deb (sudo dpkg -i
.deb) or rpm packages sudo rpm -iVh <name>.rpm) - using pacakge managers
- debian/ubuntu => apt
sudo apt install git - redhat => yum/dnf
sudo yum install git - generic => snap
sudo snap install git
- debian/ubuntu => apt
