Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Varnish installation tutorial

1


Threaded Mode | Print  

 Varnish installation tutorial (17 Replies, Read 32702 times)
renggap
Group: Member
Post Group: Newbie
Posts: 6
Status:
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.
IP: --   

Varnish installation tutorial
renggap
Group: Member
Post Group: Newbie
Posts: 6
Status:
anyone please?
IP: --   

Varnish installation tutorial
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
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

IP: --   

Varnish installation tutorial
Cloud7
Group: Member
Post Group: Newbie
Posts: 7
Status:
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
IP: --   

Varnish installation tutorial
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Check the logs
/usr/local/apps/nginx/var/logs

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

IP: --   

Varnish installation tutorial
Cloud7
Group: Member
Post Group: Newbie
Posts: 7
Status:
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.

IP: --   

Varnish installation tutorial
taufan55
Group: Member
Post Group: Newbie
Posts: 1
Status:
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.
IP: --   

Varnish installation tutorial
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Did you configure Varnish ?

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

IP: --   

Varnish installation tutorial
gurugrv
Group: Member
Post Group: Newbie
Posts: 8
Status:
I am having the exactly same issue, any help would be appreciated.
IP: --   

Varnish installation tutorial
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
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

IP: --   

Varnish installation tutorial
gurugrv
Group: Member
Post Group: Newbie
Posts: 8
Status:
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)
IP: --   

Varnish installation tutorial
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Did you check the Varnish logs ?

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

IP: --   

Varnish installation tutorial
andiklive
Group: Member
Post Group: Working Newbie
Posts: 50
Status:
sam issue here, i need installed apache2 on my vps for ports.conf
thanks

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

IP: --   

Varnish installation tutorial
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
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

IP: --   

Varnish installation tutorial
nitrodesh
Group: Member
Post Group: Newbie
Posts: 5
Status:
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?






IP: --   

« Previous    Next »

Threaded Mode | Print  

1


Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 8:42 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.022