Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove doveadm warning #171

Closed
snuggeman opened this issue Apr 29, 2018 · 2 comments
Closed

Remove doveadm warning #171

snuggeman opened this issue Apr 29, 2018 · 2 comments

Comments

@snuggeman
Copy link
Contributor

I get tons of logs like:
PHP Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/doveadm) is not within the allowed path(s)

I silenced it with:

--- config.inc.php      2018-04-29 16:08:28.260238755 +0200
+++ config.inc.php.new  2018-04-29 16:03:19.772123293 +0200
@@ -193,7 +193,7 @@
 // $CONF['dovecotpw'] = "/usr/sbin/dovecotpw";
 // for dovecot 2.x (dovecot 2.0.0 - 2.0.7 is not supported!)
 $CONF['dovecotpw'] = "/usr/sbin/doveadm pw";
-if(file_exists('/usr/bin/doveadm')) {
+if(@file_exists('/usr/bin/doveadm')) {
     $CONF['dovecotpw'] = "/usr/bin/doveadm pw"; # debian
 }
@DavidGoodwin
Copy link
Member

Using the @ operator is normally frowned upon ... https://stackoverflow.com/questions/21427211/check-if-open-basedir-restriction-is-in-effect implies there isn't a better option though :-/

@DavidGoodwin
Copy link
Member

DavidGoodwin commented Apr 29, 2018

see xxxxxxxxxx when I eventually push it.

(Clearly I lost this commit .... see below)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants