Author Topic: switching from squirrelmail, but roundcube not communicating  (Read 1182 times)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,461
    • http://SKaero.com/
Re: switching from squirrelmail, but roundcube not communicating
« Reply #15 on: January 04, 2019, 02:29:17 AM »
Well lets start by trying to do a clean install with a new database. When you do that do you get the button to initialize the database?

Offline rm13

  • Full Member
  • ***
  • Posts: 129
Re: switching from squirrelmail, but roundcube not communicating
« Reply #16 on: January 04, 2019, 05:32:19 PM »
Didn't see it mentioned... Are you using the roundcube install from roundcube.net or did you install the Ubuntu package? The setup would be a little different with the Ubuntu package.

Offline johnzbesko

  • Jr. Member
  • **
  • Posts: 18
Re: switching from squirrelmail, but roundcube not communicating
« Reply #17 on: January 04, 2019, 09:56:58 PM »
Yes, I removed and reinstalled from Ubuntu 18.04. I also reinitialized the mariaSQL, i.e. deleted the roundcubedb and recreated with the roundcube@localhost user.

http://localhost/roundcube/installer/index.php?_step=3
shows no problems. (I also used the installer to initialize roundcubedb.)

Now, http://localhost/roundcube displays a blank page. At least I don't get an error message ;-)

I'm completely lost...

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,461
    • http://SKaero.com/
Re: switching from squirrelmail, but roundcube not communicating
« Reply #18 on: January 05, 2019, 01:54:09 PM »
OK well thats different so thats something. There should be an error message in <RC root>/logs/errors if your getting a blank page.

Offline johnzbesko

  • Jr. Member
  • **
  • Posts: 18
Re: switching from squirrelmail, but roundcube not communicating
« Reply #19 on: January 05, 2019, 11:00:44 PM »
:/var/www/html/roundcube/logs$ ls

:/var/www/html/roundcube/logs$




<sigh>

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,152
Re: switching from squirrelmail, but roundcube not communicating
« Reply #20 on: January 06, 2019, 03:48:08 AM »
Are you sure /var/www/html/roundcube/logs is the correct location? In your original post you had:

Quote
Roundcube may need to write/save files into these directories
/usr/share/roundcube/temp/:  OK
/usr/share/roundcube/logs/:  OK

May be the location changed to /var/www... after you reinstalled.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline johnzbesko

  • Jr. Member
  • **
  • Posts: 18
Re: switching from squirrelmail, but roundcube not communicating
« Reply #21 on: January 06, 2019, 01:51:59 PM »
/var/www/html/roundcube links to /usr/share/roundcube and /usr/share/roundcube/logs is empty.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,461
    • http://SKaero.com/
Re: switching from squirrelmail, but roundcube not communicating
« Reply #22 on: January 06, 2019, 03:42:21 PM »
There should be an error log so it may not be writable by the web server. Its also possible that the error has been send to a web server error log.

Offline johnzbesko

  • Jr. Member
  • **
  • Posts: 18
Re: switching from squirrelmail, but roundcube not communicating
« Reply #23 on: January 06, 2019, 04:32:15 PM »
Good suggestion! I found /var/log/roundcube and in it I found an errors file with:

[06-Jan-2019 13:36:48 -0600]: DB Error: Configuration error. Unsupported database driver:  in /usr/share/roundcube/program/lib/Roundcube/rcube_db.php on line 84 (GET /index.php)

I then checked /var/log/apache2/error.log and found:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/apcu.so' - /usr/lib/php/20151012/apcu.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/imagick.so' - /usr/lib/php/20151012/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/memcache.so' - /usr/lib/php/20151012/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/ssh2.so' - /usr/lib/php/20151012/ssh2.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Sun Jan 06 00:06:14.077278 2019] [mpm_prefork:notice] [pid 1948] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Sun Jan 06 00:06:14.077289 2019] [core:notice] [pid 1948] AH00094: Command line: '/usr/sbin/apache2'


With info like this, a newbie like me could try to debug, however, I'm hoping someone more experienced could debug more quickly. Does the reference to "/usr/lib/php/20151012" imply a PHP 5 vs. 7 issue????

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,461
    • http://SKaero.com/
Re: switching from squirrelmail, but roundcube not communicating
« Reply #24 on: January 06, 2019, 11:19:51 PM »
Well there is defiantly some PHP upgrade problems, the warning are basically pointing out that PHP is trying to load modules that don't exist. Those should be removed from the php config. Now for the "Unsupported database driver" do you have php mysql pdo package installed?

Offline alec

  • Hero Member
  • *****
  • Posts: 1,125
Re: switching from squirrelmail, but roundcube not communicating
« Reply #25 on: January 07, 2019, 03:04:18 AM »
The error suggests problems with reading configuration folder/files. Check permissions.

Offline johnzbesko

  • Jr. Member
  • **
  • Posts: 18
Re: switching from squirrelmail, but roundcube not communicating
« Reply #26 on: January 07, 2019, 07:34:49 PM »
$sudo apt-get install php7.2-mysql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php7.2-mysql is already the newest version (7.2.10-0ubuntu0.18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

As for permissions, everything in /var/www/html is user:root group:root and others can read.

config.inc.php in /usr/share/roundcube was user:www-data group:www-data, but I changed it to root root like the rest- no difference in behavior.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,461
    • http://SKaero.com/
Re: switching from squirrelmail, but roundcube not communicating
« Reply #27 on: January 07, 2019, 08:35:54 PM »
That should be the package that its in, can you post the phpinfo for the server?

Offline johnzbesko

  • Jr. Member
  • **
  • Posts: 18
Re: switching from squirrelmail, but roundcube not communicating
« Reply #28 on: January 08, 2019, 02:20:17 AM »
phpinfo() attached. Hope it's intelligible.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,461
    • http://SKaero.com/
Re: switching from squirrelmail, but roundcube not communicating
« Reply #29 on: January 08, 2019, 09:32:44 AM »
Hmm thats interesting, you are installing PHP 7.2 packages but the server is running PHP 7.0. Something is odd there, I think it would be a good start to try and actually have the server run PHP 7.2.