Support » Plugin: Sucuri Security - Auditing, Malware Scanner and Security Hardening » How can I reset the sucuri folder location?

  • Resolved sarumbear

    (@sarumbear)


    I have moved a site and the file paths have changed. Sucuri still writes to the old path. How can I reset that?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi sarumbear,

    Have you checked the permissions of the new /wp-content/uploads/sucuri folder? Is it writable?

    Kind regards,
    Eve

    Yes, it is. Other plugins have created their own folders.

    Hi sarumbear,

    Could you check the /wp-content/uploads/sucuri (new location) folder permissions? What is the value? I’m not sure what paths the other plugins use.

    The plugin shouldn’t need any manual configuration for directory changes. Did the URL change?

    Kind regards,
    Eve

    755

    Yes, as I said on my post above, the website is moved and the paths has changed. Sucuri settings show the old path. I want to reset/change the path.

    Hi sarumbear,

    By default, all the plugin data is stored in the files in that directory /wp-content/uploads/sucuri. If the directory and files are writable, you shouldn’t need to update the path manually.

    It is possible to change the location of the Sucuri data storage path by defining a constant in the ‘wp-config.php’ file named “SUCURI_DATA_STORAGE” with the absolute path to the new directory.

    Thanks,
    Eve

    I fail to explain the issue it seems.

    The Sucuri is installed on the following folder:

    /var/www/vhosts/xxx.com/httpdocs/wp/wp-content/plugins/sucuri

    However, its settings show and it writes data to:

    /var/www/vhosts/xxx.com/httpdocs/xxx_v1/wp/wp-content/uploads/sucuri

    Because my website was at:

    /var/www/vhosts/xxx.com/httpdocs/xxx_v1/wp/

    But now on:

    /var/www/vhosts/xxx.com/httpdocs/wp

    I need to tell Sucuri to write to its standard location, which should be:

    /var/www/vhosts/xxx.com/httpdocs/wp/wp-content/uploads/sucuri

    • This reply was modified 2 years, 5 months ago by  sarumbear.

    You will find the answer right here

    open the file “sucuri-settings.php”, which you will find here:

    ROOT/wp-content/uploads/sucuri/sucuri-settings.php

    and just change the folder location

    <?php exit(0); ?>
    {“sucuriscan_dns_lookups”:”enabled”,”sucuriscan_datastore_path”:”NEW/LOCATION

    PS: ever “\/” stands for a / slash

    Thank you! It worked.

    I had hoped Reset Settings would have worked but it did not. Maybe something for the plugin author to consider?

    Thank you, again.

    Thank you @infoakismet2016 for explaining the solution.

    Thanks @sarumbear for the bug report, I will add new code to consider this case when the directory is moved after the settings are already in place. This patch will be merged into the main code and released with the next version of the plugin.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How can I reset the sucuri folder location?’ is closed to new replies.