Installing a web server/Apache web server

Debian GNU/Linux Apache server
Installing the Apache2 web server requires a single command:

sudo apt-get install apache2

If you wish to make a LAMP (Linux, Apache, MySQL, PHP) server you must install PHP and MySQL:

sudo apt-get install php mysql

Ubuntu Server Edition Apache server
The 'htdocs' folder is located in '/var/www'

Installing the Apache2 web server requires a single command with working internet connection in Ubuntu too:

sudo apt-get install apache2