Forum Replies Created

Viewing 15 replies - 61 through 75 (of 82 total)
  • Plugin Author Hasan CALISIR

    (@psauxit)

    Hello @tsbega

    The current cache key regex option is restrictive because it expects the $host$request_uri to be returned in a single capture group matches[1]. To improve flexibility and user experience, I will implement an update to version 2.0.9 that will allow users to separate the host and request_uri into two distinct capture groups.

    This enhancement will make it easier for users to parse complex cache keys like $scheme$request_method$host$device$request_uri without having to condense everything into one capture group.

    With v2.0.9 plugin will:

    1. Accept regex patterns that capture the $host in group 1 and the $request_uri in group 2.
    2. Automatically concatenate these two groups internally to form the full URL.

    Please stay tuned for the next update—thank you for your feedback!

    Plugin Author Hasan CALISIR

    (@psauxit)

    This is weird and I can not re-produce the issue on my environment. To resolve the issue, could you please connect with me via email at [email protected]? This will allow me to get the necessary details and assist you directly with accessing your server and WordPress dashboard to troubleshoot the configuration.

    Once I have the required access, I can investigate the issue and provide a solution.

    Looking forward to hearing from you.

    Best regards,

    Plugin Author Hasan CALISIR

    (@psauxit)

    Hello @mrj0b,

    I’ve released version v2.0.8, Please let me know if it resolves the issues you’re facing.

    Best~Hasan

    Plugin Author Hasan CALISIR

    (@psauxit)

    Hello @coldrealms65,

    And I notice in the Status page there is this section:
    FastCGI Cache Keys
    Found Unsupported

    Lists this as a specific unsupported type over and over again:

    $scheme$request_method$host$request_uri$mobile_device_type

    Even though, for this test, my key is verified as the default:

        fastcgi_cache_key "$scheme$request_method$host$request_uri";

    So something is odd….

    The “FastCGI Cache Keys” section on the Status page reflects cache keys detected across all instances on the server, not just the specific WordPress installation you’re currently managing. This means if other sites or configurations on the same server use a different FastCGI cache key format, they will also appear in this section. Same true for Nginx Cache Paths section.

    The Status page aggregates data server-wide, so it lists all FastCGI cache keys it finds, even if they are not relevant to your current WordPress instance. This ensures a comprehensive overview of all detected cache types across your environment.

    Multiple Instances: If you have multiple WordPress instances with Nginx virtual hosts on the same server, each can have different FastCGI cache setups. The Status page aggregates all detected keys from these instances.

    Tip:
    You can safely ignore entries for unsupported keys if they are not relevant to your specific site configuration. For each WordPress instance on the server, ensure you set the corresponding Nginx Cache Path and configure a compatible regex that matches the fastcgi_cache_key used for that instance.

    I will note, that the default test works and shows the cached page, but the dd thing is the “found unsupported” even when things appear to work normally with the default

    As mentioned earlier, the “Found Unsupported” entries are part of the server-wide status check. These entries might reflect configurations from other WordPress instances or Nginx virtual hosts on the same server, each with different FastCGI cache setups. This does not affect the functionality of your current instance if it’s properly configured.

    I ended up deactivating the plugin for now.

    I realized where it was getting the erroneous information, It was reading from another site hosted on my server.
    Executing at a level that can see other information not limited by the php user (most likely due to shell_exec) makes this whole system far far to insecure to be used in its current state so I removed it.

    Have you tested this on a multi-tenent nginx system?

    Sorry to hear that! I understand your concern about security in multi-tenant environments but this depend your actual web server setup.

    Ensuring a secure and efficient multi-tenant environment requires correctly isolating PHP-FPM (PHP process owner or website user) and Webserver user. Ultimately, it’s in the user’s hands and depends on how the web server is configured.

    • Webserver Access Control:
      The webserver user should only have read-only access to files.
    • Isolation Per Instance:
      Run each site under its own PHP-FPM user for complete isolation between WordPress instances.

    Please re-consider to read;
    Plugin Help tab section for What is the proper PHP-FPM Nginx setup?
    Main Development repostitory for Here is the short explanation of proper php-fpm nginx setup

    In the NPP Status tab, there is a check for server permission isolation status to warn about current configuration.
    Permission Isolation (Optional): Isolated

    ❗️About shell_exec

    While I appreciate your feedback, it’s important to note that NPP architecture currently depends on shell_exec for efficiency. Rewriting the same functionality in pure PHP would require significant effort and time, and frankly, creating a PHP-based website crawler or bot is not on my agenda right now, especially considering there are already many plugins available for that purpose. If you have serious concerns about using shell_exec, I would recommend the Nginx Helper plugin, which is incredibly well known and easy to use.

    Best~Hasan

    • This reply was modified 1 year, 4 months ago by Hasan CALISIR. Reason: typo
    • This reply was modified 1 year, 4 months ago by Hasan CALISIR.
    Plugin Author Hasan CALISIR

    (@psauxit)

    Hello @coldrealms65

    I’m glad the initial issue was resolved! I’ll go ahead and mark this topic as resolved now.

    As for the new issue with the regex, I recommend starting a new topic so we can focus on it separately. This way, others facing similar issues can also benefit from the solution.

    For the new regex issue, please follow the steps below and share the results:

    1. Restore your original custom fastcgi_cache_key
    2. Restart both the Nginx and PHP-FPM services.
    3. Restore plugin options to Default.
    4. Preload All cache.
    5. Clear the plugin cache from the “Status” tab, and then share a screenshot of the “Status” tab.
    6. Navigate to your Nginx cache path, and provide the KEY: line value inside one of the cache files. To find your exact KEY: line follow below steps.

    For example I assume your cache path is –> /dev/shm/fastcgi-cache-psauxit-npp/

    cat /dev/shm/fastcgi-cache-psauxit-npp/0/49/19b0a92c9fab36cc6d326b68fd8f0490
    KEY: httpsGETwww.psauxit.com/tag/npp-wordpress/

    This will help in diagnosing the issue further. I look forward to helping you in the new topic!

    Please hide sensetive informations like you website URL!

    Best~Hasan

    • This reply was modified 1 year, 4 months ago by Hasan CALISIR.
    • This reply was modified 1 year, 4 months ago by Hasan CALISIR. Reason: typo
    Plugin Author Hasan CALISIR

    (@psauxit)

    I hope you’re feeling better now!

    I’ve released version v2.0.8 and implemented the approaches and fixes we discussed. I’d greatly appreciate your feedback on this new release before I move forward with version v2.0.9, which will address some urgent minor changes.

    Thanks for your time, and I look forward to your thoughts on the update!

    Best,~Hasan

    Plugin Author Hasan CALISIR

    (@psauxit)

    Hello @coldrealms65

    The error “The plugin does not have a valid header” is likely caused by a corrupt main plugin file in 2.0.7, incorrect line endings (LF vs CRLF), or character encoding issues. To resolve this:

    1. Update to Version 2.0.8: Ensure you’re using the latest version, which fixes this issue.
    2. Deactivate and Reactivate: Try deactivating and reactivating the plugin after the update.
    3. Uninstall and Reinstall: If the issue persists, uninstall and reinstall the plugin to remove any corrupted files.

    This should resolve the problem. If it doesn’t, let me know, and we can explore further.

    Plugin Author Hasan CALISIR

    (@psauxit)

    Hello @mrj0b

    * Undefined constant "SIGTERM" | * Not a valid JSON response

    I’ve released version v2.0.7. Please let me know if it resolves the issues you’re facing. If the issue persists, there may be a conflict with the AMP plugin you’re using.

    Best~Hasan

    Plugin Author Hasan CALISIR

    (@psauxit)

    Thank you !

    I am unable to reproduce the issue on my side, but I strongly suspect that the pcntl extension is not enabled for the PHP version currently in use. If you have multiple PHP versions installed, it’s possible that your system is still pointing to an older version, which could be causing the confusion.

    To check which PHP version is currently active, run the following command:

    which php

    For example, the output might be:

    /usr/bin/php

    Next, you can verify where this php command points to by running:

    ls -al /usr/bin/php

    The output might look something like this:

    /usr/bin/php -> ../lib64/php8.1/bin/php

    This indicates that the php command is currently pointing to a PHP 8.1 installation. However, this doesn’t necessarily mean that PHP 8.1 is the version in use by your web server or CLI.

    Check in use PHP version via and compare:

    ps aux | grep php-fpm

    or oldschool way

    phpinfo.php
    <?php phpinfo(); ?>

    If this is not the case, please let me know to deep dive.

    Best~Hasan

    Plugin Author Hasan CALISIR

    (@psauxit)

    Also could you check, posix extension?

    php -m | grep posix

    That is weird, I will try to re-produce the issue, could you tell me where do you try to Manual Purge? On Advanced tab? Or issue occurs on Auto Purge action?

    Plugin Author Hasan CALISIR

    (@psauxit)

    Hello @mrj0b

    Thank you for your feedback!

    You need Process Control extension in PHP, known as pcntl – NPP depends it for proper functionality.

    Please check extension enabled:

    php -m | grep pcntl

    If extension not enabled please install proper version accordingly to your in use php version and enable the extension.

    For example on Debian for PHP 8.2

    apt install php8.2-pcntl
    systemctl restart php8.2-fpm.service

    Best~Hasan

    Plugin Author Hasan CALISIR

    (@psauxit)

    @mrj0b

    maybe the problem is because i disabled cron job function on my wordpress installation and replaced it with a crontab command with wp-cli that run every 5 minutes, i’ll check it later and tell you the results

    I don’t think that’s the case.

    Simply toggle the Auto Purge option (switch it On/Off) in the NPP settings and try again. If the error reoccurs when only the Auto Purge feature is enabled, then the issue is caused by NPP. In that case, please share the metrics from the Status tab, as well as details on how and where you encountered the ‘Not a valid JSON response‘ error.

    Best~Hasan

    Plugin Author Hasan CALISIR

    (@psauxit)

    Hello @mrj0b

    I released version v2.0.6 that address also the issue you shared. I kindly request your feedback on the new release.

    Best ~Hasan

    Plugin Author Hasan CALISIR

    (@psauxit)

    Hello @mrj0b

    Thank you for your feedback and sorry for my late reply.

    I released version v2.0.5 that points also the issue you shared. I kindly request your feedback on the new release.

    I will be releasing version v2.0.6 soon to address some urgent minor changes, so your feedback before the release would be greatly appreciated.

    Best ~Hasan

    Plugin Author Hasan CALISIR

    (@psauxit)

    Hello @coldrealms65

    I released version 2.0.5 and implemented the approaches and fixes we discussed. I kindly request your feedback on the new release.

    I will be releasing version v2.0.6 soon to address some urgent minor changes, so your feedback before the release would be greatly appreciated.

    Best. ~Hasan

Viewing 15 replies - 61 through 75 (of 82 total)