Title: File outside path??
Last modified: August 12, 2021

---

# File outside path??

 *  Resolved [Netz](https://wordpress.org/support/users/netz/)
 * (@netz)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/file-outside-path/)
 * Hi Good People
 * My error log is showing this: (This cause the frontpage to ask ever not logged
   in user to download a zero byte file??)
 *     ```
       [12-Aug-2021 10:29:32 UTC] PHP Warning:  PharData::__construct(): open_basedir restriction in effect. File(/var/www/mysite.com) is not within the allowed path(s): (/var/www/mysite.com/public_html:/var/www/mysite.com/tmp:/usr/share/php) in /var/www/mysite.com/public_html/wp-content/plugins/woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-database-service.php on line 119
       [12-Aug-2021 10:29:32 UTC] PHP Warning:  PharData::__construct(): open_basedir restriction in effect. File(/var/www) is not within the allowed path(s): (/var/www/mysite.com/public_html:/var/www/mysite.com/tmp:/usr/share/php) in /var/www/mysite.com/public_html/wp-content/plugins/woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-database-service.php on line 119
       [12-Aug-2021 10:29:32 UTC] PHP Warning:  PharData::__construct(): open_basedir restriction in effect. File(/var/www/mysite.com) is not within the allowed path(s): (/var/www/mysite.com/public_html:/var/www/mysite.com/tmp:/usr/share/php) in /var/www/mysite.com/public_html/wp-content/plugins/woocommerce/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-database-service.php on line 119
       [12-Aug-2021 12:03:06 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/mysite.com/public_html/wp-content/cache/wpo-cache/mysite.com/index.html/index.html) is not within the allowed path(s): (/var/www/mysite.com/public_html:/var/www/mysite.com/tmp:/usr/share/php) in /var/www/mysite.com/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 498
       [12-Aug-2021 12:03:06 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/mysite.com/public_html/wp-content/cache/wpo-cache/mysite.com/index.html/index.rss-xml) is not within the allowed path(s): (/var/www/mysite.com/public_html:/var/www/mysite.com/tmp:/usr/share/php) in /var/www/mysite.com/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 498
       [12-Aug-2021 12:03:06 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/mysite.com/public_html/wp-content/cache/wpo-cache/mysite.com/index.html/index.html.gz) is not within the allowed path(s): (/var/www/mysite.com/public_html:/var/www/mysite.com/tmp:/usr/share/php) in /var/www/mysite.com/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 508
       [12-Aug-2021 12:03:06 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/mysite.com/public_html/wp-content/cache/wpo-cache/mysite.com/index.html/index.html) is not within the allowed path(s): (/var/www/mysite.com/public_html:/var/www/mysite.com/tmp:/usr/share/php) in /var/www/mysite.com/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 513
       [12-Aug-2021 12:03:06 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/var/www/mysite.com/public_html/wp-content/cache/wpo-cache/mysite.com/index.html/index.html) is not within the allowed path(s): (/var/www/mysite.com/public_html:/var/www/mysite.com/tmp:/usr/share/php) in /var/www/mysite.com/public_html/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 547
       ```
   
 * Hoping for some quick help 🙂
 * Thanks good people
 * Netz
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffile-outside-path%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/file-outside-path/#post-14763525)
 * [@netz](https://wordpress.org/support/users/netz/) I’ve checked the logs, however
   I’m still not getting your issue, could you please explain your issue in detail?

Viewing 1 replies (of 1 total)

The topic ‘File outside path??’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Harshad](https://wordpress.org/support/users/bornforphp/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/file-outside-path/#post-14763525)
 * Status: resolved