Title: [Plugin: P3 (Plugin Performance Profiler)] open_basedir problems?
Last modified: August 20, 2016

---

# [Plugin: P3 (Plugin Performance Profiler)] open_basedir problems?

 *  Resolved [ablank](https://wordpress.org/support/users/ablank/)
 * (@ablank)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-open_basedir-problems/)
 * Hi,
 * When I activate, the plugin p3-profiler, then I get the following warnings:
 *     ```
       Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/domain.com/subdomains/reblog/httpdocs:/tmp:/usr/bin:/usr/sbin:/usr/share:/usr/local/bin) in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-includes/functions.php on line 2104
   
       Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/domain.com/subdomains/reblog/httpdocs:/tmp:/usr/bin:/usr/sbin:/usr/share:/usr/local/bin) in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-includes/functions.php on line 2095
   
       Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/domain.com/subdomains/reblog/httpdocs:/tmp:/usr/bin:/usr/sbin:/usr/share:/usr/local/bin) in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-includes/functions.php on line 2104
   
       Warning: file_put_contents(/profiles/.htaccess) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-content/plugins/p3-profiler/p3-profiler.php on line 760
   
       Warning: file_put_contents(/profiles/index.php) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-content/plugins/p3-profiler/p3-profiler.php on line 763
       ```
   
 * How can I fix this? I can’t allow open_basedir “/”.
 * Best regards,
    Andy
 * [http://wordpress.org/extend/plugins/p3-profiler/](http://wordpress.org/extend/plugins/p3-profiler/)

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

 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-open_basedir-problems/#post-2584352)
 * Hi Andy,
 * Have you changed the location of WP_CONTENT_DIR or modified WordPress to move
   uploads to a different location?
 * What you’re seeing is P3 setting up a profiles folder to store your scan results
   so you can read them later. This should happen in a subfolder of your uploads
   folder.
 * P3 is using the [wp_upload_dir()](http://codex.wordpress.org/Function_Reference/wp_upload_dir)
   function to get the location of where to store these scans.
 *  Thread Starter [ablank](https://wordpress.org/support/users/ablank/)
 * (@ablank)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-open_basedir-problems/#post-2584376)
 * Hi Kurt,
 * I didn’t have moved WP_CONTENT_DIR or modiefied an upload location (I don’t know
   where at all). What you say makes sense, but I don’t think it’s the problem at
   my site. Is it possbile that the problem occurs because it’s in the http-root
   of the domain directly?
 * Best regards,
    Andy
 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-open_basedir-problems/#post-2584393)
 * Andy,
 * Version 1.2.0 was released yesterday and there were many compatibility fixes.
   As a result of your ticket, an extra fix was added to one of the file operations
   for open_basedir. Do you still see the same problem with the new version?
 *  Thread Starter [ablank](https://wordpress.org/support/users/ablank/)
 * (@ablank)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-open_basedir-problems/#post-2584412)
 * Hi Kurt,
 * Thanks for the notification about the latest version. I’ve upgraded to it and
   now it doesn’t display the error message after activating.
 * But when I access the plugin itself at tools, then I got the follow error messages:
 * —————->
    Warning: is_dir() [function.is-dir]: open_basedir restriction in effect.
   File(/) is not within the allowed path(s): (/var/www/vhosts/domain.com/subdomains/
   reblog/httpdocs:/tmp:/usr/bin:/usr/sbin:/usr/share:/usr/local/bin) in /var/www/
   vhosts/domain.com/subdomains/reblog/httpdocs/wp-includes/functions.php on line
   2104
 * Warning: file_exists() [function.file-exists]: open_basedir restriction in effect.
   File(/) is not within the allowed path(s): (/var/www/vhosts/domain.com/subdomains/
   reblog/httpdocs:/tmp:/usr/bin:/usr/sbin:/usr/share:/usr/local/bin) in /var/www/
   vhosts/domain.com/subdomains/reblog/httpdocs/wp-includes/functions.php on line
   2095
 * Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/)
   is not within the allowed path(s): (/var/www/vhosts/domain.com/subdomains/reblog/
   httpdocs:/tmp:/usr/bin:/usr/sbin:/usr/share:/usr/local/bin) in /var/www/vhosts/
   domain.com/subdomains/reblog/httpdocs/wp-includes/functions.php on line 2104
 * Warning: file_put_contents(/profiles/.htaccess) [function.file-put-contents]:
   failed to open stream: No such file or directory in /var/www/vhosts/domain.com/
   subdomains/reblog/httpdocs/wp-content/plugins/p3-profiler/p3-profiler.php on 
   line 736
 * Warning: file_put_contents(/profiles/index.php) [function.file-put-contents]:
   failed to open stream: No such file or directory in /var/www/vhosts/domain.com/
   subdomains/reblog/httpdocs/wp-content/plugins/p3-profiler/p3-profiler.php on 
   line 739
 * Warning: opendir(/profiles) [function.opendir]: failed to open dir: No such file
   or directory in /var/www/vhosts/domain.com/subdomains/reblog/httpdocs/wp-content/
   plugins/p3-profiler/p3-profiler.php on line 633
    —————->
 * Can I provide additional information?
 * Best regards,
    Andy
 *  Plugin Contributor [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * (@kurtpayne)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-open_basedir-problems/#post-2584424)
 * Andy,
 * Under Settings -> Media -> Uploading Files -> Store uploads in this folder
 * What value does your site have there?

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

The topic ‘[Plugin: P3 (Plugin Performance Profiler)] open_basedir problems?’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/p3-profiler_80a82a.svg)
 * [P3 (Plugin Performance Profiler)](https://wordpress.org/plugins/p3-profiler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/p3-profiler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/p3-profiler/)
 * [Active Topics](https://wordpress.org/support/plugin/p3-profiler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/p3-profiler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/p3-profiler/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Kurt Payne](https://wordpress.org/support/users/kurtpayne/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-p3-plugin-performance-profiler-open_basedir-problems/#post-2584424)
 * Status: resolved