Category Archives: Servers

APACHE2 – Virtual Host – VirtualHost Examples

This document attempts to answer the commonly-asked questions about setting up virtual hosts. These scenarios are those involving multiple web sites running on a single server, via name-based or IP-based virtual hosts. Running several name-based web sites on a single IP address. Your server has multiple hostnames that resolve to a single address, and you want to respond differently for www.example.com and www.example.org. […]

Install Apache Web Server on the Raspberry Pi

Install Apache2 sudo apt-get update sudo apt-get upgrade sudo apt install apache2 -y # add permissions sudo usermod -a -G www-data pi sudo chmod -R -f www-data:www-data /var/www/html Setting up PHP for Apache sudo apt install php php-mbstring php-mysql php-curl php-gd php-zip -y sudo nano /var/www/html/phpinfo.php <? phpinfo(); ?> Setting up an Apache Virtual Host […]