Cannot login to phpmyadmin

Discussion in 'HOWTO-Related Questions' started by penkku, Feb 24, 2011.

  1. penkku

    penkku New Member

    I had followed the The Perfect Server - Ubuntu 10.04 [ISPConfig 3].
    Everything seems ok.
    But cannot login to phpmyadmin.
    404 Not Found Error.
    What is going wrong ?

    Here is part of /etc/phpmyadmin/config.inc.php:
    Code:
    
    /**
     * 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
     * You can regenerate it using: dpkg-reconfigure -plow phpmyadmin
     */
    if (is_readable('/etc/phpmyadmin/config-db.php')) {
        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';
    
        /* Uncomment the following to enable logging in to passwordless accounts,
         * after taking note of the associated security risks. */
        // $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
    
        /* Advance to next server for rest of config */
        $i++;
    }
    
    $cfg['UploadDir'] = '';
    $cfg['SaveDir'] = '';
    
    
    and here is part of apache2 error.log(ip address was edited):
    Code:
    [Thu Feb 24 14:00:52 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:02:48 2011] [error] [client 203.97.150.161] script '/var/www/autoupdate.config.php' not found or unable to stat
    [Thu Feb 24 14:02:49 2011] [error] [client 203.97.150.161] script '/var/www/getupdatepackage.php' not found or unable to stat
    [Thu Feb 24 14:03:10 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:03:49 2011] [error] [client 203.208.60.213] script '/var/www/gallery.php' not found or unable to stat
    [Thu Feb 24 14:05:08 2011] [error] [client 218.241.226.131] script '/var/www/autoupdate.config.php' not found or unable to stat
    [Thu Feb 24 14:05:08 2011] [error] [client 218.241.226.131] script '/var/www/getupdatepackage.php' not found or unable to stat
    [Thu Feb 24 14:05:25 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:06:20 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:07:00 2011] [error] [client 203.208.60.213] File does not exist: /var/www/api
    [Thu Feb 24 14:07:10 2011] [error] [client 58.34.26.49] script '/var/www/autoupdate.config.php' not found or unable to stat
    [Thu Feb 24 14:07:11 2011] [error] [client 58.34.26.49] script '/var/www/getupdatepackage.php' not found or unable to stat
    [Thu Feb 24 14:07:35 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:09:44 2011] [error] [client 203.208.60.213] script '/var/www/gallery.php' not found or unable to stat
    [Thu Feb 24 14:09:51 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:10:39 2011] [error] [client 49.240.155.234] File does not exist: /var/www/favicon.ico
    [Thu Feb 24 14:10:42 2011] [error] [client 49.240.155.234] File does not exist: /var/www/favicon.ico
    [Thu Feb 24 14:12:12 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:14:22 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:14:35 2011] [error] [client 203.208.60.91] script '/var/www/batch.common.php' not found or unable to stat
    [Thu Feb 24 14:15:00 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:18:07 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:18:07 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:18:53 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:20:27 2011] [error] [client 203.208.60.213] script '/var/www/gallery.php' not found or unable to stat
    [Thu Feb 24 14:20:31 2011] [error] [client 203.208.60.213] script '/var/www/feed.php' not found or unable to stat
    [Thu Feb 24 14:20:55 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:21:11 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:23:26 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:23:39 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:24:33 2011] [error] [client 203.208.60.91] script '/var/www/batch.common.php' not found or unable to stat
    [Thu Feb 24 14:25:07 2011] [error] [client 111.192.166.253] script '/var/www/autoupdate.config.php' not found or unable to stat
    [Thu Feb 24 14:25:08 2011] [error] [client 111.192.166.253] script '/var/www/getupdatepackage.php' not found or unable to stat
    [Thu Feb 24 14:25:41 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:27:46 2011] [error] [client 220.181.108.166] script '/var/www/home.php' not found or unable to stat
    [Thu Feb 24 14:29:32 2011] [error] [client 203.208.60.91] script '/var/www/batch.common.php' not found or unable to stat
    [Thu Feb 24 14:29:57 2011] [error] [client 221.223.99.125] File does not exist: /var/www/phpmyadmin
    [Thu Feb 24 14:30:23 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:30:39 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:31:11 2011] [error] [client 203.208.60.213] script '/var/www/gallery.php' not found or unable to stat
    [Thu Feb 24 14:32:20 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:32:36 2011] [error] [client 221.223.99.125] File does not exist: /var/www/phpmyadmin
    [Thu Feb 24 14:32:36 2011] [error] [client 221.223.99.125] File does not exist: /var/www/favicon.ico
    [Thu Feb 24 14:32:45 2011] [error] [client 221.223.99.125] File does not exist: /var/www/apps/phpmyadmin
    [Thu Feb 24 14:32:45 2011] [error] [client 221.223.99.125] File does not exist: /var/www/apps/favicon.ico
    [Thu Feb 24 14:32:52 2011] [error] [client 221.223.99.125] File does not exist: /usr/local/ispconfig/interface/web/phpmyadmin
    [Thu Feb 24 14:32:52 2011] [error] [client 221.223.99.125] File does not exist: /usr/local/ispconfig/interface/web/favicon.ico
    [Thu Feb 24 14:33:03 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:34:45 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:35:21 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:36:54 2011] [error] [client 221.223.99.125] PHP Notice:  Undefined variable: wb in /usr/local/ispconfig/interface/lib/app.inc.php on line 187, referer: http://202.85.xxx.xx:8080/
    [Thu Feb 24 14:37:02 2011] [error] [client 203.208.60.91] script '/var/www/cp.php' not found or unable to stat
    [Thu Feb 24 14:37:09 2011] [error] [client 203.208.60.213] script '/var/www/feed.php' not found or unable to stat
    [Thu Feb 24 14:37:10 2011] [error] [client 221.223.99.125] PHP Notice:  Undefined index: login in /usr/local/ispconfig/interface/lib/classes/plugin.inc.php on line 140, referer: http://202.85.xxx.xx:8080/
    [Thu Feb 24 14:37:10 2011] [error] [client 221.223.99.125] PHP Notice:  Undefined variable: wb in /usr/local/ispconfig/interface/lib/app.inc.php on line 187, referer: http://202.85.xxx.xx:8080/index.php
    [Thu Feb 24 14:37:20 2011] [error] [client 221.223.99.125] PHP Notice:  Undefined variable: wb in /usr/local/ispconfig/interface/lib/app.inc.php on line 187, referer: http://202.85.xxx.xx:8080/index.php
    [Thu Feb 24 14:38:27 2011] [error] [client 221.223.99.125] PHP Notice:  Undefined variable: html_server in /usr/local/ispconfig/interface/web/monitor/show_sys_state.php on line 237, referer: http://202.85.xxx.xx:8080/index.php
    [Thu Feb 24 14:38:27 2011] [error] [client 221.223.99.125] PHP Notice:  Undefined index: unknown in /usr/local/ispconfig/interface/web/monitor/show_sys_state.php on line 255, referer: http://202.85.xxx.xx:8080/index.php
    @
     
  2. penkku

    penkku New Member

    The problem solved.

    phpmyadmin's default list are in /usr/share/phpmyadmin and /etc/phpmyadmin.
    need make a soft link to /var/www using below code:
    Code:
    cd /var/www
    sudo ln -s /usr/share/phpmyadmin
    
     

Share This Page