ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Massive speed increase when switching WordPress from apache to nginx

    IT Discussion
    nginx apache
    5
    14
    985
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IRJI
      IRJ
      last edited by

      My website had a massive performance increase when I moved from apache to nginx. I also decided to handle caching myself using nginx instead of doing cloud flare. What a massive performance increase.

      I would recommend anyone who has a WordPress site to try test nginx and nginx caching.

      1 Reply Last reply Reply Quote 4
      • stacksofplatesS
        stacksofplates
        last edited by

        I've always found NGINX to be much lighter weight and performant than Apache.

        IRJI 1 Reply Last reply Reply Quote 1
        • IRJI
          IRJ @stacksofplates
          last edited by

          @stacksofplates said in Massive speed increase when switching WordPress from apache to nginx:

          I've always found NGINX to be much lighter weight and performant than Apache.

          My website is ultra fast now. https://cloudsecuritylife.com

          Almost instant loading

          scottalanmillerS 1 Reply Last reply Reply Quote 1
          • IRJI
            IRJ
            last edited by

            I also should mention that I used yui-compressor on js files.

            1 Reply Last reply Reply Quote 1
            • scottalanmillerS
              scottalanmiller @IRJ
              last edited by

              @IRJ said in Massive speed increase when switching WordPress from apache to nginx:

              @stacksofplates said in Massive speed increase when switching WordPress from apache to nginx:

              I've always found NGINX to be much lighter weight and performant than Apache.

              My website is ultra fast now. https://cloudsecuritylife.com

              Almost instant loading

              That does load fast!

              IRJI 1 Reply Last reply Reply Quote 1
              • IRJI
                IRJ @scottalanmiller
                last edited by

                @scottalanmiller said in Massive speed increase when switching WordPress from apache to nginx:

                @IRJ said in Massive speed increase when switching WordPress from apache to nginx:

                @stacksofplates said in Massive speed increase when switching WordPress from apache to nginx:

                I've always found NGINX to be much lighter weight and performant than Apache.

                My website is ultra fast now. https://cloudsecuritylife.com

                Almost instant loading

                That does load fast!

                I went from about 3-4 seconds load time to about 700ms in total. Nginx and nginx caching is most of the difference, but yui-compressor on all the js files helped some, too!

                scottalanmillerS 1 Reply Last reply Reply Quote 1
                • scottalanmillerS
                  scottalanmiller @IRJ
                  last edited by

                  @IRJ said in Massive speed increase when switching WordPress from apache to nginx:

                  @scottalanmiller said in Massive speed increase when switching WordPress from apache to nginx:

                  @IRJ said in Massive speed increase when switching WordPress from apache to nginx:

                  @stacksofplates said in Massive speed increase when switching WordPress from apache to nginx:

                  I've always found NGINX to be much lighter weight and performant than Apache.

                  My website is ultra fast now. https://cloudsecuritylife.com

                  Almost instant loading

                  That does load fast!

                  I went from about 3-4 seconds load time to about 700ms in total. Nginx and nginx caching is most of the difference, but yui-compressor on all the js files helped some, too!

                  Any reason that you are avoiding the CloudFlare cache? Not finding it as fast as Nginx' own?

                  IRJI 1 Reply Last reply Reply Quote 1
                  • IRJI
                    IRJ @scottalanmiller
                    last edited by

                    @scottalanmiller said in Massive speed increase when switching WordPress from apache to nginx:

                    @IRJ said in Massive speed increase when switching WordPress from apache to nginx:

                    @scottalanmiller said in Massive speed increase when switching WordPress from apache to nginx:

                    @IRJ said in Massive speed increase when switching WordPress from apache to nginx:

                    @stacksofplates said in Massive speed increase when switching WordPress from apache to nginx:

                    I've always found NGINX to be much lighter weight and performant than Apache.

                    My website is ultra fast now. https://cloudsecuritylife.com

                    Almost instant loading

                    That does load fast!

                    I went from about 3-4 seconds load time to about 700ms in total. Nginx and nginx caching is most of the difference, but yui-compressor on all the js files helped some, too!

                    Any reason that you are avoiding the CloudFlare cache? Not finding it as fast as Nginx' own?

                    I really wanted to do everything server side and be as lean as possible. I wanted zero plugins related to performance on my WP site. I thought it would be a good idea to try nginx caching as I could always route back through cloudflare. Once turned on and then running yui-compressor on my /var/www/html directory, the performance gains were unreal.

                    scottalanmillerS 1 2 Replies Last reply Reply Quote 2
                    • scottalanmillerS
                      scottalanmiller @IRJ
                      last edited by

                      @IRJ said in Massive speed increase when switching WordPress from apache to nginx:

                      @scottalanmiller said in Massive speed increase when switching WordPress from apache to nginx:

                      @IRJ said in Massive speed increase when switching WordPress from apache to nginx:

                      @scottalanmiller said in Massive speed increase when switching WordPress from apache to nginx:

                      @IRJ said in Massive speed increase when switching WordPress from apache to nginx:

                      @stacksofplates said in Massive speed increase when switching WordPress from apache to nginx:

                      I've always found NGINX to be much lighter weight and performant than Apache.

                      My website is ultra fast now. https://cloudsecuritylife.com

                      Almost instant loading

                      That does load fast!

                      I went from about 3-4 seconds load time to about 700ms in total. Nginx and nginx caching is most of the difference, but yui-compressor on all the js files helped some, too!

                      Any reason that you are avoiding the CloudFlare cache? Not finding it as fast as Nginx' own?

                      I really wanted to do everything server side and be as lean as possible. I wanted zero plugins related to performance on my WP site. I thought it would be a good idea to try nginx caching as I could always route back through cloudflare. Once turned on and then running yui-compressor on my /var/www/html directory, the performance gains were unreal.

                      Okay, so not really avoiding it, just not using it right now.

                      1 Reply Last reply Reply Quote 0
                      • ObsolesceO
                        Obsolesce
                        last edited by

                        Is it ONLY a change to Nginx, or was caching added, new DB, updated Lamp stack, etc?

                        IRJI 1 Reply Last reply Reply Quote 0
                        • IRJI
                          IRJ @Obsolesce
                          last edited by

                          @Obsolesce said in Massive speed increase when switching WordPress from apache to nginx:

                          Is it ONLY a change to Nginx, or was caching added, new DB, updated Lamp stack, etc?

                          3 changes as stated above:
                          Nginx
                          Nginx caching
                          Javascript compression on server side

                          I was using cloudflare previously and they supposedly minify js and css along with their CDN. I really wasnt expecting a performance increase.

                          Oh btw thanks for the decrappifer script on your blog. I ran that against my win10 vm and it helped alot.

                          ObsolesceO 2 Replies Last reply Reply Quote 0
                          • ObsolesceO
                            Obsolesce @IRJ
                            last edited by

                            @IRJ said in Massive speed increase when switching WordPress from apache to nginx:

                            3 changes as stated above:
                            Nginx
                            Nginx caching
                            Javascript compression on server side

                            Ah, yeah I posted before I read. It's just a PITA on mobile.

                            1 Reply Last reply Reply Quote 0
                            • ObsolesceO
                              Obsolesce @IRJ
                              last edited by

                              @IRJ said in Massive speed increase when switching WordPress from apache to nginx:

                              Oh btw thanks for the decrappifer script on your blog. I ran that against my win10 vm and it helped alot.

                              Cool, I'm glad it helped 😄

                              1 Reply Last reply Reply Quote 0
                              • 1
                                1337 @IRJ
                                last edited by 1337

                                @IRJ said in Massive speed increase when switching WordPress from apache to nginx:

                                I really wanted to do everything server side and be as lean as possible. I wanted zero plugins related to performance on my WP site.

                                Lean WP, that's an oxymoron if anything 🙂

                                I've heard before that some sites are slower with cloudflare CDN compared to going straight to the site. Are you using http/2 as well?

                                Most likely in this case, the switch to nginx from apache itself didn't make anything noticeably faster but the caching and compression did.

                                1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post