Raspberry Pi Zero Web Development Server

Projects based on the Raspberry Pi single board computer

User avatar

Site Admin

Posts: 178

Joined: Sat Oct 29, 2016 2:06 pm

Post Tue May 02, 2017 4:13 pm

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.

Image

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.

Image

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


Image

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:



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:
webmin


Swiftly resolved using "apt-get install -f"

Image

Eventually, it completed and was ready to go!

Image
User avatar

Site Admin

Posts: 178

Joined: Sat Oct 29, 2016 2:06 pm

Post Tue May 02, 2017 5:30 pm

Re: Raspberry Pi Zero Web Development Server

Image

Webmin installed and working!

Next to add a new user for the FTP.

Image

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

Image

Image

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

Image

Image
User avatar

Site Admin

Posts: 178

Joined: Sat Oct 29, 2016 2:06 pm

Post Tue May 02, 2017 5:41 pm

Re: Raspberry Pi Zero Web Development Server

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.

Image

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.

Image

Return to Raspberry Pi Projects



cron