phpMyAdmin - Error

cravaus wrote on Thursday, July 03, 2014:

I am very pleased. I have loaded OpenEMR on a Synology DS241+ NAS. I am completely new to server technology. It has been a journey because DSM is not Umpuntu or a typical Linux but it is similar. Things fall in slightly different places so there needed to be some changes in where some lines were pointing. And now it is running–almost.

I am able to use phpMyAdmin from the DSM console, openemr file structure is there, and it integrates with OpenEMR but not within OpenEMR through the Database button. When I hit that button I get:

phpMyAdmin - Error
Wrong permissions on configuration file, should not be world writable!

I tried this:
http://blog.elijaa.org/index.php?post/2013/02/19/Solve-Wrong-permissions-on-configuration-file%2C-should-not-be-world-writable!-error-on-phpMyAdmin

It did not work

and
chmod 0755 config.inc.php

and
chmod 0644 config.inc.php

and
chmod o-w /volume1/web/phpMyAdmin/config.inc.php
all did not work

I have checked that the permissions are accurate with ls -l and it appears to be. I have tried turning off phpMyAdmin and starting in between each change and no effect.

Any ideas?

cravaus wrote on Thursday, July 03, 2014:

I am wondering if the problem is in Config.class.php

Around here:

 * verifies the permissions on config file (if asked by configuration)
 * (must be called after config.inc.php has been merged)
 *
 * @return void
 */
function checkPermissions()
{
    // Check for permissions (on platforms that support it):
    if ($this->get('CheckConfigurationPermissions')) {
        $perms = @fileperms($this->getSource());
        if (!($perms === false) && ($perms & 2)) {
            // This check is normally done after loading configuration
            $this->checkWebServerOs();
            if ($this->get('PMA_IS_WINDOWS') == 0) {
                $this->source_mtime = 0;
                PMA_fatalError(
                    __(
                        'Wrong permissions on configuration file, '
                        . 'should not be world writable!'
                    )
                );
            }
        }
    }
}

cravaus wrote on Saturday, July 05, 2014:

I found the problem. I had changed permissions in
volume1/web/phpMyAdmin/config.inc.php.
However, this is not where my problem was.

I needed to change permissions here in the OpenEMR phpMyAdmin file:
/volume1/homes/[user]/www/openemr/phpmyadmin/config.inc.php

chmod 0755 config.inc.php

This worked.