登陆后出现:
Index of /phpMyAdmin-3.5.1-all-languages
而没有出现登陆窗口。phpMyAdmin我是解压到了这里。
/var/www/html/phpMyAdmin-3.5.1-all-languageslibraries/config.default.php
配置文件如下:
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin-3.5.1-all-languages/';

解决方案 »

  1.   

    你要访问 http://localhost/phpMyAdmin-3.5.1-all-languages/ 而不是 http://localhost
    你确定你没弄错?
      

  2.   

    我刚学MySQL,装phpMyAdmin之前没先装php。
    难道是这个原因?我现在浏览器输入http://localhost/phpMyAdmin-3.5.1-all-languages/
    出现下面的php代码,没有出现登陆界面<?php
    /* vim: set expandtab sw=4 ts=4 sts=4: */
    /**
     * forms frameset
     *
     *                                              or common.inc.php
     * @package PhpMyAdmin
     *//**
     * Gets core libraries and defines some variables
     */
    require_once './libraries/common.inc.php';// free the session file, for the other frames to be loaded
    session_write_close();// Gets the host name
    if (empty($HTTP_HOST)) {
        if (PMA_getenv('HTTP_HOST')) {
            $HTTP_HOST = PMA_getenv('HTTP_HOST');
        } else {
      

  3.   

    吼吼是的,你没有装php。环境安装有点麻烦,新手的话不如先装个wamp,它自带了phpmyadmin
    如果你的专业方向只是mysql数据库,那不如直接在命令行下敲命令吧!
      

  4.   

    刚把php装上了。
    但为什么打开
    http://localhost/phpMyAdmin-3.5.1-all-languages/index.php
    还是显示代码的形式呢?
    vi /var/www/html/info.php
     
     <?php
     
     phpinfo();
     
     ?>我测试了下这个info.php能正常运行了。
    为什么
    http://localhost/phpMyAdmin-3.5.1-all-languages/index.php还是没有显示登陆界面,只显示php代码呢
      

  5.   

    你的info.php能正常运行是怎么个能运行法?我猜应该你的php环境还是没有正确的安装好吧
      

  6.   

    1:将 phpMyAdmin-3.5.1-all-languages 重命名为 phpMyAdmin
    2:复制一份phpMyAdmin 里面的 config.sample.inc.php ,将其命名为:config.inc.php
    3:找到下面两行,将//注释符去掉。并改为你mysql的用户名与密码。
    // $cfg['Servers'][$i]['controluser'] = 'pma';
    // $cfg['Servers'][$i]['controlpass'] = 'pmapass';4:url上输入 http://localhost/phpMyAdmin/index.php进行访问。
      

  7.   


    就显示出一些参数啊。
    不是显示php代码了。
      

  8.   

    PHP Version 5.3.8
    System Linux localhost.localdomain 2.6.35.14-106.fc14.i686 #1 SMP Wed Nov 23 13:57:33 UTC 2011 i686
    Build Date Sep 28 2011 17:35:06
    Configure Command  './configure' '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite3' '--disable-phar' '--disable-fileinfo' '--d
      

  9.   

    照你这么说应该环境是正常了 
    phpmyadmin 不是有个setup 可以进去里面生成一个相关配置文件的操作的. 不过我记得我即使不生成这个文件也不会出现php代码... ...
      

  10.   

    完全按你做了,还是不行。还是没有出现登陆界面,只有代码。
    ?php
    /* vim: set expandtab sw=4 ts=4 sts=4: */
    /**
     * forms frameset
     *
     *                                              or common.inc.php
     * @package PhpMyAdmin
     *//**
     * Gets core libraries and defines some variables
     */
    require_once './libraries/common.inc.php';// free the session file, for the other frames to be loaded
    session_write_close();// Gets the host name
    if (empty($HTTP_HOST)) {
        if (PMA_getenv('HTTP_HOST')) {
            $HTTP_HOST = PMA_getenv('HTTP_HOST');
        } else {
            $HTTP_HOST = '';
        }
    }
    // purge querywindow history
    $cfgRelation = PMA_getRelationsParam();
    if ($GLOBALS['cfg']['QueryHistoryDB'] && $cfgRelation['historywork']) {
        PMA_purgeHistory($GLOBALS['cfg']['Server']['user']);
    }
    unset($cfgRelation);
      

  11.   

    ...?php 这么开头的?
    你看看源代码如果是?php 前面加个< 然后看看 你是不是改过文件啊
      

  12.   

    是啊。那个test.php都显示正常了。
    可phpmyadmin进去后还出现php代码。
      

  13.   

    不好意思。我复制差了一个符号<?php
    /* vim: set expandtab sw=4 ts=4 sts=4: */
    /**
     * forms frameset
     *
     *                                              or common.inc.php
     * @package PhpMyAdmin
     *//**
     * Gets core libraries and defines some variables
     */
    require_once './libraries/common.inc.php';// free the session file, for the other frames to be loaded
    session_write_close();// Gets the host name
    if (empty($HTTP_HOST)) {
        if (PMA_getenv('HTTP_HOST')) {
            $HTTP_HOST = PMA_getenv('HTTP_HOST');
        } else {
            $HTTP_HOST = '';
        }
    }
    // purge querywindow history
    $cfgRelation = PMA_getRelationsParam();
    if ($GLOBALS['cfg']['QueryHistoryDB'] && $cfgRelation['historywork']) {
        PMA_purgeHistory($GLOBALS['cfg']['Server']['user']);
    }
      

  14.   


    没碰过这种事情,你仔细看看那个索引文件是不是php结尾的...还是变成index.html了....
    你apache默认索引的文件没改过吧?要修改成index.php index.html ....
      

  15.   

    重启了下浏览器。
    http://localhost/phpMyAdmin-3.5.1-all-languages/
    用firefox登陆还是出现上面那个问题,还是显示php代码。
    但用google chrome
    重新登陆,终于有点转机了。
    出现
    phpMyAdmin - Error
    Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.请问错误日记在php和apache的哪个位置
      

  16.   

    我php是这样安装的
    yum install php
    没做什么配置。
      

  17.   

    我们在对phpMyAdmin进行安装后,还需要对其进行详细的配置,下面我们就为大家介绍如何正确的执行phpMyAdmin配置所有可配置数据都放在config.inc.php3中。从1.4.2版本开始,phpMyAdmin支持对多个MySQL-server的管理。所以,增加了$cfgServers数组来存放不同服务器的登 录信息。$cfgServers[1]["host"]包含了第一个服务器的主机名,$cfgServers[2]["host"]为第二个服务器的主机 等,等等。如果你只有一个服务器要管理,可以简单地不去理会其它$cfgServers入口的主机名。$cfgServers[n]["port"] 字符串第n个MySQL服务器的端口号。缺省值为3300(保留空值)。phpMyAdmin配置之$cfgServers[n]["host"] 字符串 第n个MySQL服务器的主机名。例如,localhost。$cfgServers[n]["adv_auth"] 布尔值 对这个服务器应该使用基本或是高级认证方式。基本认证方式($adv_auth = false)是普通的老的作法:用 户名和口令被存在config.inc.php3中。高级认证方式($adv_auth = true)从1.3.0版开始引入,允许你通过HTTP- Auth来作为合法的MySQL的用户进行登录。在config.inc中你只需要提供一个标准用户,他能够连接到MySQL上并且可以读出mysql库 的user/db表(看$cfgServers[n]["stduser"])。推荐使用高级方式管理的场合:当phpMyAdmin运行在多用户环境下,人们拥有shell处理权限时,你不想知道MySQL的用户名/口令。当你想让用户存取他们自已的数据库,并且不想他们干扰其他人。http://www.phpnewer.com/index.php/Dmaq/detail/id/301
      

  18.   

    在地址后面输入 /setup/什么的 自己查看一下你的文件夹对应的文件产生一个配置文件,看帮助。相关的权限也修改好,最后清空浏览器的缓存,重启apache...
    你是Centos吧?据说这个权限比较变态,还没试过,你小心设置.
      

  19.   

    只用php运行你的phpinfo()代码也会有结果出来,而在浏览器上出现代码,说明Apache没有解析.php文件。
    所以正确配置Apache、PHP和mysql:http://download.csdn.net/detail/dmtnewtons/4253940
      

  20.   

    我卸载好直接用yum重装就好了。以后新接触一些东西还是直接yum install好!
      

  21.   

    出现代码就说明php没有被编译,你的php没配置好