• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question Set WordPress plugin new file permissions

We use Autoptimize. The plugin creates .php-files without execute permissions, resulting in 403 errors and a semi-loaded page. What causes the files to be created without the required execute permissions and how can I configure the domain in such a way that PHP-files in the cache directory are created with execute permissions?

I'm assuming there's a umask being set somewhere and I don't know where.
 
Turns out the execution of the files generated by Autoptimize (causing the 403 errors) didn't have to do with file permissions but with Plesk's WordPress Plugin's security measures. The plugin recognises which directory is used by Autoptimize (so the measure works regardless of what you define the AUTOPTIMIZE_CACHE_CHILD_DIR to be).

WordPress → Domain → Security → Disable PHP Execution in cache directories → Revert

What I would like to know is if/how I can enable this setting but override it somehow, since I don't want all of my cache directories to allow execution.
 
Back
Top