Project – Pi WebServer

This creates a web server using Apache with PHP and MySQL database. Apache is a well known and popular web server with extensive documentation. The other web server that you may consider is Nginx, which operates in a different way to Apache in that Nginx is event driven and for systems that have low resources such as a RaspberryPi, it could give better results.

However, I have used Nginx on my previous Raspberry Pi web server and although it worked well I have found I can understand Apache better than Nginx particularly when it comes to configuration. The latest RaspberryPi is much more powerful than the first version and providing you do not receive too much traffic there should not be an issue.

The Raspberry Pi is an interesting project to create a web server which may be used for a small web site or for testing purposes. It enables you to become familiar in working with the Debian Operating System, the command line interface and aspects of installing packages. It also enables you to work with a Firewall and then connect it to your own router so that it can be viewed from the outside world.

1) Hardware required for Raspberry Pi Web Server

2) The operating system

3) Basic set up of Raspberry Pi

4) Create a new user and delete the Pi user

5) Connect the Raspberry Pi to your network and router

6) Set up a USB Drive

7) Set up a Firewall

8) Setup fail2ban

9) Remote into the Raspberry Pi using SSH

10) Modify Host file

11) Install Apache2 with PHP

12) Configure Apache to use the USB Drive

13) Use FileZilla to transfer files from Windows

14) Testing your PHP configuration

15) Installing MySQL on your Raspberry Pi

16) Install phpMyAdmin

17) Optimizing Raspberry Pi to run on Apache with limited resources

18) Optimizing MySQL to run on Apache with limited resources

19) Optimize PHP

20) Monitoring Resources on Raspberry Pi

21) Connecting to your router and a domain

22) Installing WordPress

23) Setting up email on the Raspberry Pi

24) Installing AWStats

25) Installing phpsysinfo