Anyone using nginx/fastcgi?

sunsetsystems wrote on Tuesday, July 12, 2016:

It seems to work, and I’m wondering how the performance compares with OpenEMR on Apache in a busy setting.

Rod
http://www.sunsetsystems.com/

meddev wrote on Monday, July 18, 2016:

We normally use lighttpd/php-fpm for OpenEMR because of ease of setup over nginx for OpenEMR installs anf it’s much better than Apache.We use nginx for other needs and nginx is MUCH faster than either apache or lighttpd in those settings. I would highly reccomend Nginx over Apache for performance reasons but lighttpd will work very well and is quick to get running. I usually point to this page when perforamcne questions come up.

sunsetsystems wrote on Wednesday, July 20, 2016:

Thanks DevDev!

Rod
http://www.sunsetsystems.com/

robertovasquez wrote on Friday, August 05, 2016:

Hi Rod
Nginx root is not at /var/www/html/ How did you get openemr to work?

Roberto

sunsetsystems wrote on Friday, August 05, 2016:

Roberto, you can set the root in your site configuration file in the sites-available directory. For what it’s worth here is what I have for my test site, using port 81 'cause Apache is also set up there on port 80.

server {
        listen 81 default_server;
        listen [::]:81 default_server;
        root /var/www/html;
        index index.html index.php;
        server_name _;
        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;
        }
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                # With php7.0-fpm:
                fastcgi_pass unix:/run/php/php7.0-fpm.sock;
                fastcgi_read_timeout 14400;
        }
}

Rod
http://www.sunsetsystems.com/