Installing a web server/Apache web server

Installation Apache2

edit

Debian GNU/Linux Apache server

edit

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

edit

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