Roundcube Community Forum

 

switching from squirrelmail, but roundcube not communicating

Started by johnzbesko, December 22, 2018, 07:05:22 PM

Previous topic - Next topic

SKaero

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?

rm13

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.

johnzbesko

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...

SKaero

OK well thats different so thats something. There should be an error message in <RC root>/logs/errors if your getting a blank page.

johnzbesko

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

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




<sigh>

JohnDoh

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...

johnzbesko

/var/www/html/roundcube links to /usr/share/roundcube and /usr/share/roundcube/logs is empty.

SKaero

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.

johnzbesko

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????

SKaero

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?

alec

The error suggests problems with reading configuration folder/files. Check permissions.

johnzbesko

$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.

SKaero

That should be the package that its in, can you post the phpinfo for the server?

johnzbesko

phpinfo() attached. Hope it's intelligible.

SKaero

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.