• Resolved George Liu

    (@eva2000)


    Accidentally posted the question on your github issues tracker at https://github.com/Sucuri/sucuri-wordpress-plugin/issues/25 so reposting here πŸ™‚

    I have an automated installer for wordpress via wp-cli but when i install sucuri-scanner plugin, the data storage directory which would default to /home/nginx/domains/newdomain2.com/public/wp-content/uploads/sucuri doesn’t exist until i log into admin and sucuri dashboard.

    I want to modify the data storage path in /home/nginx/domains/newdomain2.com/public/wp-content/uploads/sucuri/sucuri-settings.php during wordpress unattended auto installation without using a wp-config.php option.

    i.e. for domain newdomain2.com

    ls -lah /home/nginx/domains/newdomain2.com/public/wp-content/uploads/
    2016

    and plugin list via wp-cli

    wp plugin list

    +-----------------+----------+--------+---------+
    | name            | status   | update | version |
    +-----------------+----------+--------+---------+
    | akismet         | inactive | none   | 3.2     |
    | cache-enabler   | active   | none   | 1.1.0   |
    | cdn-enabler     | active   | none   | 1.0.3   |
    | disable-xml-rpc | active   | none   | 1.0.1   |
    | optimus         | active   | none   | 1.4.7   |
    | sucuri-scanner  | active   | none   | 1.8.1   |
    +-----------------+----------+--------+---------+
Viewing 1 replies (of 1 total)
  • yorman

    (@yorman)

    You can trigger the creation of the storage folder by sending a HTTP request to the login page of that website with invalid credentials. This will trigger the execution of the code that logs failed logins and subsequently the creation of the storage folder.

    This works with the current version of the code 1.8.3 but there is a bug that prevent the creation of some (optional) files. This bug was fixed with commit #ccf88ab [1] but this should not affect what you are planning to do with WPCLI.

    [1] https://github.com/Sucuri/sucuri-wordpress-plugin/pull/29/commits/ccf88ab

Viewing 1 replies (of 1 total)

The topic ‘how to trigger the data storage directory creation ?’ is closed to new replies.