Hi there,
I recently got my first Raspberry Pi (B+), and my first plan is to have my own web server. I started fresh and successfully, and installed Raspbian with Apache, MySQL and PHP. Now I was looking into securing the install before forwarding port 80, and I keep finding more and more tutorials for Nginx.
So, after more reading, I am starting to wonder if it isn't better for what I want to do, to install:
OS: Raspbian
Server: Nginx
Database: MariaDB + adminer
+ PHP
Using this tutorial: http://arstechnica.com/gadgets/2012/11/ ... eb-server/
I was thinking to use that particular tutorial because it goes into a lot of detail about safety and performance, two things I really want to get right.
What I 'need' the server to be able to do:
- Host a few (3-6) Wordpress sites open to the wide world but with only max 20 visitors a day.
- Host a private (password protected through the server but accessible from the web) website currently based on Apache (2.2.26), MySQL (5.6.17) and PHP (5.4.3). Site itself is about 1 Gb, with a few graphics heavy pages and a few heavy queries (it is the front end to my SQL based book-collection database, the slowest query is one on an 9000 record table with a couple of joins). Ideally the installation combination should be able to work with my existing database/php files without any changes so I can keep my current MAMP stack on my Mac for now.
- Play around with self-hosted tools like Owncloud, Lychee, Btsync (Preferably only accessible through the internal network)
- Access through SSH only is fine (I don't think I need the desktop for this)
My question to you guys, the community is this:
What is the best OS to use? (Currently Rasbian)
What is the best server to use? (Currently Apache but thinking about Nginx)
What is the best SQL flavour? (Currently MySQL but thinking about MariaDB)
If the linked tutorial is not (that) good (it is from 2012), is there another (maybe Raspberry specific) tutorial I can use to make the server safe to open up to the internet?
Thanks in advance for any advice!
Sara