3 ms·
You're probably overthinking this. While the Pi is limited in processing power and I/O, if it's really a small community it will run a forum just fine. Here's
by Udo 12y ago
You're probably overthinking this. While the Pi is limited in processing power and I/O, if it's really a small community it will run a forum just fine.
Here's what to look out for:
1) Make sure you run NginX, it's fast and memory-efficient.
2) Install PHP-FPM and have NginX connect to it using a socket file. Keep the number of FPM workers small.
2a) Zend Opcache comes standard with PHP now, but there are scenarios where you might want to look into using APC instead, especially if you want to hand-tweak some caching into the forum app. But see if it's necessary first.
3) I had good experiences with MariaDB, a MySQL fork, which comes with the Aria table type. If possible, change the forum tables to that type, it's very fast. The worst table type on a Pi is InnoDB, it's pretty is much unusable.
4) Beware of flash medium write wear, buy a larger-than-needed SD card or place files that update frequently on an external USB hard drive.
- VLM 12y ago"While the Pi is limited in processing power and I/O" This line is the key to the question. Simply roll back time until the specs of the Pi would be a "decent" or at least "cheap" webserver for that time, the kind of server you'd run a small forum upon at that time. OR if not decent for bare metal hardware, decent for a virtualized image on a bigger server. Its not like 2014 is the first year in human history with webservers or web based forums. So people were running forums on tiny virtualized servers with about those specs on linode perhaps just a couple years ago. Perhaps even today either on very tiny linodes or competitors. The only real problem is the software. So use old stuff open to individual and class of vulnerabilities that were fixed 5 years ago, or take an obese beast of a modern forum and give it a liposuction? Look into puppet and run the master somewhere else and automate it enough that you can go from a bare metal Pi to a live host in ten minutes or so. You'll be doing it again sooner or later at a time not of your choosing, so may as well get it right now. Also, implement a backup strategy and automate its restoral process (and integrate with above)