Newsgroup: it.comp.os.linux.iniziare
Titolo: [RedHat9]Phpmyadmin

Ciao a tutti.
Volevo chiedervi come si installano i tar, quello che riporto qui sotto
è quello che ho fatto:
Scarico da internet il file tar.gz e lo salvo nella mia home :
#/home/davide
lo scompatto con :
tar zxvf
e il risultato finale è:
[root@XXXX davide]# ls
phpMyAdmin-2.5.4  phpMyAdmin-2.5.4-php3.tar.gz
[root@XXXX davide]# cd phpMyAdmin-2.5.4
[root@XXXX phpMyAdmin-2.5.4]# ls
ANNOUNCE.txt                  Documentation.html         querywindow.php3
tbl_printview.php3
badwords.txt                  Documentation.txt          read_dump.php3
tbl_properties_common.php3
browse_foreigners.php3        export.php3                README
tbl_properties_export.php3
ChangeLog                     footer.inc.php3            RELEASE-DATE-2.5.4
tbl_properties.inc.php3
chk_rel.php3                  header.inc.php3            scripts
tbl_properties_links.php3
config.inc.php3               header_printview.inc.php3
server_collations.php3   tbl_properties_operations.php3
CREDITS                       images
server_common.inc.php3   tbl_properties.php3
css                           index.php3
server_databases.php3    tbl_properties_structure.php3
db_create.php3                INSTALL                    server_export.php3
tbl_properties_table_info.php3
db_datadict.php3              lang
server_links.inc.php3    tbl_query_box.php3
db_details_common.php3        ldi_check.php3
server_privileges.php3   tbl_relation.php3
db_details_db_info.php3       ldi_table.php3
server_processlist.php3  tbl_rename.php3
db_details_export.php3        left.php3                  server_status.php3
tbl_replace_fields.php3
db_details_importdocsql.php3  libraries
server_variables.php3    tbl_replace.php3
db_details_links.php3         LICENSE                    sql.php3
tbl_row_delete.php3
db_details.php3               main.php3                  tbl_addfield.php3
tbl_select.php3
db_details_qbe.php3           mult_submits.inc.php3      tbl_alter.php3
TODO
db_details_structure.php3     pdf_pages.php3             tbl_change.php3
transformation_wrapper.php3
db_printview.php3             pdf_schema.php3            tbl_create.php3
translators.html
db_search.php3                phpinfo.php3               tbl_indexes.php3
user_password.php3
docs.css                      queryframe.php3            tbl_move_copy.php3
Cosa faccio a questo punto?

 Cosa faccio a questo punto?
Metti tutto in /var/www/html/phpmyadmin/
E accedi dal browser con 
http://localhost/phpmyadmin/
Se hai installato apache e i moduli php e quelli mysql dovrebbe funzionare.
Ciao, Daniele.

 Se hai installato apache e i moduli php e quelli mysql dovrebbe
funzionare.
Ho fatto quello che mi hai detto ma all'indirizzo:
http://localhost/phpmyadmin/index.php3
La pagina mi restituisce nella pagina del browser questo:
============================================================================
======================================
<?php
/* $Id: index.php3,v 1.54 2003/07/11 09:35:05 rabus Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:
/**
 * Gets core libraries and defines some variables
 */
require('./libraries/grab_globals.lib.php3');
require('./libraries/common.lib.php3');
// Gets the default font sizes
PMA_setFontSizes();
// Gets the host name
// loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
if (empty($HTTP_HOST)) {
    if (!empty($_ENV) && isset($_ENV['HTTP_HOST'])) {
        $HTTP_HOST = $_ENV['HTTP_HOST'];
    }
    else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['HTTP_HOST'])) {
        $HTTP_HOST = $HTTP_ENV_VARS['HTTP_HOST'];
    }
    else if (@getenv('HTTP_HOST')) {
        $HTTP_HOST = getenv('HTTP_HOST');
    }
    else {
        $HTTP_HOST = '';
    }
}
/**
 * Defines the frameset
 */
// loic1: If left light mode -> urldecode the db name
if (isset($lightm_db)) {
// no longer urlencoded because of html entities in the db name
//    $db    = urldecode($lightm_db);
    $db    = $lightm_db;
    unset($lightm_db);
}
$url_query = PMA_generate_common_url(isset($db) ? $db : '');
header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
require('./libraries/relation.lib.php3');
$cfgRelation = PMA_getRelationsParam();
if ($cfg['QueryHistoryDB'] && $cfgRelation['historywork']) {
    PMA_purgeHistory($cfg['Server']['user']);
}
$phpmain_hash = md5($cfg['PmaAbsoluteUri']);
$phpmain_hash_js = time();
?>
<!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
$available_languages[$lang][2]; ?>" lang="<?php echo
$available_languages[$lang][2]; ?>" dir="<?php echo $text_dir; ?>">
<head>
<title>phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST;
?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo
$charset; ?>" />
<link rel="stylesheet" type="text/css"
href="./css/phpmyadmin.css.php3?lang=<?php echo $lang;
?>&amp;js_frame=right" />
</head>
<?php
if ($cfg['QueryFrame']) {
    if ($cfg['QueryFrameJS']) {
        echo '<script type="text/javascript">' . "\n";
        echo '<!--' . "\n";
        echo '    document.writeln(\'<frameset cols="' . $cfg['LeftWidth'] .
',*" rows="*" border="1" frameborder="1" framespacing="0">\');' . "\n";
        echo '    document.writeln(\'    <frameset rows="*, 50"
framespacing="0" frameborder="0" border="0">\');' . "\n";
        echo '    document.writeln(\'        <frame src="left.php3?' .
$url_query . '&amp;hash=' . $phpmain_hash . $phpmain_hash_js . '" name="nav"
frameborder="0" />\');' . "\n";
        echo '    document.writeln(\'        <frame src="queryframe.php3?' .
$url_query . '&amp;hash=' . $phpmain_hash . $phpmain_hash_js . '"
name="queryframe" frameborder="0" scrolling="no" />\');' . "\n";
        echo '    document.writeln(\'    </frameset>\');' . "\n";
        echo '    document.writeln(\'    <frame src="' . (empty($db) ?
$cfg['DefaultTabServer']  : $cfg['DefaultTabDatabase']) . '?' . $url_query .
'" name="phpmain' . $phpmain_hash . $phpmain_hash_js . '" border="0"
frameborder="0" />\');' . "\n";
        echo '    document.writeln(\'    <noframes>\');' . "\n";
        echo '    document.writeln(\'        <body bgcolor="#FFFFFF">\');' .
"\n";
        echo '    document.writeln(\'            <p>' . str_replace("'",
"\'", $strNoFrames) . '</p>\');' . "\n";
        echo '    document.writeln(\'        </body>\');' . "\n";
        echo '    document.writeln(\'    </noframes>\');' . "\n";
        echo '    document.writeln(\'</frameset>\');' . "\n";
        echo '//-->' . "\n";
        echo '</script>' . "\n";
        echo "\n";
        echo '<noscript>' . "\n";
    }
    echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*"  border="1"
frameborder="1" framespacing="0">' . "\n";
    echo '    <frameset rows="*, 50" framespacing="0" frameborder="0"
border="0">' . "\n";
    echo '        <frame src="left.php3?' . $url_query . '&amp;hash=' .
$phpmain_hash . '" name="nav" frameborder="0" />' . "\n";
    echo '        <frame src="queryframe.php3?' . $url_query . '&amp;hash='
. $phpmain_hash . '" name="queryframe" frameborder="0" scrolling="no" />' .
"\n";
    echo '    </frameset>' . "\n";
    echo '    <frame src="' . (empty($db) ? $cfg['DefaultTabServer']  :
$cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' .
$phpmain_hash . '" frameborder="0" />' . "\n";
} else {
    echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" border="1"
frameborder="1" framespacing="0">' . "\n";
    echo '    <frame src="left.php3?' . $url_query . '&amp;hash=' .
$phpmain_hash . '" name="nav" frameborder="0" />' . "\n";
    echo '    <frame src="' . (empty($db) ? $cfg['DefaultTabServer']  :
$cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' .
$phpmain_hash . '" frameborder="1" />' . "\n";
}
?>
    <noframes>
        <body bgcolor="#FFFFFF">
            <p><?php echo $strNoFrames; ?></p>
        </body>
    </noframes>
</frameset>
<?php
if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
    echo '</noscript>' . "\n";
}
?>
</html>
============================================================================
===================================

 // vim: expandtab sw=4 ts=4 sts=4:
[cut]
E' probabile che non abbia installato il modulo php per l'apache.
Fai:
[user@linuxbox user]$ rpm -qa | grep php
php-mysql-4.3.0-2mdk
libphp_common430-430-11mdk
php-xml-4.3.0-2mdk
mod_php-4.3.1-1mdk
php-ini-4.3.0-1mdk
Per vedere se hai installato tutto.
Ciao, Daniele.

 Per vedere se hai installato tutto.
[davide@XXXX davide]$ rpm -qa | grep php
php-imap-4.2.2-17
php-4.2.2-17
php-ldap-4.2.2-17
php-pgsql-4.2.2-17
php-odbc-4.2.2-17
php-mysql-4.2.2-17
Non sono uguali a quello che hai scritto

meidei ha scritto:

Ti manca mod_php che è il modulo usato dall'apache per interpretare le
pagine che hanno estensione php o php3 o ...
Non sono sicuro che ti serva anche libphp, prova prima con il mod.
Ciao, Daniele.

Dalla descrizione del package di libphp_common430 risulta:
-----------
This package provides the common files to run with different implementations
of PHP. You need this package if you install the php standalone package or
a webserver with php support (ie: mod_php).
-----------
Io l'ho installato.

 
Oppure che non siano state messe le giuste opzioni in 
/etc/apache/httpd.conf, riguardanti i moduli php e le estensioni php. 
Con cat /etc/apache/httpd.conf | grep php, si dovrebbe trovare tutto il 
necessario.
Ciao, Paolo