Jose Brother!

When I do all above configurations along with commenting the include php, worpdress site went to defualt setting of php. I increased the size but nothing happen. Please tell me without ssl site where to put code (what is meant by server field). I put above 4 rows in my nginx.conf, does it safe? In step 6 we create cache location is incorrect? Why my site bypass show instead of hit

aaPanel_Jose
When i paste the set $skip_cache 0 ;....... code php went to defualt? When i remove the code, site homepage went change and it start the downloading. The downloaded file contains:
<?php
/**

  • Front to the WordPress application. This file doesn't do anything, but loads
  • wp-blog-header.php which does and tells WordPress to load the theme.
    *
  • @package WordPress
    */

/**

  • Tells WordPress to load the WordPress theme and output it.
    *
  • @var bool
    */
    define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require DIR . '/wp-blog-header.php';

My environment is:
Nginx 1.17
Php 7.4

    aaPanel_Jose
    When I do all above configurations along with commenting the include php, worpdress site went to defualt setting of php. I increased the size but nothing happen. Please tell me without ssl site where to put code (what is meant by server field). I put above 4 rows in my nginx.conf, does it safe? In step 6 we create cache location is incorrect? Why my site bypass show instead of hit

    aaPanel_Jose
    When I do all above configurations along with commenting the include php, worpdress site went to defualt setting of php. I increased the size but nothing happen. Please tell me without ssl site where to put code (what is meant by server field). I put above 4 rows in my nginx.conf, does it safe? In step 6 we create cache location is incorrect? Why my site bypass show instead of hit

      kamranhanif496

      1. The first 4 lines of files added by nginx are fastcgi cache configuration, they are safe
      2. Please do not add these configurations to nginx.conf, add them to the website's configuration file
      3. Even if there is no SSL, there will be # SSL-END comments in the website configuration
      a month later

      Hello friends. After did all the configuration I got 502 Bad Gateway error at my website with WP. How to solve this?

        How's this compared to WP Rocket for Nginx + https://github.com/SatelliteWP/rocket-nginx

          a month later

          aaPanel_Jose But I put these into Nginx main config file.
          fastcgi_cache_key "$scheme$request_method$host$request_uri";
          fastcgi_cache_path /dev/shm/fastcgi-cache levels=1:2 keys_zone=WORDPRESS:100m inactive=60m;
          fastcgi_cache_use_stale error timeout invalid_header http_500;
          fastcgi_ignore_headers Cache-Control Expires Set-Cookie;

          Now work for me

            @aaPanel_Jose @szone
            I'm kinda lost with step 5, I skipped this and my site works fine.

            I'm just curious how to locate this step 5? Is it a wp plugin or nginx settings?
            Also how do I make the purging button?

            Btw, i'm using this with Litespeed Cache plugin for wordpress. would that be okay?

            Thanks!

              20 days later
              • [deleted]

              I have made according to the documentation steps:

              ERROR:
              nginx: [emerg] "fastcgi_cache" zone "WORDPRESS" is unknown in /www/server/nginx/conf/nginx.conf:88
              nginx: configuration file /www/server/nginx/conf/nginx.conf test failed

              After adding the entry bellow #SSL END the microcaching.

              I would like to see something like Engintron has made for cpanel, simple/ fast and reliable.

              Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com