Setting up a Raspberry Pi Web Server with Arch Linux

  • Connect network cable, keyboard and screen for this.
  • Rasppberry Pi downloads
  • Install Arch Linux Pi image on an SD card, boot the Pi and log in (default user id = pi, password = raspberry)
  • type pacman -Syu (sync and upgrade)
  • type pacman -S base-devel
  • type pacman -S mysql
  • type pacman -S community/ttf-ubuntu-font-family
  • type pacman -S apache
  • type pacman -S extra/gd
  • type pacman -S extra/php
  • type pacman -S extra/php-apache
  • type systemctl enable httpd
  • type systemctl start httpd
  • type systemctl enable mysqld
  • type systemctl start mysqld
  • type:wget http://ubiubi.kingston.ac.uk/CI1152/cpil.zipto get the source code bundle
  • type:unzip cpil.zip to unzip
  • type:cd cpilto move to the cpil directory just created
  • type:make all to compile the examples
  • examples are visible remotely in a browser eg 192.168.1.78/cgi-bin/hello3