# Open_basedir issue with woocommerce gift certificates plugin

**URL:** https://discourse.roots.io/t/open-basedir-issue-with-woocommerce-gift-certificates-plugin/24358
**Category:** trellis
**Tags:** woocommerce, trellis
**Created:** 2022-12-05T18:32:06Z
**Posts:** 13
**Showing post:** 2 of 13

## Post 2 by @strarsis — 2022-12-05T18:40:59Z

The plugin doesn’t have a filter for the temp folder / temp file paths?

The PHP `open_basedir` config is set by a jinja template (Trellis ansible):

> <https://github.com/roots/trellis/blob/v1.18.0/roles/wordpress-setup/templates/php-fpm.conf.j2#L18>

You would have to override it so you can specify your own open\_basedir values,  
e.g.:

```
php_admin_value[open_basedir] = {{ php_open_basedir }}
```

And then set the `php_open_basedir` variable as with other variables, e.g. to  
`{{ www_root }}/:/tmp:/extra-path-the-plugin-is-hardcoded-to-use/`  
(The path delimiter/separator in POSIX/Linux/(here) is `:`).

---

_[View the full topic](https://discourse.roots.io/t/open-basedir-issue-with-woocommerce-gift-certificates-plugin/24358)._
