Title: open_basedir restriction
Last modified: September 10, 2018

---

# open_basedir restriction

 *  [mennoz](https://wordpress.org/support/users/mennoz/)
 * (@mennoz)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/open_basedir-restriction-3/)
 * Hi,
 * The tmp path setting seems to configured by default to /tmp. I suggest calling
   sys_get_temp_dir() to get the default tmp path.
 * Reason: I have a host that does not allow access to /tmp for security reasons.
   They provide a separate tmp directory for each site. The correct value is returned
   by sys_get_temp_dir().
 * I’m aware the setting can be changed for the plugin. It may however save users
   time to find the problem, understand it and resolve it. It’s tricky to figure
   out for the average user.
 * Cheers,
 * MennoZ

The topic ‘open_basedir restriction’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mennoz](https://wordpress.org/support/users/mennoz/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/open_basedir-restriction-3/)
 * Status: not resolved