0

I am trying to make db for every particular mail in user folder but when I use getenv('HOME') and getenv('_RCUBE') it shows me unable to connect with db.

This is how I use it

$config['db_dsnw'] = 'sqlite:///' . $_SERVER['HOME'] . '/etc/' . $_SERVER['_RCUBE'] . '.rcube.db?mode=0600';
$config['db_dsnw'] = 'sqlite:///' . getenv('HOME') . '/etc/' . getenv('_RCUBE') . '.rcube.db?mode=0600';

In both the way I had tried.

sebix
  • 4,175
  • 2
  • 25
  • 45
be MrZulf
  • 1
  • 2
  • Are you running multiple Roundcube instances with possibly multiple users each, or are you just trying to partition the database of one instance by the user logged into the web interface? – anx Jun 01 '22 at 17:04
  • 1
    If unsure how to clarify your question otherwise.. [add the relevant configuration](https://serverfault.com/review/suggested-edits/521875) - e.g. Apache, php-fpm used to run Roundcube; and state the *goal* not just the *specific method* you are thinking of to accomplish it. – anx Jun 01 '22 at 17:07
  • No I am not using multiple Round cube but I have many user and I want dB for everyone. – be MrZulf Jun 29 '22 at 14:01

0 Answers0