Web Server Setup

From Daves Wiki
Jump to navigation Jump to search

Some useful links:

Apache WebServer

Steps to install Apache2 WebServer on your Raspberry Pi

  1. Update everything before starting
    sudo apt update && sudo apt upgrade -y
  2. Install Apache2
    sudo apt install apache2 -y
  3. Restart Apache2 service
    sudo service apache2 restart
  4. Test your webserver
    In a browser go to http://localhost

PHP 7.x

Steps to install PHP on your Raspberry Pi

  1. Install PHP
    sudo apt install php -y


Comands to execute to install MySQL.

  1. Install MySQL
    sudo apt-get install mysql-server php-mysql -y


Use the following commands to install PHPMyAdmin on your Raspberry Pi:

  1. Install PHPMyAdmin
    sudo apt install phpmyadmin

Back to Raspberry Pi