nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

phpmyadmin question

This is a discussion on phpmyadmin question within the Databases servers forums, part of the Mastering Servers category; Hi all i have just installed debian etch in an old machine i have to start learning mysql and php.I ...


Go Back   nixCraft Linux Forum > Mastering Servers > Databases servers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-12-2007, 02:15 AM
Junior Member
User
 
Join Date: May 2007
Location: Greece
My distro: Debian
Posts: 4
Rep Power: 0
paul555 is on a distinguished road
Default phpmyadmin question

Hi all i have just installed debian etch in an old machine i have to start learning mysql and php.I installed apache mysql php and phpmyadmin but when i try from my main machine to do
Code:
http://myhostname/phpmyadmin/
it shows me only that
PHP Code:
<?php
/* $Id: index.php 9718 2006-11-18 11:21:43Z lem9 $ */
// vim: expandtab sw=4 ts=4 sts=4:
/**
 * forms frameset
 *
 * @uses    libraries/common.lib.php        global fnctions
 * @uses    libraries/relation.lib.php      table relations
 * @uses    $GLOBALS['strNoFrames']
 * @uses    $GLOBALS['cfg']['QueryHistoryDB']
 * @uses    $GLOBALS['cfg']['Server']['user']
 * @uses    $GLOBALS['cfg']['DefaultTabServer']     as src for the mainframe
 * @uses    $GLOBALS['cfg']['DefaultTabDatabase']   as src for the mainframe
 * @uses    $GLOBALS['cfg']['NaviWidth']            for navi frame width
 * @uses    $GLOBALS['collation_connection']    from $_REQUEST (grab_globals.lib.php)
 *                                              or common.lib.php
 * @uses    $GLOBALS['available_languages'] from common.lib.php (select_lang.lib.php)
 * @uses    $GLOBALS['db']
 * @uses    $GLOBALS['charset']
 * @uses    $GLOBALS['lang']
 * @uses    $GLOBALS['text_dir']
 * @uses    $_ENV['HTTP_HOST']
 * @uses    PMA_getRelationsParam()
 * @uses    PMA_purgeHistory()
 * @uses    PMA_generate_common_url()
 * @uses    PMA_VERSION
 * @uses    session_write_close()
 * @uses    time()
 * @uses    PMA_getenv()
 * @uses    header()                to send charset
 */

/**
 * Gets core libraries and defines some variables
 */
require_once './libraries/common.lib.php';

/**
 * Includes the ThemeManager if it hasn't been included yet
 */
require_once './libraries/relation.lib.php';

// free the session file, for the other frames to be loaded
session_write_close();

// Gets the host name
// loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
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);


/**
 * pass variables to child pages
 */
$drops = array('lang''server''convcharset''collation_connection',
    
'db''table');

foreach (
$drops as $each_drop) {
    if (! 
array_key_exists($each_drop$_GET)) {
        unset(
$_GET[$each_drop]);
    }
}
unset(
$drops$each_drop);

if (! isset(
$GLOBALS['db']) || ! strlen($GLOBALS['db'])) {
    
$main_target $GLOBALS['cfg']['DefaultTabServer'];
} elseif (! isset(
$GLOBALS['table']) || ! strlen($GLOBALS['table'])) {
    
$_GET['db'] = $GLOBALS['db'];
    
$main_target $GLOBALS['cfg']['DefaultTabDatabase'];
} else {
    
$_GET['db'] = $GLOBALS['db'];
    
$_GET['table'] = $GLOBALS['table'];
    
$main_target $GLOBALS['cfg']['DefaultTabTable'];
}

$url_query PMA_generate_common_url($_GET);

if (isset(
$GLOBALS['target']) && is_string($GLOBALS['target']) && !empty($GLOBALS['target']) && in_array($GLOBALS['target'], $goto_whitelist)) {
    
$main_target $GLOBALS['target'];
}

$main_target .= $url_query;

$lang_iso_code $GLOBALS['available_languages'][$GLOBALS['lang']][2];


// start output
header('Content-Type: text/html; charset=' $GLOBALS['charset']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xml:lang="<?php echo $lang_iso_code?>"
    lang="<?php echo $lang_iso_code?>"
    dir="<?php echo $GLOBALS['text_dir']; ?>">
<head>
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<title>phpMyAdmin <?php echo PMA_VERSION?> -
    <?php echo htmlspecialchars($HTTP_HOST); ?></title>
<meta http-equiv="Content-Type"
    content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
<script type="text/javascript" language="javascript">
// <![CDATA[
    // definitions used in querywindow.js
    var common_query = '<?php echo PMA_escapeJsString(PMA_generate_common_url('''''&'));?>';
    var opendb_url = '<?php echo PMA_escapeJsString($GLOBALS['cfg']['DefaultTabDatabase']); ?>';
    var safari_browser = <?php echo PMA_USR_BROWSER_AGENT == 'SAFARI' 'true' 'false' ?>;
    var querywindow_height = <?php echo PMA_escapeJsString($GLOBALS['cfg']['QueryWindowHeight']); ?>;
    var querywindow_width = <?php echo PMA_escapeJsString($GLOBALS['cfg']['QueryWindowWidth']); ?>;
    var collation_connection = '<?php echo PMA_escapeJsString($GLOBALS['collation_connection']); ?>';
    var lang = '<?php echo PMA_escapeJsString($GLOBALS['lang']); ?>';
    var server = '<?php echo PMA_escapeJsString($GLOBALS['server']); ?>';
    var table = '<?php echo PMA_escapeJsString($GLOBALS['table']); ?>';
    var db    = '<?php echo PMA_escapeJsString($GLOBALS['db']); ?>';
    var text_dir = '<?php echo PMA_escapeJsString($GLOBALS['text_dir']); ?>';
    var pma_absolute_uri = '<?php echo PMA_escapeJsString($GLOBALS['cfg']['PmaAbsoluteUri']); ?>';
// ]]>
</script>
<script src="./js/querywindow.js" type="text/javascript" language="javascript">
</script>
</head>
<frameset cols="<?php
if ($GLOBALS['text_dir'] === 'rtl') {
    echo 
'*,';
}
echo 
$GLOBALS['cfg']['NaviWidth'];
if (
$GLOBALS['text_dir'] === 'ltr') {
    echo 
',*';
}
?>" rows="*" id="mainFrameset">
    <?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
    <frame frameborder="0" id="frame_navigation"
        src="left.php<?php echo $url_query?>"
        name="frame_navigation" />
    <?php ?>
    <frame frameborder="0" id="frame_content"
        src="<?php echo $main_target?>"
        name="frame_content" />
    <?php if ($GLOBALS['text_dir'] === 'rtl') { ?>
    <frame frameborder="0" id="frame_navigation"
        src="left.php<?php echo $url_query?>"
        name="frame_navigation" />
    <?php ?>
    <noframes>
        <body>
            <p><?php echo $GLOBALS['strNoFrames']; ?></p>
        </body>
    </noframes>
</frameset>
<script type="text/javascript" language="javascript">
// <![CDATA[
<?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
    var frame_content = window.frames[1];
    var frame_navigation = window.frames[0];
<?php } else { ?>
    var frame_content = window.frames[0];
    var frame_navigation = window.frames[1];
<?php ?>
// ]]>
</script>
</html>
Any ideas?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-12-2007, 11:24 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 910
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Hi,

Your php version is not configured properly. To enable php5, type
Code:
a2enmod php5
/etc/init.d/apache2 force-reload
Now php5 should work. Let me know if you need any further assistance
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 07-13-2007, 08:27 AM
Junior Member
User
 
Join Date: May 2007
Location: Greece
My distro: Debian
Posts: 4
Rep Power: 0
paul555 is on a distinguished road
Default

Thanks it worked
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
PHPMyAdmin Problems JoeDively Coding in General 0 09-21-2007 09:30 PM
PhpmyAdmin-Can browse/search some tables, but not others blinton25 Databases servers 1 06-08-2007 11:28 PM
C question TOP Coding in General 1 07-08-2006 12:14 AM
C question TOP Coding in General 3 03-10-2006 11:08 PM
question TOPHUMAN Shell scripting 1 02-06-2006 01:25 PM


All times are GMT +5.5. The time now is 05:10 PM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36