Installing Apache Web server on Linux server
Tutorial by Amit
This steps are tested on Ubuntu 16.04. I have listed down some basic Linux commands also which you should be aware of.
- sudo apt install apache2
- localhost:80/
- cd /var/www/html
Open and Edit file
- vim index.html
Type "i" to enter insert mode.
Press ESC and then type ":wq!" then press Enter to save the changes and exit vim.
nano index.html
cd /etc/apache2/sites-available/
sudo nano myexample.conf
Add the email address in ServerAdmin email@myexample.com
Add the server name as ServerName myexample.com
Add the Document for the folder which you had already created
Happy learning!!
More articles from same author:
More articles:
Recent lost & found:
Login for enhanced experience
Create and manage your profile
Refer an author and get bonus Learn more
Publish any lost and found belongings
Connect with the authors & add your review comments
Join us for Free to advertise for your business or Contact-us for more details
Join us for Free to publish your own blogs, articles or tutorials and get your Benefits
Discover your area of interest
Advertisement
Art & entertainment
Astrology & spirituality
Cooking
Culture
Current affairs
Education
Fashion
History
Hotel management
Industry
Medical & fitness
Motivational
Politics
Real life stories
Sports
Story & poetry
Technology
Top in search
Tourism
More recent categories
hotel management(Public)
By: Nirupama
Education(Public)
By: Eduvizor
Education(Public)
By: Property
Education(Public)
By: Anish
Cooking(Public)
By: Nirupama
Affiliate Marketing (Public)
By: Popoola
Tech Blogger | Java | Spring Boot | HTML | CSS | MySQL(Public)
By: Er
Tourism(Public)
By: Nirupama
My diary(Public)
By: Shalini
Festival(Public)
By: Shalini