Raspberry Pi Zero Web Development Server

Over the years i have had lots and lots of web servers. Pentium 3 based servers, proper rack servers, all sorts. Most of which were far too power hungry for the task i gave them. Now though, we have the glorious Raspberry Pi Zero W which can do all of what my older servers did but without the power cost.

After ordering yet another Pi Zero this recent addition was going from a programming/project Pi to a web devlopment server and also a place for me to back up all my web sites.

Firstly i disabled boot to the desktop in Raspbian and also changed the host name.

After this was done i rebooted the machine and SSH’ed into it to begin the Apache, PHP and MySQL server installs using the following commands.

sudo apt-get install apache2 -y

sudo apt-get install php5 libapache2-mod-php5 -y

sudo apt-get install mysql-server php5-mysql -y

Once complete i also installed Webmin. Not essential but it’s a web interface i have worked with for years now and I’m comfortable with it so why not.

Installed using the following commands:

Grabbing the deb file:

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.831_all.deb

Installing deb file using Super User.

sudo dpkg -i webmin_1.831_all.deb

At this stage the installation failed due to dependency issues.

dpkg: dependency problems prevent configuration of webmin:
webmin depends on libnet-ssleay-perl; however:
Package libnet-ssleay-perl is not installed.
webmin depends on libauthen-pam-perl; however:
Package libauthen-pam-perl is not installed.
webmin depends on libio-pty-perl; however:
Package libio-pty-perl is not installed.
webmin depends on apt-show-versions; however:
Package apt-show-versions is not installed.

dpkg: error processing package webmin (–install):
dependency problems – leaving unconfigured
Processing triggers for systemd (215-17+deb8u6) …
Errors were encountered while processing:

Swiftly resolved using apt-get install -f

Eventually, it completed and was ready to go!


Webmin installed and working!

Next to add a new user for the FTP.


Connected via FTP to begin uploading sites which i have already created.



I also went into the MySQL server and created a number of databases for sites which i am running.




After i set up afew sites i noticed i had a lot of space left so I decided to install Samba so i could send over a number of files which i need to keep backed up.

This was where i noticed something… I was in the process of executing a SQL database with over 10,000 tables, running 2 SSH connections to the Pi Zero as well as installing Samba AND it was doing an FTP connection from my machine which was over 16,000 files. All this going on and the CPU wasn’t even maxed out! Incredibly impressive for such a tiny little machine and a single core 1Ghz ARM processor.


Got to love Raspberry Pi’s!

That’s about it for now, it’s now sat living on a mains plug next to my arcade cabinet for all my web development needs and running at less than 1 watt.