phpmyadmin

Discussion in 'Server Operation' started by happz, Mar 13, 2017.

  1. happz

    happz Member

    When I tried to open a database, https://site.com:8080/phpmyadmin I only see the text of the data.

    Example:
    <?php
    /* vim: set expandtab sw=4 ts=4 sts=4: */
    /**
    * Main loader script
    *
    * @package PhpMyAdmin
    */

    /**
    * Gets some core libraries and displays a top message if required
    */
    require_once 'libraries/common.inc.php';

    /**
    * display Git revision if requested
    */
    require_once 'libraries/display_git_revision.lib.php';
    require_once 'libraries/Template.class.php';

    /**
    * pass variables to child pages
    */
    $drops = array(
    'lang',
    'server',
    'collation_connection',
    'db',
    'table'
    );
    foreach ($drops as $each_drop) {
    if (array_key_exists($each_drop, $_GET)) {
    unset($_GET[$each_drop]);
    }
    }
    unset($drops, $each_drop);

    /*
    * Black list of all scripts to which front-end must submit data.
    * Such scripts must not be loaded on home page.
    *
    */
    $target_blacklist = array (
    'import.php', 'export.php'
    );

    // If we have a valid target, let's load that script instead
    if (! empty($_REQUEST['target'])
    && is_string($_REQUEST['target'])
    && ! preg_match('/^index/', $_REQUEST['target'])
    && ! in_array($_REQUEST['target'], $target_blacklist)
    && in_array($_REQUEST['target'], $goto_whitelist)
    ) {
    include $_REQUEST['target'];
    exit;
    }

    if (isset($_REQUEST['ajax_request']) && ! empty($_REQUEST['access_time'])) {.........

    PHPMYADMIN won't open.. any ideas?

    Thanks,
    Happz
     
  2. That's the handler issue. Try setting up handler as per your PHP version within phpmyadmin folder
     

Share This Page