Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Dev

What's the VCL compile directory when starting varnishd?

 

 

Varnish dev RSS feed   Index | Next | Previous | View Threaded


nbubingo at gmail

Mar 19, 2012, 1:15 AM

Post #1 of 2 (465 views)
Permalink
What's the VCL compile directory when starting varnishd?

Hi folks,

In our company, all the packets have its specific install directory
and account. We use the account named 'admin' to start the varnishd
daemon. But when I typed the start command. It shows the error below:
#####################################################
bash-3.2$ /opt/company/install/varnish/sbin/varnishd -P
/home/admin/varnish/pid/varnish.pid -a :8888 -f
/home/admin/varnish/conf/varnish.vcl -n /home/admin/varnish/cache -T
0.0.0.0:2000 -t 120 -w 5,1000,120 -u admin -g admin
Message from C-compiler:
cc1: error: ./vcl.RBz_GFcY.c: Permission denied
Running C-compiler failed, exit 1

VCL compilation failed
#######################################################

I want to know the VCL compile directory and then I can specify the
file permission.

Thanks.

_______________________________________________
varnish-dev mailing list
varnish-dev [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev


nbubingo at gmail

Mar 19, 2012, 2:51 AM

Post #2 of 2 (453 views)
Permalink
Re: What's the VCL compile directory when starting varnishd? [In reply to]

Oh, I have found the reason. The file owner of 'varnishd' is root and
set with setuid. The account of admin can start the varnishd, but It
can't access the C source file created by varnishd.

2012/3/19 Ҧΰ±ó <nbubingo [at] gmail>:
> Hi folks,
>
> In our company, all the packets have its specific install directory
> and account. We use the account named 'admin' to start the varnishd
> daemon. But when I typed the start command. It shows the error below:
> #####################################################
> bash-3.2$ /opt/company/install/varnish/sbin/varnishd -P
> /home/admin/varnish/pid/varnish.pid -a :8888 -f
> /home/admin/varnish/conf/varnish.vcl -n /home/admin/varnish/cache -T
> 0.0.0.0:2000 -t 120 -w 5,1000,120 -u admin -g admin
> Message from C-compiler:
> cc1: error: ./vcl.RBz_GFcY.c: Permission denied
> Running C-compiler failed, exit 1
>
> VCL compilation failed
> #######################################################
>
> I want to know the VCL compile directory and then I can specify the
> file permission.
>
> Thanks.

_______________________________________________
varnish-dev mailing list
varnish-dev [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Varnish dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.