In my cpanel server I was try tying to asscess email over Hord but I am getting error file db.inc.php and main.inc.php not found. I found some fixes to make it work again. It is because of file permission issue. I followed the below steps.
Login to server over ssh make sure that you are in root privileged user.
root@server [/usr/local/cpanel/base/3rdparty/roundcube/config]# ll total 7 drwxr-xr-x 2 root wheel 4096 Apr 9 23:18 ./ drwxrwxr-x 11 root wheel 4096 Sep 16 2009 ../ -rw-r—– 1 cpanelroundcube cpanelroundcube 2347 Apr 9 23:18 db.inc.php -rw-r–r– 1 root wheel 2304 Apr 9 23:18 db.inc.php.dist -rw-r–r– 1 root wheel 31 Sep 25 2005 .htaccess -rw-r—– 1 cpanelroundcube cpanelroundcube 18898 Apr 9 23:18 main.inc.php -rw-r–r– 1 root wheel 18912 Apr 9 23:18 main.inc.php.dist -rw-r–r– 1 root wheel 2392 Aug 7 2009 mimetypes.php
If file are present and you still see the error, then check file permission and ownership. Permission on db.inc.php and main.inc.php should be 640 and ownership should be cpanelroundcube.cpanelroundcube as mentioed above.
If you still face problem, Then try upgrading roundcube.
Now everything works fine.