You may get the configuration error config.inc.php not found. Please read the installation instructions! Error accessing webmail. Unable to use RoundCube WebMail on your DirectAdmin server after installation or upgrade? This can be caused by bad file permissions, missing config.inc.php file, or incorrect webmail database details. The error will look like the below image.

The error config.inc.php was not found and can be fixed with a few simple steps on DirectAdmin-based servers.
Requirements
- Root access to the DirectAdmin server
- Installed CustomBuild 2.0 with roundcube=yes in Options.conffile.
Procedure
-Log in to the DirectAdmin server as the root user.
-Clean up existing Roundcube files and directories.
cd /usr/local/directadmin/custombuild rm -f roundcubemail* rm -rf /var/www/roundcube*
-Clean and update custombuild scripts that build roundcube.
cd /usr/local/directadmin/custombuild ./build clean ./build update ./build roundcube
-If the above commands work without any error then your /var/www/html/roundcube/config/, it should contain this:
-r--r----- 1 webapps webapps 4511 Jan 16 14:35 config.inc.php -rw-r--r-- 1 webapps webapps 3981 Jan 2 01:30 config.inc.php.sample -rw-r--r-- 1 webapps webapps 55612 Jan 2 01:30 defaults.inc.php -rw-r--r-- 1 webapps webapps 164 Jan 2 01:30 .htaccess -rw-r--r-- 1 webapps webapps 50737 Jan 11 14:10 mime.types -rw-r--r-- 1 webapps webapps 2815 Jan 2 01:30 mimetypes.php -rw------- 1 webapps webapps 50 Jan 17 14:35 my.cnf
-If you find that config.inc.php is missing in /var/www/html/roundcube/config/, you can create one from the sample file.
The first line should look like this:
$config['db_dsnw'] = 'mysql://da_roundcube:yourdamysqlpasswordhere@localhost/da_roundcube'; Note: You'll find yourdamysqlpasswordhere in /var/www/html/roundcube/config/my.cnf file from the exact directory.
The following steps should fix the Roundcube errors config.inc.php not found after saving. Buy dedicated server from Oudel Inc. Read more about Setting up the mail infrastructure on CentOS 7.



