• Hello everyone,
    I am currently trying to get the Nginx-Helper plugin to work, but the Full Purge feature won’t do like I want it to do 😉
    I already contacted the Plesk support, but they said this issue should be better addressed to the plugin developers. So let me explain:

    I am using a clean testing environment, with Ubuntu 20.04 x86_64 (LTS), Plesk Obsidian 18.0.40.1 & nginx-ee (installed from bash script 3.6.7).

    I configured the nginx cache path to store its cache inside “/var/cache/nginx/ramcache”, a tmpfs RAM Space. This path is also configured in wp-config.php for Nginx-Helper.
    Nginx cache files are stored in the domains according subfolder & the cache is working (HIT).

    Purging Individual URLs / Posts does work and the cache file gets deleted.

    Purging the entire cache doesn’t work, no matter which button is used. The Cache-files don’t get deleted. When looking at the log file, it says the following:

    752#752: *47 FastCGI sent in stderr: "PHP message: PHP Warning: is_dir(): open_basedir restriction in effect. File(/var/cache/nginx/ramcache/nginxonly.mywebsite.com_fastcgi/ ) is not within the allowed path(s): (/var/www/vhosts/nginxonly.mywebsite.com/:/tmp/:/var/cache/nginx/ramcache/:/var/cache/nginx/ramcache/nginxonly.mywebsite.com_fastcgi/ ) in /var/www/vhosts/nginxonly.mywebsite.com/httpdocs/wp-content/plugins/nginx-helper/admin/class-purger.php on line 1228" while reading response header from upstream

    But as you can see, the directory IS already included within the open_basedir paths.
    I already modified the ramcache directory via chmod 777 to exclude a rights’ problem. (Just for testing, not for production environment)

    After aksing them, the Plesk support than told me the following:

    We have reproduced this behavior on a test server. Note that the website’s system user does not have access rights to /var/cache directory.

    Currently, the only supported method for flushing nginx cache for a website is the manual one; there is also a feature request on Plesk UserVoice portal to implement this feature in Plesk natively; see https://support.plesk.com/hc/en-us/articles/360014227719

    They have noticed that cache also resides under /var/cache/nginx/ramcache/, which is not the default path to nginxcache for websites.

    You may contact Nginx Helper support for assistance in case it is necessary to apply specific access settings for the plugin to be able to operate, so they provide these settings and you either set these up or contact us for assistance if required regarding the necessary changes.

    Do you know a workaround for this, or did I forget to set up anything?

    Thanks in advance & best regards,
    Simon

    • This topic was modified 2 years, 4 months ago by doomsoul.
    • This topic was modified 2 years, 4 months ago by doomsoul.
  • The topic ‘Full-Purge not working with Plesk & nginx-ee’ is closed to new replies.