Forum

FastCGIserver vs CGIhandler

Ron Jones
27 June 2017, 23:03
I'm doing some experimentation; setting up Hiawatha on a VPS using Ubuntu 16.04 LTS; primarily to see what works, what doesn't, and how to set it up.

Two questions:

First: In the default Hiawatha configuration page, under CGI settings, is there any thing about the following configuration that would negatively impact my PHP web applications?

Note that I have uncommented the FastCGIserver directives, and left the CGI directives commented out. And...
I have added UseFastCGI = PHP7 to the Default Website directive. I have tested it with a phpinfo.php file, and all the details seem to display as they should.
# COMMON GATEWAY INTERFACE (CGI) SETTINGS
# These settings can be used to run CGI applications.
#
#CGIhandler = /usr/bin/perl:pl
#CGIhandler = /usr/bin/php7.0:php
#CGIhandler = /usr/bin/python:py
#CGIhandler = /usr/bin/ruby:rb
#CGIhandler = /usr/bin/ssi-cgi:shtml
#CGIextension = cgi
#
FastCGIserver {
FastCGIid = PHP7
ConnectTo = /run/php/php7.0-fpm.sock
Extension = php
}

I need to do further testing, but I am moving rather slowly, and making notes, so that I can break the process down "Romper Room Style." So I thought I would ask before I get there if anyone knows of any "gotchas" with the above."

The final result desired is a tutorial that will walk an intelligent layman (solopreneur & small business) through the process of setting up a Wordpress site on the LHMP stack (Linux, Hiawatha, MariaDB, & PHP).

*****************
Second:
In addition to the tutorial, I'm composing a write-up on Hiawatha (why I use it, why I recommend it), and wonder if Hugo has a landing page type of "brochure" that gives a "why should you use Hiawatha over other popular web servers.

For my own part, it comes down to speed, security, and simplicity. Hiawatha is best overall when judged against these three criteria.

But I'd like to hear what you think.
chapchap70
28 June 2017, 18:19
If you haven't seen these articles by Chris Wadge yet,they would be good reads. http://dotbalm.org/why-i-use-hiawatha-webserver/ http://dotbalm.org/hosting-wordpress-with-hiawatha/
Ron Jones
28 June 2017, 21:31
Thanks. Yes I have, though I had forgotten his "why i use Hiawatha" article. I really enjoyed his site, It was a big help in setting up my first site (as was the info on http://secure-ubuntu-server.blogspot.com/). though it's still relevant, the dotbalm website hasn't been updated in a bit.

My aim is to help those who are daring, but perhaps less technically oriented, set up their own VPS running wordpress on hiawatha.

The logic being that you can pay $10 USD monthly for shared hosting, OR you can pay that same $10 USD for a VPS (on Linode, Digital Ocean, Vultr, etc) add a little elbow grease, and get a blazing fast, very secure, simple to configure website.
This topic has been closed.