The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Varnish and gcc access

Discussion in 'Workarounds and Optimization' started by AnthonyFrancis, Apr 28, 2016.

  1. AnthonyFrancis

    PartnerNOC

    Joined:
    Sep 7, 2013
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Denver Colorado
    cPanel Access Level:
    DataCenter Provider
    Hello All,

    I have a cPanel instance where the client wants to run varnish, it is installed, running as varnish, we added varnish to the compiler group but it's still gets access denied for gcc. I even se the config to run as compiler as it's primary group and still access is denied, we have to change the permissions of /usr/bin/ld.bfd /usr/bin/gcc with chmod o+x in order to get it to run. So it's not properly setting it's GID, which is less than optimal. I just can't figure out why. I am hoping that someone has had experience with this and can point me in the right direction.

    [~]# varnishd -V
    varnishd (varnish-4.0.3 revision b8c4a34)
    Copyright (c) 2006 Verdens Gang AS
    Copyright (c) 2006-2014 Varnish Software AS

    [~]# uname -a
    Linux hostname-omitted 3.10.0-327.10.1.el7.x86_64 #1 SMP Tue Feb 16 17:03:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
     
  2. AnthonyFrancis

    PartnerNOC

    Joined:
    Sep 7, 2013
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Denver Colorado
    cPanel Access Level:
    DataCenter Provider
    My inability to edit this post in order to fix typo's has taught me a valuable lesson about proofreading before submitting.
     
  3. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    TBH, I've faced the same issue and did 755 on gcc file, but I was working on a dedicated instance for just varnish which is nice :-D
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    We do have an existing feature request that's open for Varnish support:

    Support Varnish

    While it won't help you to troubleshoot this issue, it's a good idea to vote for features like this if you feel official support is beneficial. In addition, I do see a plugin offered for Varnish at:

    cPanel App Catalog :: Varnish + Nginx for cPanel WHM

    You could send a message to the plugin developer to see if this is an issue that's addressed in their plugin.

    Thank you.
     
  5. AnthonyFrancis

    PartnerNOC

    Joined:
    Sep 7, 2013
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Denver Colorado
    cPanel Access Level:
    DataCenter Provider
    You will find that cPanel automatically changes these permissions and you have to keep changing them back.
     
  6. AnthonyFrancis

    PartnerNOC

    Joined:
    Sep 7, 2013
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Denver Colorado
    cPanel Access Level:
    DataCenter Provider
    Thanks for that, unfortunately this client thinks that $3 a month for an extra GB of RAM on their server is an insurmountable financial burden. So plugins that cost money will not work. I am likely going to modify the service startup script so that it changes permissions on the relevant files first.
     
    cPanelMichael likes this.
  7. Mostafa Hussein

    Mostafa Hussein Registered

    Joined:
    Sep 27, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    You can chattr them to keep the permission as you want for example:
    Code:
    chmod +x /usr/bin/gcc; chattr +i /usr/bin/gcc
    then cpanel wont be able to revert it back ;)
     
Loading...

Share This Page