These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Enable Nginx Plugin Via Command on the new forum.
I have written a bash install script for newly deployed VPS servers. The script configures Virtualmin based on my requirements.
I'm able to disable the features and plugins I don't need but when attempting to enable Nginx with the below commands I get the following errors.
virtualmin set-global-feature --enable-feature virtualmin-nginx
Use of uninitialized value in -r at /usr/share/webmin/virtualmin-nginx/virtual_feature.pl line 48.
Use of uninitialized value $virtualmin_nginx::config{"nginx_config"} in concatenation (.) or string at /usr/share/webmin/virtualmin-nginx/virtual_feature.pl line 49.
Error: virtualmin-nginx::feature_check failed : Undefined subroutine &virtualmin_nginx::text called at /usr/share/webmin/virtualmin-nginx/virtual_feature.pl line 49.
Error
-----
virtualmin-nginx::feature_check failed : Undefined subroutine &virtualmin_nginx::text called at /usr/share/webmin/virtualmin-nginx/virtual_feature.pl line 49.
-----
virtualmin set-global-feature --enable-feature virtualmin-nginx-ssl
Error: Require virtualmin-nginx-ssl/virtual_feature.pl failed : Undefined subroutine &virtualmin_nginx_ssl::load_language called at /usr/share/webmin/virtualmin-nginx-ssl/virtual_feature.pl line 9.
Error
-----
Require virtualmin-nginx-ssl/virtual_feature.pl failed : Undefined subroutine &virtualmin_nginx_ssl::load_language called at /usr/share/webmin/virtualmin-nginx-ssl/virtual_feature.pl line 9.
-----
I'm running Virtualmin 4.02.gpl with Nginx plugins v1.4. Has anyone run into the same issue and is there a way of fixing the command line so I can enable the Nginx plugin using a bash script?
Bump...
I'm still experiencing this issue too on Centos 6.x. It is the only part of my full Ansible install that I cannot automate and have to do manually. The wbm-virtualmin-nginx and SSL packages install properly using yum install.
nginx/1.10.1 Virtualmin version 5.04