Want more timely Centmin Mod News Updates?
Become a Member

Installing Varnish Cache ?

Discussion in 'Other Centmin Mod Installed software' started by Talia Olga, Sep 29, 2014.

  1. eva2000

    eva2000 Administrator Staff Member

    44,684
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,792
    Local Time:
    5:19 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    maybe grab your ubuntu Varnish config file and compare it with CentOS one to see where it differs so you can get a better understanding

    running centmin.sh menu option 3 is all that is required as per Domains - Domain name DNS setup on local NSD server | Centmin Mod Community
    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.07 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu                 
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Exit
    --------------------------------------------------------
    Enter option [ 1 - 22 ] 

     
  2. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    12:19 PM
    1.7.5
    5.x.x
    oh! i no
    i just wanna configure nsd
    all others purge:p
     
  3. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    12:19 PM
    1.7.5
    5.x.x
    hey
    in my country 1 budlight is $2
    if i send buy you a bear
    can you send me the config of vhost.conf and domain.conf ??
     
  4. eva2000

    eva2000 Administrator Staff Member

    44,684
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,792
    Local Time:
    5:19 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Centmin Mod is open source you're free to use the code centminmod/centminmod ยท GitHub
    FYI, for my private consult clients I usually charge $1000s for Varnish Cache setup and configuration :)

    you have everything you need in this thread i.e. post 8 and post 34
     
  5. rdan

    rdan Well-Known Member

    4,959
    1,182
    113
    May 25, 2014
    Ratings:
    +1,794
    Local Time:
    3:19 AM
    Mainline
    10.2
    Nah That's 4 to 5 months to invest for me :(
     
  6. eva2000

    eva2000 Administrator Staff Member

    44,684
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,792
    Local Time:
    5:19 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yeah my time is money hence folks are getting alot of value from what I already do with Centmin Mod ;) :)
     
  7. rdan

    rdan Well-Known Member

    4,959
    1,182
    113
    May 25, 2014
    Ratings:
    +1,794
    Local Time:
    3:19 AM
    Mainline
    10.2
    Yeah you're absolutely right.
    But that $$$$ alone I can already buy a decent Motorcycle with that :D
     
  8. eva2000

    eva2000 Administrator Staff Member

    44,684
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,792
    Local Time:
    5:19 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    that's why I said to @Talia Olga that he/she should try to do it himself after all Centmin Mod is free + Varnish Cache is free :)
     
  9. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    12:19 PM
    1.7.5
    5.x.x
    oh, i was install varnish
    now how i will completely purge varnish??
    remove??
    uninstall??
     
  10. eva2000

    eva2000 Administrator Staff Member

    44,684
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,792
    Local Time:
    5:19 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yum remove command
    Code:
    yum remove varnish --enablerepo=varnish-3.0
     
  11. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    12:19 PM
    1.7.5
    5.x.x
    in ubuntu to finish the complete uninstall i use
    apt-get purge {pack}
    apt-get autoremove
    apt-get autoclean

    is there anything like in centos??
     
  12. eva2000

    eva2000 Administrator Staff Member

    44,684
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,792
    Local Time:
    5:19 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  13. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    12:19 PM
    1.7.5
    5.x.x
    i wanna buy your service. just to setup varnish with nginx
    how much you charge per hour??
    it may be needs 5 minutes for you
     
  14. eva2000

    eva2000 Administrator Staff Member

    44,684
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,792
    Local Time:
    5:19 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Unfortunately, not taking on new clients right now, my current paid client waiting list is a few weeks long
     
  15. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    12:19 PM
    1.7.5
    5.x.x
    listen man,
    you made a custom script and custom everything
    am not like you have to customize all of the config
    and am totally noob in centos
    i will not tell you like your other's customer's hey can you please manage my server until you dead??
    am like , i know the equation but you have to just show me how you config varnish infront of nginx.
    i know i almost done but there is some small prob ,
    it might be symlink or something
    if it was ubuntu never ever ask you for help!!
     
  16. eva2000

    eva2000 Administrator Staff Member

    44,684
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,792
    Local Time:
    5:19 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    @Talia Olga I understand your frustration however users who choose to use Centmin Mod, there would be an implied premise and assumption that you'd be familiar with the basics of the OS environment you'd using it on - CentOS. Setting up Varnish via official YUM repo and Nginx as backend is the same on any CentOS regardless of whether Centmin Mod Nginx is in play as outlined at Installing Varnish Cache ? | Centmin Mod Community It would be the same standard way on any CentOS Varnish Cache using server with a backend Nginx needed configuring. So Centmin Mod adds the Varnish Cache Yum repo only and assumes the end user knows the CentOS way for configuring Varnish Cache and it's Nginx backends - this part I do not provide support for.

    I don't use Ubuntu but doing Google search led me to How To Install Wordpress, Nginx, PHP, and Varnish on Ubuntu 12.04 | DigitalOcean and those steps and theory behind them are exactly the same for CentOS Varnish Cache and Nginx backend. There are no differences to the first 3 steps I outlined above besides location of files i.e. Ubuntu /etc/default/varnish vs CentOS /etc/sysconfig/varnish and location of Nginx vhosts. That DO article is missing step 4 for proper real ip detection though.
     
  17. Talia Olga

    Talia Olga Member

    40
    0
    6
    Sep 28, 2014
    Ratings:
    +0
    Local Time:
    12:19 PM
    1.7.5
    5.x.x
    hey man,
    if i wanna add a bash script for crone such as sqlbackup.sh and it will run every hour
    so what i need to do??
    i use crontab -e in ubuntu, but in centos it's fucked up!!
    pls just give me the command
     
  18. eva2000

    eva2000 Administrator Staff Member

    44,684
    10,193
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,792
    Local Time:
    5:19 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    it's same command

    crontab -e

    nothing changed just Centmin Mod sets nano as default text editor instead of vi. Nano linux text editor you can read up more about nano here and here