A web server stores and transfers website data upon requests from visitors' browsers. The document discusses setting up an Apache web server by updating packages, installing Apache, checking the localhost and IP address, starting and checking the Apache server status. It also covers accessing the root user, editing an HTML file, granting write permissions to the file so it can be accessed on the localhost.
UI5ers live - Custom Controls wrapping 3rd-party libs.pptx
Setting up a web server in Linux (Ubuntu)
1. Setting up a Web Server
Welcome to our Presentation
on
2. What is web server? And Why we need it?
• A web server is a computer system that processes requests
via HTTP, the basic network protocol used to distribute
information on the World Wide Web.
• A web server’s main purpose is to store web site files and
broadcast them over the internet for you site visitor’s to
see.
• Thus, the main purpose of a web server is to store and
transfer web site data upon the request of a visitor’s
browser.
3. Update all packages
Update package lists from the repositories. To do this, open
a terminal. This will also ask for your password. Wait till it
gets updated.
4. Apache Install
To install apache2 server, need to type the following command
in your terminal. This will take some time to install the
apache2.
5. Localhost Check
Here, we can see the current or running status of apache
using this sudo service apache2 status. Here, the status of
apache is inactive or dead.
6. Ifcongif
If we want to run our and check our apache server then we should
know our ip address.
The ifconfig command will provide us the ip address.
7. Apache status
At fast, we should check the current status of apache. So,
we can type the following command to show the current
apache status.
8. Apache current status check
Here, we can see the current or running status of apache
using this sudo service apache2 status. Here, the status of
apache is inactive or dead.
9. Apache start
For the purpose of running our apache server, at first we should
start the apache server. So, this command is works for start the
apache server.
10. Current localhost Check
Now, we can see our current localhost default page using the using
the apache server by any web browser. And this is works
successfully.
11. Apache status check by terminal
We can also see the current or running status of our installed apache
server using this following command. And we can see, the current
status of apache is active or running.
12. Localhost check using Ethernet ip
Now, we can see our current localhost default page using our Ethernet ip
by any web browser. Here we are using the mozillla firefox web browser.
And it works successfully.
13. Go to root user
In this section, we need the root user for accessing the
/var/www/ location. So, in this following command is used
to access the root user. Then created a new file.
14. Edit and Web page design
After accessing the root user
we need to edit and write the
file which is previously
created. This following
command uses for this
particular function.
And after the accessing of this
particular file, we are designed
a html web page which name
is my.html.
15. Check the file on localhost
For the purpose of checking the location using this following
file, we can see that our file is unable to connect with the
server.
16. Permission the apache root file
In this case, we need the permission of the apache root file for
accessing this following files on the apache server localhost.
Here, “o” means other and “w” means write that means all the
others file is accessible and writeable.
17. Accessing our required file
Here, we can see that our required my.html file is accessing
successfully. And it works successfully.
This page shows us our previously created html texts.