Title: Error Installing Plugin: Warning: file_exists():
Last modified: August 22, 2016

---

# Error Installing Plugin: Warning: file_exists():

 *  Resolved [Daniel](https://wordpress.org/support/users/premierdan/)
 * (@premierdan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-installing-plugin-warning-file_exists/)
 * Hi,
    When I try installing this plugin I get this error in the header:
 * Warning: file_exists(): open_basedir restriction in effect. File(/var/www/vhosts/
   DOMAIN.co.uk/httpdocs/wp-content/uploads/sucuri/) is not within the allowed path(
   s): (/home/USERNAME:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/
   php4/lib/php:/tmp) in /home/USERNAME/public_html/wp-content/plugins/sucuri-scanner/
   sucuri.php on line 6031
 * I get an even bigger error when I try deactivating the plugin.
 * How can this be fixed?
 * Cheers
 * [https://wordpress.org/plugins/sucuri-scanner/](https://wordpress.org/plugins/sucuri-scanner/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [yorman](https://wordpress.org/support/users/yorman/)
 * (@yorman)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-installing-plugin-warning-file_exists/#post-5947561)
 * The PHP function _“file\_exists”_ can not be silenced so the only solution is
   to ask your hosting provider why do they configured that server to not allow 
   access to that directory mentioned in the warning.
 * The only thing that I could do from the plugin is to hide the warning, I can 
   not fix anything because that error is not caused by a bug in the code, it is
   caused by a configuration of your server, that is why it shows a warning instead
   of an error.
 * You can also disable the error reporting, which you can do simply setting the_“
   WP\_DEBUG”_ constant to _“false”_, this is located in the main configuration 
   file _“wp-config.php”_.
 *  [yorman](https://wordpress.org/support/users/yorman/)
 * (@yorman)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-installing-plugin-warning-file_exists/#post-5947694)
 * I silenced the warning messages reported by the plugin for unreadable directories,
   the new code will be available in the new version of the plugin, but it is worth
   to mention that this will only hide these warnings because they are not errors.
   To definitely fix these warnings you will have to contact your hosting provider
   and ask them to whitelist that directory path to allow PHP to read files stored
   there.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error Installing Plugin: Warning: file_exists():’ is closed to new replies.

 * ![](https://ps.w.org/sucuri-scanner/assets/icon-256x256.png?rev=2875755)
 * [Sucuri Security - Auditing, Malware Scanner and Security Hardening](https://wordpress.org/plugins/sucuri-scanner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sucuri-scanner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sucuri-scanner/)
 * [Active Topics](https://wordpress.org/support/plugin/sucuri-scanner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sucuri-scanner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sucuri-scanner/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [yorman](https://wordpress.org/support/users/yorman/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/error-installing-plugin-warning-file_exists/#post-5947694)
 * Status: resolved