Hello,
I have recently been following Xiao Guoan's excellent tutorial series on creating a mail server from scratch. It can be found over on linuxbabe.com. The only section where I've really run into trouble is installing Roundcube. The steps I followed for installation can be found here:
https://www.linuxbabe.com/ubuntu/install-roundcube-webmail-ubuntu-postgresql. During my instalI process, I did everything the same as in this tutorial, with the exception of installing newer 8.1 PHP packages and downloading 1.6.0 instead of 1.5.2. However, whenever I go to the web site, instead of seeing the web-based installer, I get the "Oops, something went wrong. An internal error has occurred. Your request cannot be processed at this time."
Checking /var/www/roundcube/logs/errors.log, the error file, doesn't clear much of anything up. It throws SQL error 2002, saying that there is "no such file or directory" and the error can be found in /var/www/roundcube/program/lib/Roundcube/rcube_db.php , at line 200.
Line 200 itself is just the line of code that throws the error. Taking a look at the preceding lines of code appears that perhaps Roundcube is having a difficult time opening the imported Postgres database?
Another hint might be that this problem has persisted even after I deleted the entire Roundcube directory, dropped the Roundcube pgsql database and associated user, and restarted from the top of the Roundcube tutorial. So potentially this could be related to a configuration parameter outside of Roundcube, for instance, in Apache?
I'm not very knowledgeable about PHP or SQL, so I don't exactly have the tools to troubleshoot this. Any help on this matter would be greatly appreciated.