Learn about Centmin Mod LEMP Stack today
Become a Member

Woocommerce using Varnish, Hitch SSL, Cloudflare, Letsencrypt, NGINX with sockets

Discussion in 'Ecommerce / Shopping cart usage' started by Atrix, Jul 2, 2020.

  1. ahmed

    ahmed Active Member

    361
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    5:31 AM
    these also dosnt solve that
    Code:
    sudo systemctl enable varnish
    sudo systemctl enable hitch


     
  2. ahmed

    ahmed Active Member

    361
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    5:31 AM
    this is the reason

    Code:
    22:59][root@centmin-varnish aaaaa]# systemctl --failed
      UNIT          LOAD   ACTIVE SUB    DESCRIPTION
    ● hitch.service loaded failed failed Network proxy that terminates TLS/SSL connections
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    1 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.
     
  3. ahmed

    ahmed Active Member

    361
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    5:31 AM
    for now I guess u need to put ~/restartservices.sh on boot till u fix the socket issue
     
  4. ahmed

    ahmed Active Member

    361
    49
    28
    Feb 21, 2017
    Ratings:
    +63
    Local Time:
    5:31 AM
  5. Atrix

    Atrix Member

    37
    13
    8
    Oct 7, 2018
    Ratings:
    +38
    Local Time:
    8:31 PM
    1.15.3
    MariaDB 10.1.36
    Thanks a lot ahmed I'll go through and change the guide with your great suggestions :)
     
  6. Atrix

    Atrix Member

    37
    13
    8
    Oct 7, 2018
    Ratings:
    +38
    Local Time:
    8:31 PM
    1.15.3
    MariaDB 10.1.36
    I've been sooo busy (overtime in this week already and it's only weds night). It doesn't look like it will let up soon. I will say this setup was nice but I ended up ditching it for litespeed. It's just faster, the caching just works without me editing it, I can use .htaccess files again, there's a digital ocean image for it, there's a cdn integration you can pay for that does all the modern things you want to do like critical css and converting images to webp format. It's cut my work a lot I needed to do and the clients are happy cuz the backend is so fast even with 300k products in the store (thought I had to use some scalability plugins and tweak a few searches with custom plugins).

    I see that litespeed is on the centminmod todo list. Really looking forward to it. I love centminmods tools, the php compile and version select for instance is the best I've ever seen. So hope the litespeed one makes more headway in the coming year. I'll be supporting centminmod still with hopes that comes to fruition (now a proud patreon supporter). Happy holidays to everyone :)
     
  7. tininho

    tininho Active Member

    182
    44
    28
    May 22, 2019
    Ratings:
    +135
    Local Time:
    5:31 AM
    Nice, well played. With this many SKUs in database, are you just using Wordpress real cronjob to rely on updates pushed for nightly jobs with WPintense plugins? Or was that (=cronjob problems with Woocommerce) only issue for me? If you solved it with wordpress real cron, did you go with 2/5 minutes intervalls for wpcron, or how are you approaching this, if you don't mind me asking?
     
  8. Atrix

    Atrix Member

    37
    13
    8
    Oct 7, 2018
    Ratings:
    +38
    Local Time:
    8:31 PM
    1.15.3
    MariaDB 10.1.36
    Thanks :) I leave cron enabled but also run an sh script every 2 minutes
    Code:
    cd /var/www/mywebsite.com
    /usr/local/bin/wp --due-now cron event run
    
    This makes it unlikely one of the sales team will be hit with it. It requires installing wp-cli which is installed by default for you in centminmod but idr if the digital ocean droplet for litespeed had it.

    I do have some of the wp intense settings enabled, but not any that mess with pagination or is breaking in any other way to user experience.

    Edit: I setup another user with www-data group to run the script and it seems to work well, so I can avoid using root.
     
    Last edited: Jan 8, 2021
  9. vultranet

    vultranet New Member

    12
    4
    3
    Mar 25, 2020
    Spain
    Ratings:
    +6
    Local Time:
    4:31 AM
    1.19
    MariaDB 10.4
    Very good post, thanks for share it.