Support » Plugin: Sucuri Security - Auditing, Malware Scanner and Security Hardening » Sucuri on IIS – open_basedir restriction in effect

  • Resolved horizonit

    (@horizonit)


    Hi,

    I’ve been using Sucuri on my sites for a a few months, and love the functions it gives.
    But on my Windows IIS server, when I try display the Sucuri dashboard I get:
    PHP Warning: realpath(): open_basedir restriction in effect. File(D:\Plesk\VHOSTS\domain.com) is not within the allowed path(s): (D:\Plesk\VHOSTS\domain.com\httpdocs;c:\windows\temp\;D:\Plesk\VHOSTS\domain.com\) in D:\Plesk\VHOSTS\domain.com\httpdocs\wp-content\plugins\sucuri-scanner\sucuri.php on line 1531

    Sucuri is trying to access the folder above the base for the site, which is httpdocs. As you can see I’ve added the upper folder to the allowed list, but that has not made a difference.

    I have the latest versions of both WP and Sucuri.
    This is occurring on a new install and on a site that was previously fine.

    Any ideas?

    Cheers

    Paul

    https://wordpress.org/plugins/sucuri-scanner/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The PHP function “realpath” is used to retrieve the canonicalized string representing the real path of a directory or file, this is, if the path queries is a symbolic link or a reverse reference this function will resolve the string to its real location. It may occur that some file systems require a strict specification of the permissions over the target of the function, that is why you are seeing this error message.

    Fixed with changeset 1091345 [1], you can download the development version of the plugin [2] and the errors will disappear. You may also try to delete the last character (the last slash) from the directory that you just allowed.

    [1] https://downloads.wordpress.org/plugin/sucuri-scanner.zip
    [2] https://plugins.trac.wordpress.org/changeset/1091345

    Thanks for that, the updated version is now running ok!!

    Cheers

    Paul

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sucuri on IIS – open_basedir restriction in effect’ is closed to new replies.