Submitted by lupark on Thu, 05/10/2012 - 09:47
Managed to install on Ubuntu 12.04, I understand that this version of virtualmin is unsupported so putting this issue up fyi. Configuration (before registering any domains/vhosts) checks out ok. When I try to create a virtual host I get the following:
Creating administration group blog ..
.. done
Creating administration user blog ..
.. done
Creating aliases for administration user ..
.. done
Adding administration user to groups ..
.. done
Creating home directory ..
.. done
Creating mailbox for administration user ..
.. done
Adding new DNS zone ..
.. done
Creating Nginx virtual host ..
.. Nginx website failed! : virtualmin-nginx::feature_setup failed : Missing file to open at WebminCore::/usr/share/webmin/web-lib-funcs.pl line 3017 at /usr/share/webmin/web-lib-funcs.pl line 1360.
Setting up log file rotation ..
.. no logging directive found in webserver configuration!
Creating MySQL login ..
.. done
Creating MySQL database blog ..
.. done
Creating SSL certificate and private key ..
.. done
Adding SSL to Nginx virtual host ..
.. no virtual host named blog.mydomain.com exists
Creating Webmin user ..
.. done
Re-starting DNS server ..
.. done
Re-loading Webmin ..
.. done
Saving server details ..
.. done
a check of the log shows the following:
Argument "32/64/128" isn't numeric in int at /usr/share/webmin/virtualmin-nginx/virtual_feature.pl line 136.
Missing file to read at virtualmin_nginx::/usr/share/webmin/virtualmin-nginx/virtualmin-nginx-lib.pl line 236
Use of uninitialized value in addition (+) at /usr/share/webmin/virtualmin-nginx/virtualmin-nginx-lib.pl line 282.
Use of uninitialized value in addition (+) at /usr/share/webmin/virtualmin-nginx/virtualmin-nginx-lib.pl line 285.
Use of uninitialized value in subtraction (-) at /usr/share/webmin/virtualmin-nginx/virtualmin-nginx-lib.pl line 287.
Use of uninitialized value $file in string eq at /usr/share/webmin/virtualmin-nginx/virtualmin-nginx-lib.pl line 313.
Use of uninitialized value $file in string eq at /usr/share/webmin/virtualmin-nginx/virtualmin-nginx-lib.pl line 313.
Use of uninitialized value $file in string eq at /usr/share/webmin/virtualmin-nginx/virtualmin-nginx-lib.pl line 313.
Use of uninitialized value $file in string eq at /usr/share/webmin/virtualmin-nginx/virtualmin-nginx-lib.pl line 313.
Use of uninitialized value in splice at /usr/share/webmin/virtualmin-nginx/virtualmin-nginx-lib.pl line 292.
[10/May/2012:13:54:00 +0000] Reloading configuration
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Thu, 05/10/2012 - 11:37 Comment #1
It is possible that Virtualmin isn't finding your Nginx configuration properly..
If you go (from the left menu) to Webmin -> Servers -> Nginx Webserver, does a virtual host for your new domain appear in the list of Nginx virtual hosts?
Submitted by lupark on Thu, 05/10/2012 - 12:08 Comment #2
Hi James, It says:
Virtual Hosts
No http section was found in your Nginx config file /etc/nginx/nginx.conf. Maybe it is not setup as a webserver?
I had another error previously which I found a post about multi line directives not being processed correctly so I amended the nginx.conf file to this:
worker_processes 4;
events { worker_connections 1024; }
http { include mime.types; default_type application/octet-stream; server_names_hash_max_size 4096; server_names_hash_bucket_size 4096; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; keepalive_timeout 65; sendfile on; include /etc/nginx/sites-enabled/*; server_names_hash_bucket_size 128; }
Submitted by JamieCameron on Thu, 05/10/2012 - 13:59 Comment #3
Did splitting those directives across multiple lines fix the issue?
Submitted by lupark on Thu, 05/10/2012 - 16:14 Comment #4
Ah sorry, it was the reverse. I amended from a multiple line directive file into a single line per directive file. The error disappeared but I hit this error when I tried to create a server.
Here's the thread and comment: http://www.virtualmin.com/node/21130#comment-95477
Submitted by JamieCameron on Thu, 05/10/2012 - 19:42 Comment #5
Would it be possible for you to attach your Nginx config file to this bug report?
Submitted by lupark on Fri, 05/11/2012 - 01:25 Comment #6
Have attached both the current version and the original.
Submitted by JamieCameron on Fri, 05/11/2012 - 14:44 Comment #7
The original version looks better, but you should change the
http
andevents
block starts so that the{
is on the same line. Like :http {
etc..
Submitted by lupark on Thu, 05/17/2012 - 17:49 Comment #8
Tried it and got the same error as before "Perl execution failed". Re-installed and had another go but still no luck. I had been using this stackscript (amended to install onto 12.04): http://www.linode.com/stackscripts/view/?StackScriptID=3229
So I tried another one: http://www.linode.com/stackscripts/view/?StackScriptID=3722
which again I amended to run on 12.04 and everything pretty much sailed through smoothly. No errors and I have a fully functioning virtualmin install serving multiple virtual hosts.
This guide was pretty useful: http://aeturnalus.com/software/setting-virtualmin-controlled-ubuntu-12-0...
Thanks for your help and also for your work in putting Webmin/Virtualmin. As soon as I have a few pennies saved I'll definitely be upgrading to the pro version.
Submitted by lupark on Thu, 05/17/2012 - 17:49 Comment #9
Hi, I am working out of a Freebsd server with all applications installed from ports. I am still having this problem with the Virtualmin-Nginx module. All my applications are up to date. I am still getting this same error message:
I already turned the http {...} section into one continuous line. I have verified all configurable options, but still having this problem.
Further more, when I attempt to make changes to the "global network configuration" I get the following error:
If I click on "Mime Types" I get this error:
I am sure these errors are related, but I am not able to figure it out.
Thanks for any help you can provide me.
BTW, thanks for this thing of beauty that is Virtualmin.
Sandra
Submitted by JamieCameron on Sat, 05/05/2018 - 12:17 Comment #11
gutiersa - can you open a separate ticket for this?