• Resolved sonikas

    (@sonikas)


    Hello,
    In an ECS Fargate cluster configuration, what is the way to implement activate and deactivate functionality for the plugin once it is deployed on a running container.

    What permissions does the plugin need in wp-content/ to create or remove the symbolic links and folders as needed in the activate and deactivate plugin.

    Also, if the wp-config.php file is not writable for security reasons, how does the WP_CACHE config update for the plugin.

    Thank you,
    Sonikas

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sonikas

    Thank you for reaching out and I am happy to assist you with this.
    W3TC needs read/rite permissions to be able to work correctly. This means, writing the .htaccess/nginx.conf, drop-in files in wp-content, write permissions to wp-config.php
    By default the permissions should be as follows:
    755 – Folders
    644 – files.
    As for wp-config.php, you can manually add wp_cache define just below the opening PHP tag:

    /** Enable W3 Total Cache */
    define('WP_CACHE', true); // Added by W3 Total Cache

    I hope this helps!

    Thanks!

    Thread Starter sonikas

    (@sonikas)

    Hi @vmarko ,

    Thank you for your reply. We have a cluster setup with wp-content is not Apache writable for security reasons in the container.

    At deployment following steps are completed
    1. create the drop ins
    2. set WP_CACHE = true in wp-config.php
    3. create folders wp-content/w3tc-config and wp-content/cache which are writable by apache, but parent folder wp-content is not writable by apache for security reasons.

    Is there another recommended way for implementing this plugin?

    Thank you,
    Sonikas

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sonikas

    Thank you for your feedback.
    With that much security, this is what you should do as there is no workaround.
    Just make sure to deploy updated .htaccess once any settings are changed.
    Thanks!

    Thread Starter sonikas

    (@sonikas)

    Thank you for your reply @vmarko!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘w3tc-cache config’ is closed to new replies.