Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 38

Thread: Connection for controluser as defined in your configuration failed.

  1. #11
    Join Date
    Aug 2007
    Location
    Nine Towers
    Beans
    336
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Connection for controluser as defined in your configuration failed.

    Well I removed it again from the terminal without removing the database as I could not remove it because I don't know the password. Then I reinstalled. It did work, but I got this feeback:
    Code:
    dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf
    *** WARNING: ucf was run from a maintainer script that uses debconf, but
                 the script did not pass --debconf-ok to ucf. The maintainer
                 script should be fixed to not stop debconf before calling ucf,
                 and pass it this parameter. For now, ucf will revert to using
                 old-style, non-debconf prompting. Ugh!
    
                 Please inform the package maintainer about this problem.
    Replacing config file /etc/phpmyadmin/config-db.php with new version
    dbconfig-common: flushing administrative password
     * Reloading web server config apache2                                          apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                             [ OK ]
    invoke-rc.d: unknown initscript, /etc/init.d/apache not found.
    invoke-rc.d: unknown initscript, /etc/init.d/apache-ssl not found.
    invoke-rc.d: unknown initscript, /etc/init.d/apache-perl not found.
    Lighttpd not installed, skipping
    invoke-rc.d: unknown initscript, /etc/init.d/lighttpd not found.
    Then I went to http://localhost/phpmyadmin entered phpmyadmin as user and the password. Then I got this same persistent error:
    Code:
    #0  PMA_sendHeaderLocation(http://localhost/phpmyadmin/index.php?token=4881d3e9fffb5ad42437e6c41e9a5ddd) called at [/usr/share/phpmyadmin/libraries/auth/cookie.auth.lib.php:612]
    #1  PMA_auth_set_user() called at [/usr/share/phpmyadmin/libraries/common.inc.php:821]
    #2  require_once(/usr/share/phpmyadmin/libraries/common.inc.php) called at [/usr/share/phpmyadmin/index.php:34]
    I went into mysql from ssh again using mysql -u -p and saw that I do have a database phpmyadmin now. Now I just need to get into it without these errors!!
    Last edited by Stoneface; June 6th, 2009 at 07:15 PM.

  2. #12
    Join Date
    Aug 2007
    Location
    Nine Towers
    Beans
    336
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Connection for controluser as defined in your configuration failed.

    I went into /var/lib/phpmyadmin/config.inc.php and saw no data in the file... Is that an issue?

  3. #13
    Join Date
    Aug 2007
    Location
    Nine Towers
    Beans
    336
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Question PHPMyAdmin after login attempt

    I went to /etc/phpmyadmin/config.inc.php and found data:
    Code:
    <?php
    /**
     * Debian local configuration file
     *
     * This file overrides the settings made by phpMyAdmin interactive setup
     * utility.
     *
     * For example configuration see /usr/share/doc/phpmyadmin/examples/config.default.php.gz
     *
     * NOTE: do not add security sensitive data to this file (like passwords)
     * unless you really know what you're doing. If you do, any user that can
     * run PHP or CGI on your webserver will be able to read them. If you still
     * want to do this, make sure to properly secure the access to this file
     * (also on the filesystem level).
     */
    
    /**
     * Server(s) configuration
     */
    $i = 0;
    // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
    // You can disable a server config entry by setting host to ''.
    $i++;
    
    /* Read configuration from dbconfig-common */
    require('/etc/phpmyadmin/config-db.php');
    
    /* Configure according to dbconfig-common if enabled */
    if (!empty($dbname)) {
        /* Authentication type */
        $cfg['Servers'][$i]['auth_type'] = 'cookie';
        /* Server parameters */
        if (empty($dbserver)) $dbserver = 'localhost';
        $cfg['Servers'][$i]['host'] = $dbserver;
    
        if (!empty($dbport)) {
            $cfg['Servers'][$i]['connect_type'] = 'tcp';
            $cfg['Servers'][$i]['port'] = $dbport;
        }
        //$cfg['Servers'][$i]['compress'] = false;
        /* Select mysqli if your server has it */
        $cfg['Servers'][$i]['extension'] = 'mysqli';
        /* Optional: User for advanced features */
        $cfg['Servers'][$i]['controluser'] = $dbuser;
        $cfg['Servers'][$i]['controlpass'] = $dbpass;
        /* Optional: Advanced phpMyAdmin features */
        $cfg['Servers'][$i]['pmadb'] = $dbname;
        $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
        $cfg['Servers'][$i]['relation'] = 'pma_relation';
        $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
        $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
        $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
        $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
        $cfg['Servers'][$i]['history'] = 'pma_history';
        $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
    
        /* Advance to next server for rest of config */
        $i++;
    }
    
    /* Authentication type */
    //$cfg['Servers'][$i]['auth_type'] = 'cookie';
    /* Server parameters */
    //$cfg['Servers'][$i]['host'] = 'localhost';
    //$cfg['Servers'][$i]['connect_type'] = 'tcp';
    //$cfg['Servers'][$i]['compress'] = false;
    /* Select mysqli if your server has it */
    //$cfg['Servers'][$i]['extension'] = 'mysql';
    /* Optional: User for advanced features */
    // $cfg['Servers'][$i]['controluser'] = 'pma';
    // $cfg['Servers'][$i]['controlpass'] = 'pmapass';
    /* Optional: Advanced phpMyAdmin features */
    // $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
    // $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
    // $cfg['Servers'][$i]['relation'] = 'pma_relation';
    // $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
    // $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
    // $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
    // $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
    // $cfg['Servers'][$i]['history'] = 'pma_history';
    // $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
    
    /*
     * End of servers configuration
     */
    
    /*
     * Directories for saving/loading files from server
     */
    $cfg['UploadDir'] = '';
    $cfg['SaveDir'] = '';
    With config-db.php data I do try to logon, but I keep on getting the same error:

    Code:
    #0  PMA_sendHeaderLocation(http://localhost/phpmyadmin/index.php?token=7e5ae2ccb9f77209cec3cf5d93bb835a) called at [/usr/share/phpmyadmin/libraries/auth/cookie.auth.lib.php:612]
    #1  PMA_auth_set_user() called at [/usr/share/phpmyadmin/libraries/common.inc.php:821]
    #2  require_once(/usr/share/phpmyadmin/libraries/common.inc.php) called at [/usr/share/phpmyadmin/index.php:34]
    I would appreciate anybody's help to get phpmyadmin going today. It worked before and MySQL, Apache and PHP still do...

  4. #14
    Join Date
    Feb 2009
    Beans
    73

    Re: PHPMyAdmin after login attempt

    Quote Originally Posted by Stoneface View Post
    I went to /etc/phpmyadmin/config.inc.php and found data:
    Code:
    <?php
    /**
     * Debian local configuration file
     *
     * This file overrides the settings made by phpMyAdmin interactive setup
     * utility.
     *
     * For example configuration see /usr/share/doc/phpmyadmin/examples/config.default.php.gz
     *
     * NOTE: do not add security sensitive data to this file (like passwords)
     * unless you really know what you're doing. If you do, any user that can
     * run PHP or CGI on your webserver will be able to read them. If you still
     * want to do this, make sure to properly secure the access to this file
     * (also on the filesystem level).
     */
    
    /**
     * Server(s) configuration
     */
    $i = 0;
    // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
    // You can disable a server config entry by setting host to ''.
    $i++;
    
    /* Read configuration from dbconfig-common */
    require('/etc/phpmyadmin/config-db.php');
    
    /* Configure according to dbconfig-common if enabled */
    if (!empty($dbname)) {
        /* Authentication type */
        $cfg['Servers'][$i]['auth_type'] = 'cookie';
        /* Server parameters */
        if (empty($dbserver)) $dbserver = 'localhost';
        $cfg['Servers'][$i]['host'] = $dbserver;
    
        if (!empty($dbport)) {
            $cfg['Servers'][$i]['connect_type'] = 'tcp';
            $cfg['Servers'][$i]['port'] = $dbport;
        }
        //$cfg['Servers'][$i]['compress'] = false;
        /* Select mysqli if your server has it */
        $cfg['Servers'][$i]['extension'] = 'mysqli';
        /* Optional: User for advanced features */
        $cfg['Servers'][$i]['controluser'] = $dbuser;
        $cfg['Servers'][$i]['controlpass'] = $dbpass;
        /* Optional: Advanced phpMyAdmin features */
        $cfg['Servers'][$i]['pmadb'] = $dbname;
        $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
        $cfg['Servers'][$i]['relation'] = 'pma_relation';
        $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
        $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
        $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
        $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
        $cfg['Servers'][$i]['history'] = 'pma_history';
        $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
    
        /* Advance to next server for rest of config */
        $i++;
    }
    
    /* Authentication type */
    //$cfg['Servers'][$i]['auth_type'] = 'cookie';
    /* Server parameters */
    //$cfg['Servers'][$i]['host'] = 'localhost';
    //$cfg['Servers'][$i]['connect_type'] = 'tcp';
    //$cfg['Servers'][$i]['compress'] = false;
    /* Select mysqli if your server has it */
    //$cfg['Servers'][$i]['extension'] = 'mysql';
    /* Optional: User for advanced features */
    // $cfg['Servers'][$i]['controluser'] = 'pma';
    // $cfg['Servers'][$i]['controlpass'] = 'pmapass';
    /* Optional: Advanced phpMyAdmin features */
    // $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
    // $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
    // $cfg['Servers'][$i]['relation'] = 'pma_relation';
    // $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
    // $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
    // $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
    // $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
    // $cfg['Servers'][$i]['history'] = 'pma_history';
    // $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
    
    /*
     * End of servers configuration
     */
    
    /*
     * Directories for saving/loading files from server
     */
    $cfg['UploadDir'] = '';
    $cfg['SaveDir'] = '';
    With config-db.php data I do try to logon, but I keep on getting the same error:

    Code:
    #0  PMA_sendHeaderLocation(http://localhost/phpmyadmin/index.php?token=7e5ae2ccb9f77209cec3cf5d93bb835a) called at [/usr/share/phpmyadmin/libraries/auth/cookie.auth.lib.php:612]
    #1  PMA_auth_set_user() called at [/usr/share/phpmyadmin/libraries/common.inc.php:821]
    #2  require_once(/usr/share/phpmyadmin/libraries/common.inc.php) called at [/usr/share/phpmyadmin/index.php:34]
    I would appreciate anybody's help to get phpmyadmin going today. It worked before and MySQL, Apache and PHP still do...
    Your problem has to do with the fact that config.inc.php is empty. This thread describes your problem. It looks like you need to reinstall phpmyadmin:

    Code:
    sudo apt-get remove phpmyadmin
    sudo apt-get install phpmyadmin
    -hope this helps, Cory

  5. #15
    Join Date
    Aug 2007
    Location
    Nine Towers
    Beans
    336
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: PHPMyAdmin after login attempt

    config-db.php has data:

    Code:
    <?php
    ##
    ## database access settings in php format
    ## automatically generated from /etc/dbconfig-common/phpmyadmin.conf
    ## by /usr/sbin/dbconfig-generate-include
    ## Sun, 07 Jun 2009 10:43:53 +0400
    ##
    ## by default this file is managed via ucf, so you shouldn't have to
    ## worry about manual changes being silently discarded.  *however*,
    ## you'll probably also want to edit the configuration file mentioned
    ## above too.
    ##
    $dbuser='user_name';
    $dbpass='p_w';
    $basepath='';
    $dbname='phpmyadmin2';
    $dbserver='';
    $dbport='';
    $dbtype='mysql';
    ?>
    and so has config.inc.php:

    Code:
    <?php
    /**
     * Debian local configuration file
     *
     * This file overrides the settings made by phpMyAdmin interactive setup
     * utility.
     *
     * For example configuration see /usr/share/doc/phpmyadmin/examples/config.default.php.gz
     *
     * NOTE: do not add security sensitive data to this file (like passwords)
     * unless you really know what you're doing. If you do, any user that can
     * run PHP or CGI on your webserver will be able to read them. If you still
     * want to do this, make sure to properly secure the access to this file
     * (also on the filesystem level).
     */
    
    /**
     * Server(s) configuration
     */
    $i = 0;
    // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
    // You can disable a server config entry by setting host to ''.
    $i++;
    
    /* Read configuration from dbconfig-common */
    require('/etc/phpmyadmin/config-db.php');
    
    /* Configure according to dbconfig-common if enabled */
    if (!empty($dbname)) {
        /* Authentication type */
        $cfg['Servers'][$i]['auth_type'] = 'cookie';
        /* Server parameters */
        if (empty($dbserver)) $dbserver = 'localhost';
        $cfg['Servers'][$i]['host'] = $dbserver;
    
        if (!empty($dbport)) {
            $cfg['Servers'][$i]['connect_type'] = 'tcp';
            $cfg['Servers'][$i]['port'] = $dbport;
        }
        //$cfg['Servers'][$i]['compress'] = false;
        /* Select mysqli if your server has it */
        $cfg['Servers'][$i]['extension'] = 'mysqli';
        /* Optional: User for advanced features */
        $cfg['Servers'][$i]['controluser'] = $dbuser;
        $cfg['Servers'][$i]['controlpass'] = $dbpass;
        /* Optional: Advanced phpMyAdmin features */
        $cfg['Servers'][$i]['pmadb'] = $dbname;
        $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
        $cfg['Servers'][$i]['relation'] = 'pma_relation';
        $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
        $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
        $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
        $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
        $cfg['Servers'][$i]['history'] = 'pma_history';
        $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
    
        /* Advance to next server for rest of config */
        $i++;
    }
    
    /* Authentication type */
    //$cfg['Servers'][$i]['auth_type'] = 'cookie';
    /* Server parameters */
    //$cfg['Servers'][$i]['host'] = 'localhost';
    //$cfg['Servers'][$i]['connect_type'] = 'tcp';
    //$cfg['Servers'][$i]['compress'] = false;
    /* Select mysqli if your server has it */
    //$cfg['Servers'][$i]['extension'] = 'mysql';
    /* Optional: User for advanced features */
    // $cfg['Servers'][$i]['controluser'] = 'pma';
    // $cfg['Servers'][$i]['controlpass'] = 'pmapass';
    /* Optional: Advanced phpMyAdmin features */
    // $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
    // $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
    // $cfg['Servers'][$i]['relation'] = 'pma_relation';
    // $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
    // $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
    // $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
    // $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
    // $cfg['Servers'][$i]['history'] = 'pma_history';
    // $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
    
    /*
     * End of servers configuration
     */
    
    /*
     * Directories for saving/loading files from server
     */
    $cfg['UploadDir'] = '';
    $cfg['SaveDir'] = '';
    So the problem must be elsewhere? Maybe the user I have does not have rights to the database? It is just that these errors don't lead me anywhere and I have reinstalled it twice now..

  6. #16
    Join Date
    Mar 2007
    Location
    Texas
    Beans
    13
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Connection for controluser as defined in your configuration failed.

    I'm so excited, my first post on Ubuntu Forms where I feel can really help. I too had this problem and was fustrated. This problem was cased by either deleting the user "phpmyadmin" or you changed phpmyadmin's password.

    If you deleted them from the table Users in the MySQL database you have to reconfigure the settings by typing in the terminal

    Code:
    sudo dpkg-reconfigure phpmyadmin
    Now follow the wizard and recreate the user phpmyadmin (set as default), when complete you can view their password by typing in the terminal

    Code:
    sudo gedit /etc/phpmyadmin/config-db.php
    With that information goto http://localhost/phpmyadmin and login using phpmyadmin as the username and the password defined in the config-db.php

    Okay so from phpmyadmin you can change your password, but if you do you must also change the password in config-db.php by using the terminal and going to.

    Code:
    sudo gedit /etc/phpmyadmin/config-db.php

    I hope this helps you out, this should also enable the relationship view in the phpmyadmin menu as well which is useful for referential integrity between tables.

  7. #17
    Join Date
    Aug 2007
    Location
    Nine Towers
    Beans
    336
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Connection for controluser as defined in your configuration failed.

    Unfortunately I waited so long that I decided to to a basic local installation of the entire package in var/www/ This one will not be updated automagically though. But I got so frustrated and decided to follow some other Ubuntu forum member on this (see http://ubuntuforums.org/showthread.p...19#post7521019). I will go through your details and I hope there is something there I missed. Then I might uninstall and do my sixth installation via apt-get.
    Question: How do you delete a user in the database using the MySQL command line?
    Last edited by Stoneface; June 26th, 2009 at 04:03 PM. Reason: addition

  8. #18
    Join Date
    Mar 2007
    Location
    Texas
    Beans
    13
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Connection for controluser as defined in your configuration failed.

    I don't know how to delete using the MySQL command line, but you can do it through phpmyadmin.

    Click on the mysql database
    Click on the user table

    From there you can view all the users. You can make changes, but note that the password field is encrypted.
    Last edited by Sizzlintrumpet; June 26th, 2009 at 04:48 PM. Reason: Not relevant

  9. #19
    Join Date
    Dec 2007
    Location
    Sitting on my bed
    Beans
    273
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Connection for controluser as defined in your configuration failed.

    I have the same problem. My config.inc.php is different to those above

    Code:
    <?php
    /*
     * This is needed for cookie based authentication to encrypt password in
     * cookie
     */
    $cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
    
    /*
     * Servers configuration
     */
    $i = 0;
    
    /*
     * First server
     */
    $i++;
    
    /* Authentication type and info */
    $cfg['Servers'][$i]['auth_type'] = 'config';
    $cfg['Servers'][$i]['user'] = 'root';
    $cfg['Servers'][$i]['password'] = '';
    $cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
    
    /* User for advanced features */
    $cfg['Servers'][$i]['controluser'] = 'pma';
    $cfg['Servers'][$i]['controlpass'] = '';
    
    /* Advanced phpMyAdmin features */
    $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
    $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
    $cfg['Servers'][$i]['relation'] = 'pma_relation';
    $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
    $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
    $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
    $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
    $cfg['Servers'][$i]['history'] = 'pma_history';
    $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
    
    /*
     * End of servers configuration
     */
    
    ?>
    Is there anything I can comment out that might help?

  10. #20
    Join Date
    May 2009
    Location
    North West England
    Beans
    2,676
    Distro
    Ubuntu Development Release

    Re: Connection for controluser as defined in your configuration failed.

    Quote Originally Posted by Sizzlintrumpet View Post
    I'm so excited, my first post on Ubuntu Forms where I feel can really help. I too had this problem and was fustrated. This problem was cased by either deleting the user "phpmyadmin" or you changed phpmyadmin's password.

    If you deleted them from the table Users in the MySQL database you have to reconfigure the settings by typing in the terminal

    Code:
    sudo dpkg-reconfigure phpmyadmin
    Now follow the wizard and recreate the user phpmyadmin (set as default), when complete you can view their password by typing in the terminal

    Code:
    sudo gedit /etc/phpmyadmin/config-db.php
    With that information goto http://localhost/phpmyadmin and login using phpmyadmin as the username and the password defined in the config-db.php

    Okay so from phpmyadmin you can change your password, but if you do you must also change the password in config-db.php by using the terminal and going to.

    Code:
    sudo gedit /etc/phpmyadmin/config-db.php
    I hope this helps you out, this should also enable the relationship view in the phpmyadmin menu as well which is useful for referential integrity between tables.

    He he ... will you marry me ?!!!

    Thanks, I was hacked a while back and did a re-install - this error message kept cropping up. Oddly enough the root login worked with the new p/w - obviously (now) it was the phpmyadmin internal bit that had not been restored.

    Phill.

    P.S. - the answer here is top of the list for google search
    MySQL Connection for controluser as defined in your configuration failed.
    Last edited by phillw; September 23rd, 2009 at 11:31 PM. Reason: google

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •