Roundcube no config inc php

RoundCube config.inc.php not found error – A quick fix!

Recently, we came across this error message due to which customer was not able to access the webmail for a long time.

At Bobcares, we often receive requests to fix Roundcube errors as a part of our Server Management Services.

Today, we’ll see why this error occurs and how our Support Engineers fix this error.

Why does Roundcube show configuration file not found error?

Before getting into fixing the error let’s discuss what causes this error to occur.

We’ve seen Roundcube throwing errors related to the configuration file when the permissions of the configuration file are incorrect.

Also, we’ve seen incorrect ownership also leading to such errors. So the simple way to fix this error is to set the right ownership and permissions.

How we fix the ‘RoundCube config.inc.php not found error’?

Having a decade of experience in managing servers, our Dedicated Engineers are familiar with the Roundcube errors. Now, let’s discuss how we fix this error.

Recently, one of our customers came up with an error message ‘config.inc.php not found error‘ in Roundcube on ISPConfig Nginx web server. Here is the screenshot of the error message:

Our Support Engineers started troubleshooting this error by checking the ownership and permissions of the config file.

As a result, we found that the ownership and permissions were not set right.

So we ran the below commands to fix the ownership and file permission of the configuration file.

chown root:ispapps /etc/roundcube/debian-db.php chmod 640 /etc/roundcube/debian-db.php

Finally, this fixed the error. And the customer was able to access the webmail.

[Need any assistance with Roundcube errors? – We’ll help you with it]

Conclusion

In short, the RoundCube config.inc.php not found error occurs mainly due to incorrect file permissions or wrong ownership. Today, we saw how our Support Engineers fix this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

Читайте также:  Convert css to inline

Источник

AWS Monster | Your Technical Partner

Go to bottom of the configuration file of /usr/local/cwpsrv/var/services/roundcube/config/config.inc.php there is a list of plugins that Roundcube loads. The “archive” , “zipdownload” , “managesieve” and “password” plugins are already enabled.
Go to the Plugin directory and list all the plugins

# cd /usr/local/cwpsrv/var/services/roundcube/plugins/ # ll

Add the “markasjunk” , “emoticons” and “new_user_dialog” plugins so that the setting looks like this:

# vi /usr/local/cwpsrv/var/services/roundcube/config/config.inc.php   $config['plugins'] = array( 'archive', 'zipdownload', 'managesieve', 'password', 'rcguard', 'markasjunk', 'emoticons', 'new_user_dialog', ); 

Plugin emoticons add smileys, and is responsible for the markasjunk plugin adds a toolbar button that moves the email to the Spam folder. And thanks to the plugin the user has new_user_dialog, after the first login window will appear, where it will be able to enter your full name and the name of the Organization to be sent emails was attributed to the From field.

# cd /usr/local/cwpsrv/var/services/roundcube/plugins/# cd markasjunk/ # ll [There is no config.inc.php.dist]
# cd /usr/local/cwpsrv/var/services/roundcube/plugins/ # cp -p emoticons/config.inc.php.dist emoticons/config.inc.php 
# cd /usr/local/cwpsrv/var/services/roundcube/plugins/ # cd new_user_dialog/ # ll [There is no config.inc.php.dist]
markasjunk

emoticons

new_user_dialog

But I have enabled many plugins as showing below:

 # vi /usr/local/cwpsrv/var/services/roundcube/config/config.inc.php // List of active plugins (in plugins/ directory) $config['plugins'] = array( 'additional_message_headers', 'archive', 'emoticons', 'help', 'hide_blockquote', 'identity_select', 'legacy_browser', 'managesieve', 'markasjunk', 'newmail_notifier', 'new_user_dialog', 'new_user_identity', 'password', 'rcguard', 'show_additional_headers', 'subscriptions_option', 'userinfo', 'vcard_attachments', 'zipdownload', ); 

Источник

Roundcube error config.inc.php

Hi, can you tell me how to fix this problem, when I open roundcube then, I get to the page with an error.

Скриншот 01-12-2021 021928.jpg

Richard G

Verified User
cd /usr/local/directadmin/custombuild ./build update ./build roundcube

After that, check if config.inc.php is present in:
/var/www/html/roundcubemail-1.5.1/config/config.inc.php

Mitya1987

Verified User

Hi, I already reinstalled but it didn’t help, can you tell me what exactly I should find in this file?

Richard G

Verified User

Very odd. Check your owner and permissions on the /var/www/html directory.

It may also be /roundcubemail-1.5.0/ and so on. There must be multiple files in that directory.
Should also be reachable by visiting the /var/www/html/roundcube/config directory.

It’s no use to post this file here. If this is not present there or in /var/www/html/roundcube/config/ then probably more is wrong. It’s part of Roundcube and starts like this:

[email protected]/database // Currently supported db_providers: mysql, pgsql, sqlite, mssql, sqlsrv, oracle // For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php // NOTE: for SQLite use absolute path (Linux): 'sqlite:////full/path/to/sqlite.db?mode=0646' // or (Windows): 'sqlite:///C:/full/path/to/sqlite.db' $config['db_dsnw'] = 'mysql://da_roundcube:[email protected]/da_roundcube';

Mitya1987

Verified User

Richard G

Verified User

First try this:
chown webapps:webapps /var/www/html/roundcube -R

Check if ownership of config.inc matches and see if that fixes things.
There should be a bunch of other files in that directory including a my.cnf file.

Читайте также:  Какие есть css препроцессоры

If not, maybe a total fresh install is necessary, so remove roundcube etc. and build again.

You can find instructions here (click), so I don’t have to type them all.

Mitya1987

Verified User

I did the operation and it didn’t fix the situation. Of all the files that should be in the directory is missing only file .htaccess, or his system just does not show. Tell me if this error can be because I changed the hostname.

Richard G

Verified User

I don’t know how you’re looking, it’s a hidden file and should be shown when using the «ls -all» command.

This is the content of the .htaccess file:

# deny webserver access to this directory Require all denied Deny from all 

I suggest you try removing and totally new installation of roundcube as shown in the link under the word «here» in my previous message.
If that does not work, you might need somebody else to help you fix this or send in a ticket.

There might be some influence because of the hostname change but I’m not sure. You might need a reboot too.

Mitya1987

Verified User

I did as you pointed out in the link to the instructions. All the files are in the directory.
Thank you for the advice I appreciate it! But the problem is still there! ((

[[email protected] ~]# ls -all /var/www/html/roundcube/config/
total 152
drwxr-xr-x 2 webapps webapps 4096 Nov 30 18:43 .
drwxr-xr-x 13 webapps webapps 4096 Nov 30 18:43 ..
-r—r—— 1 webapps webapps 4676 Nov 30 18:43 config.inc.php
-rw-r—r— 1 webapps webapps 4118 Nov 22 21:12 config.inc.php.sample
-rw-r—r— 1 webapps webapps 62578 Nov 22 21:12 defaults.inc.php
-rw-r—r— 1 webapps webapps 164 Nov 22 21:12 .htaccess
-rw-r—r— 1 webapps webapps 50737 Nov 30 17:15 mime.types
-rw-r—r— 1 webapps webapps 2806 Nov 22 21:12 mimetypes.php
-rw——- 1 webapps webapps 52 Nov 30 18:43 my.cnf

toktokcity

Verified User

Hi Mitya, I have the same problem, rebuilding is not a fix, also downgrading is not a fix too. Are you using CentOS 8?

mxroute

Verified User

My assumption would be that your /roundcube URL is not using the installation in /var/www/html/roundcube. If you’ve installed software outside of DA’s own methods you may have ended up with something conflicting somewhere. My immediate thoughts go to something like a roundcube install from the OS repos with a web server include that overrides /roundcube for all URLs. I’m flying pretty theoretical here without direct access to the system, and frankly if you have an admin that knows everywhere to look I would recommend that you turn them loose on the box and see what they find. But off the top of my head, I’m wondering if this returns anything:

Читайте также:  Java parse to int from string

It’s a rough theory and that not finding anything doesn’t mean that I’m wrong, doesn’t mean I’m right either. But if you have the config.inc.php file in that directory and you’re getting that error, I think it’s a fairly clear statement that you’re not loading that version of Roundcube. At least, that’s the conclusion I’d place my bet on.

Источник

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.

config.inc.php was not found.

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 roundcube=yes in the options.conf file.
  1. Log in to the root user of the DirectAdmin Server.
  2. Cleanup existing Roundcube files and directories.
    cd /usr/local/directadmin/custombuild
    rm -f roundcubemail*
    rm -rf /var/www/roundcube*
  3. Clean and update CustomBuild scripts followed by building RoundCube.
    cd /usr/local/directadmin/custombuild
    ./build clean
    ./build update
    ./build roundcube
  4. 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
  5. If you find config.inc.php is 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.cnf file from the same directory.
  6. 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 technical@basezap.com, and our professional experts will get in touch with you.

Источник

Оцените статью