Hey People,
In an attempt to build a lightweight, performance friendly, secure web platform i came up with the PHA stack. I thought it would be fun to explore phalcon on Alpine, so i kept track of what i did and write it all down here.
(link was broken, now fixed)
PHA Stack
stands for Phalcon with Hiawatha on Alpine Linux as these projects focus on small, simple, secure which most often implies performance while still lightweight.
I believe these projects attain these goals.
Phalcon
is a (really fast) PHP framework built on and extendable by Zephir which is an open source, high-level language. Zephir is designed to ease the creation and maintainability of extensions for PHP with a focus on type and memory safety.
>> go to documentation
Hiawatha
has been written with security in mind. This resulted in a highly secure webserver in both code and features. Hiawatha can stop SQL injections, XSS and CSRF attacks and exploit attempts. Via a specially crafted monitoring tool, you can keep track of all your webservers.
>> go to documentation
Alpine Linux
is an independent, non-commercial, general purpose Linux distribution designed for power users who appreciate security, simplicity and resource efficiency.
Let me know if this works for you, what improvements can happen etc. There should be no mistakes but it can be incomplete as i think to have omitted small configuration changes in php and php-fpm configuration.
Yes, i did not mention a database choice because this is agnostic to both Phalcon and PHP.
Best Regards,
commandline.be