Title: PHP Error &#8211; realpath(): open_basedir restriction in effect.
Last modified: August 21, 2016

---

# PHP Error – realpath(): open_basedir restriction in effect.

 *  [vtroia](https://wordpress.org/support/users/vtroia/)
 * (@vtroia)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/php-error-realpath-open_basedir-restriction-in-effect/)
 * Anyone having this issue?
 * PHP Warning: realpath(): open_basedir restriction in effect.
 * File(/var/www/vhosts) is not within the allowed path(s): (/var/www/vhosts/domain.
   com/:/tmp/) in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-
   cache/inc/define.php on line 749
 * Is this a bug? Where is realpath() defined?
 * [http://wordpress.org/plugins/w3-total-cache/](http://wordpress.org/plugins/w3-total-cache/)

The topic ‘PHP Error – realpath(): open_basedir restriction in effect.’ is closed
to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [open_basedir](https://wordpress.org/support/topic-tag/open_basedir/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [vtroia](https://wordpress.org/support/users/vtroia/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/php-error-realpath-open_basedir-restriction-in-effect/)
 * Status: not resolved