Virtualmin nginx module 2.1 released

Howdy all,

The Virtualmin nginx module has been updated to version 2.1, which adds support for PHP-FPM, to coincide with the 5.06 release of the virtual-server module (which adds the feature for Apache).

As with Apache PHP-FPM support, this feature should be considered beta. Please test on non-critical systems before relying on it for production deployments.

As always file a bug if you find a bug.

Cheers,

Joe

thank you boss I’ve been waiting for this :slight_smile:

boss where to find the php-fpm support for nginx ? i can’t see in the features

the Nginx website 2.1 just show up when i refresh modules but no php-fpm to configure

update:
i see it now when i click the link “try it” here at Virtualmin>Server Configuration>Website Options i will test this now…
to bad i receive 502 Bad Gateway :frowning:

Error log:
2017/02/17 12:11:22 [crit] 29513#29513: *1 connect() to unix:/var/php-fpm/148728689916850.sock failed (13: Permission denied) while connecting to upstream, client:$

my working config here:

/etc/php-fpm.d/jhango.conf

[jhango]
user = jhango
group = jhango
listen = /var/php-fpm/jhango.sock
listen.owner = jhango
listen.group = jhango
listen.mode = 0660
listen.allowed_clients = 127.0.0.1
pm = static
pm.max_children = 3
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
slowlog = /var/log/php-fpm/www-slow.log
php_admin_value[error_log] = /var/log/php-fpm/www-error.log
php_admin_flag[log_errors] = on
php_value[session.save_handler] = files
php_value[session.save_path]    = /var/lib/php/session
php_value[soap.wsdl_cache_dir]  = /var/lib/php/wsdlcache
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp