5 ms·
Is there an alternative to PHP that is as easy to setup? It seems that most languages require another server process running in the background (Tomcat, Ruby, et
by Rust 15y ago
Is there an alternative to PHP that is as easy to setup? It seems that most languages require another server process running in the background (Tomcat, Ruby, etc.) and a web server to proxy requests. Is it old-fashioned to like the way Apache and PHP work together (and even nginx with PHP-FPM)?
- geon 15y agoIn some languages (Racket, Common Lisp, Haskell), it's easy to make the webserver part of your application. Then it's just a "server process running in the background".
- bradleyland 15y agoYou should check out the most recent versions of Passenger (a Ruby app server). You install Passenger using a simple call to `gem install passenger`, then run a single command to install the Apache module and copy/paste two lines in to your Apache config. Outside of having the module delivered by your OS distribution (like PHP + Apache), it's the easiest, most integrated app server install I've ever performed. Passenger configuration is done through your Apache vhost configs. You tell Passenger how many app server processes to spawn, restart Apache, and you're done. Passenger even plays nice with user-specific deployment strategies, meaning your Ruby apps will automatically run as the user who owns the Ruby app files. I'm not even sure mod_php does that. Passenger architecture includes process monitoring that keeps track of your Ruby processes, so you no longer have to implement "watcher" apps like Monit of God.