Error config.inc.php was not found Roundcube on DirectAdmin
You might get the CONFIGURATION ERROR config.inc.php was not found. Please read the INSTALL instructions! error while accessing the WebMail. Unable to use RoundCube WebMail on your DirectAdmin Server after installing or upgrading? This could be due to bad file permissions, missing config.inc.php file or incorrect webmail database details. Error will look similar to the below image.
The error config.inc.php was not found can be fixed with a few easy steps on the DirectAdmin based server.
- root access to DirectAdmin Server
- CustomBuild 2.0 installed with
- Log in to the root user of the DirectAdmin Server.
- Cleanup existing Roundcube files and directories.
rm -f roundcubemail*
rm -rf /var/www/roundcube*
- Clean and update CustomBuild scripts followed by building RoundCube.
- If 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 16 14:35 my.cnf
- If you find
config.inc.phpis missing in
/var/www/html/roundcube/config/, you could create one from the sample file.
First-line should look like:
$config['db_dsnw'] = 'mysql://da_roundcube:yourdamysqlpasswordhere@localhost/da_roundcube';
Note: You will find yourdamysqlpasswordhere in
/var/www/html/roundcube/config/my.cnffile from the same directory.
- After saving the following steps the Roundcube error config.inc.php was not found should be fixed.
Find more guides and information on DirectAdmin by visiting: https://www.basezap.com/category/directadmin/
Feel free to reach us out if you need kind of assistance with DirectAdmin, Roundcube, or any technical queries. Shoot us an email at [email protected], and our professional experts will get in touch with you.