Softaculous


Topic : Varnish installation tutorial


1

Posted By: renggap on July 19, 2014, 7:52 am
Hello,

Can you please provide a tutorial about Varnish in webuzo?
I've installed varnish and varnish module from Apps menu, but it is not working. It is always in red (stopped) in webuzo Services list.

Tried service varnish restart from ssh, and the output is:

PHP Code

 [root@server1 ~]# service varnish restart
Stopping varnishdvarnishd stopped
Starting varnishd
Parameter errors:
Unknown user(attempting to set param user to varnish)
Unknown group(attempting to set param group to varnish



Please help.

Posted By: renggap on July 20, 2014, 2:56 am | Post: 1
anyone please?

Posted By: valley on July 21, 2014, 4:25 am | Post: 2
You will have to configure Varnish to work

Location to configuration dir
/usr/local/apps/varnish/etc


-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter


Posted By: Cloud7 on August 19, 2014, 10:04 pm | Post: 3
Has this ever been solved or is it broken by design?

I tried to modify the /usr/local/apps/nginx/etc/conf.d/webuzoVH.conf
/usr/local/apps/varnish/etc/sysconfig/varnish and
/usr/local/apps/varnish/etc/varnish/default.vcl but no joy.
Something important is missing and I cant find anything on google too.

I used this as a base to get it going.
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-nginx-php-and-varnish-on-ubuntu-12-04

Posted By: valley on August 20, 2014, 6:09 am | Post: 4
Check the logs
/usr/local/apps/nginx/var/logs

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter


Posted By: Cloud7 on August 20, 2014, 6:26 am | Post: 5
Euh nope.

varnish generally does not log anyway unless specially configured.
in this case varnish doesn't start at all so therefore it doesn't log anything.

I'm monitoring the logs with splunk and I can see and parse every log and there is no mention anywhere of varnish.

The Error when starting is

# service varnish restart
Stopping varnishd: varnishd stopped
Starting varnishd: Parameter errors:
Unknown user(attempting to set param user to varnish)
Unknown group(attempting to set param group to varnish)

This must be something specific to webuzo cause I was able to manually install nginx and varnish on a VPS without any issue.


Posted By: taufan55 on September 28, 2014, 9:51 pm | Post: 6
Having same issue as above
No error log on both nginx and varnish
Edited same files as he did, no luck.
Looking forward for this.

Posted By: valley on September 29, 2014, 6:01 am | Post: 7
Did you configure Varnish ?

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter


Posted By: gurugrv on October 7, 2014, 11:59 pm | Post: 8
I am having the exactly same issue, any help would be appreciated.

Posted By: valley on October 8, 2014, 10:04 am | Post: 9
Quote From : gurugrv October 7, 2014, 11:59 pm
I am having the exactly same issue, any help would be appreciated.


You will have to configure Varnish to get it running.


-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter


Posted By: gurugrv on October 8, 2014, 10:19 am | Post: 10
Quote From : valley October 8, 2014, 10:04 am
Quote From : gurugrv October 7, 2014, 11:59 pm
I am having the exactly same issue, any help would be appreciated.


You will have to configure Varnish to get it running.


I have installed and configured it accordingly.  But the following error prevents it from starting. By the way what configuration options are you trying to suggest ?

[root@server1 ~]# service varnish restart
Stopping varnishd: varnishd stopped
Starting varnishd: Parameter errors:
Unknown user(attempting to set param user to varnish)
Unknown group(attempting to set param group to varnish)

Posted By: valley on October 13, 2014, 7:52 am | Post: 11
Did you check the Varnish logs ?

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter


Posted By: andiklive on October 14, 2014, 3:19 am | Post: 12
sam issue here, i need installed apache2 on my vps for ports.conf
thanks

-----------------------
Get Free $50 VULTR Cloud Servers Credit


Posted By: valley on October 14, 2014, 9:27 am | Post: 13
Quote From : andiklive October 14, 2014, 3:19 am
sam issue here, i need installed apache2 on my vps for ports.conf
thanks


Sir did you check the logs ?


-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter


Posted By: nitrodesh on October 28, 2014, 10:51 am | Post: 14
you may check,
/usr/local/apps/varnish/etc/sysconfig/varnish

under alternative 2, take a look for this line
-u varnish -g varnish \

i change to
-u varnish -g yourgroupname \

then add varnish user to group
useradd -G yourgroupname varnish

run
service varnish restart

Varnish started without error...
but my site down, server up.

i change to default (listen 80)
/usr/local/apps/apache/etc/httpd.conf

my site up, server up, varnish not working.
////////////////////////////////////////////////////////////////////////

For information:
in /usr/local/apps/varnish/etc/varnish/default.vcl

backend default {
    .host = "127.0.0.1";
    .port = "8080";
}

in /usr/local/apps/varnish/etc/sysconfig/varnish

DAEMON_OPTS="-a :80 \
            -T localhost:6082 \
            -f /usr/local/apps/varnish/etc/varnish/default.vcl \
            -u varnish -g varnish \
            -S /usr/local/apps/varnish/etc/varnish/secret \
            -s file,/usr/local/apps/varnish/var/lib/varnish/varnish_storage.bin,1G"


in /usr/local/apps/apache/etc/httpd.conf
listen 127.0.0.1:8080

Any idea?







Powered By AEF 1.0.8 © 2007-2008 Electron Inc.