Visualizzazione risultati 1 fino 10 di 10

Discussione: Problema con Joomla e Phpmyadmin

  1. #1
    Guest

    Predefinito Problema con Joomla e Phpmyadmin

    Ciao a tutti, non so come fare ad installare phpmyadmin nel mio spazio web di altervista.
    Ho caricato tutto il pacchetto che ho scaricato dal sito di phpmyadmin, ma quando vado ad iniziare l'installazione mi compare un errore con scritto:
    Non posso far partire la sessione senza errori, controlla gli errori nel log di PHP e/o del tuo server web e configura correttamente la tua installazione di PHP.

    Come devo fare x installare phpmyadmin, creare un db e buttargli dentro i file di joomla?

    Grazie mille ...

  2. #2
    Guest

    Predefinito

    Non hai bisogno di installarlo, AV lo ha già, basta andare nella sezione tools del tuo pannello di controllo.

    PS: prima di tutte queste operazioni devi attivare il database, per maggiori info fai qualche ricerca nel forum.


    Ciao!

  3. #3
    Guest

    Predefinito

    Eccola:

    Codice PHP:
    <?php
    /* vim: set expandtab sw=4 ts=4 sts=4: */
    /**
    * <code>
    * N N OOO !! DDDD OOO N N OOO TTTTT EEEE DDDD I TTTTT !!
    * NN N O O !! D D O O NN N O O T E D D I T !!
    * N N N O O !! D D O O N N N O O T EEEE D D I T !!
    * N NN O O D D O O N NN O O T E D D I T
    * N N OOO !! DDDD OOO N N OOO T EEEE DDDD I T !!
    * </code>
    *
    * DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
    *
    * phpMyAdmin default configuration, you can copy values from here to your
    * config.inc.php
    *
    * All directives are explained in Documentation.html
    *
    * @version $Id: config.default.php 10556 2007-08-11 13:11:31Z lem9 $
    */

    /**
    * Your phpMyAdmin URL.
    *
    * Complete the variable below with the full URL ie
    * [url]http://www.your_web.net/path_to_your_phpMyAdmin_directory/[/url]
    *
    * It must contain characters that are valid for a URL, and the path is
    * case sensitive on some Web servers, for example Unix-based servers.
    *
    * In most cases you can leave this variable empty, as the correct value
    * will be detected automatically. However, we recommend that you do
    * test to see that the auto-detection code works in your system. A good
    * test is to browse a table, then edit a row and save it. There will be
    * an error message if phpMyAdmin cannot auto-detect the correct value.
    *
    * @global string $cfg['PmaAbsoluteUri']
    */
    $cfg['PmaAbsoluteUri'] = 'http://engel89.altervista.org/myadmin/';

    /**
    * Disable the default warning that is displayed on the DB Details Structure page if
    * any of the required Tables for the relation features could not be found
    *
    * @global boolean $cfg['PmaNoRelation_DisableWarning']
    */
    $cfg['PmaNoRelation_DisableWarning'] = false;

    /**
    * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
    * at least one server configuration uses 'cookie' auth_type, enter here a
    * pass phrase that will be used by blowfish. The maximum length seems to be 46
    * characters.
    *
    * @global string $cfg['blowfish_secret']
    */
    $cfg['blowfish_secret'] = '';


    /*******************************************************************************
    * Server(s) configuration
    *
    * The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
    * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
    * to ''. If you want more than one server, just copy following section
    * (including $i incrementation) several times. There is no need to define
    * full server array, just define values you need to change.
    *
    * @global array $cfg['Servers']
    */
    $cfg['Servers'] = array();

    $i = 1;

    /**
    * MySQL hostname or IP address
    *
    * @global string $cfg['Servers'][$i]['host']
    */
    $cfg['Servers'][$i]['host'] = 'localhost';

    /**
    * MySQL port - leave blank for default port
    *
    * @global string $cfg['Servers'][$i]['port']
    */
    $cfg['Servers'][$i]['port'] = '';

    /**
    * Path to the socket - leave blank for default socket
    *
    * @global string $cfg['Servers'][$i]['socket']
    */
    $cfg['Servers'][$i]['socket'] = '';

    /**
    * Use SSL for connecting to MySQL server?
    *
    * @global boolean $cfg['Servers'][$i]['ssl']
    */
    $cfg['Servers'][$i]['ssl'] = false;

    /**
    * How to connect to MySQL server ('tcp' or 'socket')
    *
    * @global string $cfg['Servers'][$i]['connect_type']
    */
    $cfg['Servers'][$i]['connect_type'] = 'tcp';

    /**
    * The PHP MySQL extension to use ('mysql' or 'mysqli')
    *
    * @global string $cfg['Servers'][$i]['extension']
    */
    $cfg['Servers'][$i]['extension'] = 'mysql';

    /**
    * Use compressed protocol for the MySQL connection (requires PHP >= 4.3.0)
    *
    * @global boolean $cfg['Servers'][$i]['compress']
    */
    $cfg['Servers'][$i]['compress'] = false;

    /**
    * MySQL control user settings (this user must have read-only
    *
    * @global string $cfg['Servers'][$i]['controluser']
    */
    $cfg['Servers'][$i]['controluser'] = '';

    /**
    * access to the "mysql/user" and "mysql/db" tables). The controluser is also
    * used for all relational features (pmadb)
    *
    * @global string $cfg['Servers'][$i]['controlpass']
    */
    $cfg['Servers'][$i]['controlpass'] = '';

    /**
    * Authentication method (valid choices: config, http, signon or cookie)
    *
    * @global string $cfg['Servers'][$i]['auth_type']
    */
    $cfg['Servers'][$i]['auth_type'] = 'config';

    /**
    * MySQL user
    *
    * @global string $cfg['Servers'][$i]['user']
    */
    $cfg['Servers'][$i]['user'] = 'root';

    /**
    * MySQL password (only needed with 'config' auth_type)
    *
    * @global string $cfg['Servers'][$i]['password']
    */
    $cfg['Servers'][$i]['password'] = '*****;

    /**
    * Session to use for '
    signon' authentication method
    *
    * @global string $cfg['
    Servers'][$i]['SignonSession']
    */
    $cfg['
    Servers'][$i]['SignonSession'] = '';

    /**
    * URL where to redirect user to login for '
    signon' authentication method
    *
    * @global string $cfg['
    Servers'][$i]['SignonURL']
    */
    $cfg['
    Servers'][$i]['SignonURL'] = '';

    /**
    * URL where to redirect user after logout
    *
    * @global string $cfg['
    Servers'][$i]['LogoutURL']
    */
    $cfg['
    Servers'][$i]['LogoutURL'] = '';

    /**
    * Whether to try to connect without password
    *
    * @global boolean $cfg['
    Servers'][$i]['nopassword']
    */
    $cfg['
    Servers'][$i]['nopassword'] = false;

    /**
    * If set to a db-name, only this db is displayed in left frame
    * It may also be an array of db-names, where sorting order is relevant.
    *
    * @global string $cfg['
    Servers'][$i]['only_db']
    */
    $cfg['
    Servers'][$i]['only_db'] = '';

    /**
    * Database name to be hidden from listings
    *
    * @global string $cfg['
    Servers'][$i]['hide_db']
    */
    $cfg['
    Servers'][$i]['hide_db'] = '';

    /**
    * Verbose name for this host - leave blank to show the hostname
    * (for HTTP authentication, all non-US-ASCII characters will be stripped)
    *
    * @global string $cfg['
    Servers'][$i]['verbose']
    */
    $cfg['
    Servers'][$i]['verbose'] = '';

    /**
    * Database used for Relation, Bookmark and PDF Features
    * (see scripts/create_tables.sql)
    * - leave blank for no support
    * DEFAULT: '
    phpmyadmin'
    *
    * @global string $cfg['
    Servers'][$i]['pmadb']
    */
    $cfg['
    Servers'][$i]['pmadb'] = '';

    /**
    * Bookmark table
    * - leave blank for no bookmark support
    * DEFAULT: '
    pma_bookmark'
    *
    * @global string $cfg['
    Servers'][$i]['bookmarktable']
    */
    $cfg['
    Servers'][$i]['bookmarktable'] = '';

    /**
    * table to describe the relation between links (see doc)
    * - leave blank for no relation-links support
    * DEFAULT: '
    pma_relation'
    *
    * @global string $cfg['
    Servers'][$i]['relation']
    */
    $cfg['
    Servers'][$i]['relation'] = '';

    /**
    * table to describe the display fields
    * - leave blank for no display fields support
    * DEFAULT: '
    pma_table_info'
    *
    * @global string $cfg['
    Servers'][$i]['table_info']
    */
    $cfg['
    Servers'][$i]['table_info'] = '';

    /**
    * table to describe the tables position for the PDF schema
    * - leave blank for no PDF schema support
    * DEFAULT: '
    pma_table_coords'
    *
    * @global string $cfg['
    Servers'][$i]['table_coords']
    */
    $cfg['
    Servers'][$i]['table_coords'] = '';

    /**
    * table to describe pages of relationpdf
    * - leave blank if you don'
    t want to use this
    * DEFAULT: 'pma_pdf_pages'
    *
    * @global
    string $cfg['Servers'][$i]['pdf_pages']
    */
    $cfg['Servers'][$i]['pdf_pages'] = '';

    /**
    * table to store column information
    * - leave blank for no column comments/mime types
    * DEFAULT: 'pma_column_info'
    *
    * @global string $cfg['Servers'][$i]['column_info']
    */
    $cfg['Servers'][$i]['column_info'] = '';

    /**
    * table to store SQL history
    * - leave blank for no SQL query history
    * DEFAULT: 'pma_history'
    *
    * @global string $cfg['Servers'][$i]['history']
    */
    $cfg['Servers'][$i]['history'] = '';

    /**
    * table to store the coordinates for Designer
    * - leave blank for no Designer feature
    * DEFAULT: 'pma_designer_coords'
    *
    * @global string $cfg['Servers'][$i]['designer_coords']
    */
    $cfg['Servers'][$i]['designer_coords'] = '';

    /**
    * set to false if you know that your pma_* tables are up to date.
    * This prevents compatibility checks and thereby increases performance.
    *
    * @global boolean $cfg['Servers'][$i]['verbose_check']
    */
    $cfg['Servers'][$i]['verbose_check'] = true;

    /**
    * whether to allow root login
    *
    * @global boolean $cfg['Servers'][$i]['AllowRoot']
    */
    $cfg['Servers'][$i]['AllowRoot'] = true;
    Ultima modifica di funcool : 13-09-2007 alle ore 10.20.22

  4. #4
    Guest

    Predefinito

    Scarichi il pacchetto dal sito ufficiale (mi raccomando, una versione stabile), al suo interno dovrebbero esserci le istruzioni.
    In teoria dovresti configurare il file di, appunto, configurazione, indicando i dati di connessione al database, e caricando il tutto dovrebbe iniziare a funzionare.


    Ciao!

  5. #5
    Guest

    Predefinito

    Posta la configurazione personalizzata (omettendo eventuali password).


    Ciao!

  6. #6
    Ospite Guest

    Predefinito

    Se cancelli i tuoi posts come si fa a sapere di cosa hai bisogno?
    Il regolamento dice che non puoi postare consecutivamente, non che puoi scrivere 1 solo messaggio in ogni thread
    Posto di seguito parte del file di configurazione della mia installazione personalizzata di phpmyadmin qui su AlterVista.
    Il metodo di autenticazione utilizzato è "http", se vuoi utilizzare i cookies (login tramite pagina web) oppure "config" specificalo, questi metodi richiedono una modifica del file diversa.
    Codice PHP:
    /**
    * Your phpMyAdmin url
    *
    * Complete the variable below with the full url ie
    * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
    *
    * It must contain characters that are valid for a URL, and the path is
    * case sensitive on some Web servers, for example Unix-based servers.
    *
    * In most cases you can leave this variable empty, as the correct value
    * will be detected automatically. However, we recommend that you do
    * test to see that the auto-detection code works in your system. A good
    * test is to browse a table, then edit a row and save it. There will be
    * an error message if phpMyAdmin cannot auto-detect the correct value.
    *
    * If the auto-detection code does work properly, you can set to TRUE the
    * $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
    */
    $cfg['PmaAbsoluteUri'] = '';


    /**
    * Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
    * You should use this if and ONLY if the PmaAbsoluteUri auto-detection
    * works perfectly.
    */
    $cfg['PmaAbsoluteUri_DisableWarning'] = TRUE;

    /**
    * Disable the default warning that is displayed on the DB Details Structure page if
    * any of the required Tables for the relationfeatures could not be found
    */
    $cfg['PmaNoRelation_DisableWarning'] = FALSE;

    /**
    * The 'cookie' auth_type uses blowfish algorithm to encrypt the password.
    * If at least one server configuration uses 'cookie' auth_type,
    * enter here a passphrase that will be used by blowfish.
    */
    $cfg['blowfish_secret'] = '';

    /**
    * 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++;
    $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
    $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
    $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
    $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
    $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
    // (requires PHP >= 4.3.0)
    $cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
    // (this user must have read-only
    $cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
    // and "mysql/db" tables)
    $cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
    $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
    $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
    // with 'config' auth_type)
    $cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
    // this db is displayed
    // at left frame
    // It may also be an array
    // of db-names
    $cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname

    $cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
    // (see scripts/create_tables.sql)
    // - leave blank for no support
    // DEFAULT: 'phpmyadmin'
    $cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table
    // - leave blank for no bookmark support
    // DEFAULT: 'PMA_bookmark'
    $cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
    // - leave blank for no relation-links support
    // DEFAULT: 'PMA_relation'
    $cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields
    // - leave blank for no display fields support
    // DEFAULT: 'PMA_table_info'
    $cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF schema
    // - leave blank for no PDF schema support
    // DEFAULT: 'PMA_table_coords'
    $cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf
    // - leave blank if you don't want to use this
    // DEFAULT: 'PMA_pdf_pages'
    $cfg['Servers'][$i]['column_info'] = ''; // table to store column information
    // - leave blank for no column comments/mime types
    // DEFAULT: 'PMA_column_info'
    $cfg['Servers'][$i]['history'] = ''; // table to store SQL history
    // - leave blank for no SQL query history
    // DEFAULT: 'PMA_history'
    $cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your PMA_* tables
    // are up to date. This prevents compatibility
    // checks and thereby increases performance.
    $cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use
    = '';
    $cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults
    = array();

  7. #7
    Guest

    Predefinito

    Premetto col dirti che sicuramente ci sarà un altro metodo (e sicuramente più professionale)...ma almeno così parte...
    1) Apri il file session.inc.php in phpmyadmin/libraries
    2) cerca
    Codice PHP:
    if (! isset($_COOKIE[$session_name])) {
    // on first start of session we will check for errors
    // f.e. session dir cannot be accessed - session file not created
    ob_start();
    $old_display_errors = ini_get('display_errors');
    $old_error_reporting = error_reporting(E_ALL);
    ini_set('display_errors', 1);
    $r = session_start();
    ini_set('display_errors', $old_display_errors);
    error_reporting($old_error_reporting);
    unset(
    $old_display_errors, $old_error_reporting);
    $session_error = ob_get_contents();
    ob_end_clean();
    if (
    $r !== true || ! empty($session_error)) {
    setcookie($session_name, '', 1);
    PMA_fatalError('strSessionStartupErrorGeneral');
    }
    } else {
    @
    session_start();
    }
    3) sostituisci con:
    Codice PHP:
    $_COOKIE[$session_name]="prova";
    if (! isset(
    $_COOKIE[$session_name])) {
    // on first start of session we will check for errors
    // f.e. session dir cannot be accessed - session file not created
    ob_start();
    $old_display_errors = ini_get('display_errors');
    $old_error_reporting = error_reporting(E_ALL);
    ini_set('display_errors', 1);
    $r = session_start();
    ini_set('display_errors', $old_display_errors);
    error_reporting($old_error_reporting);
    unset(
    $old_display_errors, $old_error_reporting);
    $session_error = ob_get_contents();
    ob_end_clean();
    if (
    $r !== true || ! empty($session_error)) {
    setcookie($session_name, '', 1);
    PMA_fatalError('strSessionStartupErrorGeneral');
    }
    } else {
    @
    session_start();
    }
    Ricorda che il file config.inc.php deve essere in phpmyadmin...

    Ciao
    Ultima modifica di giuseppeiemma : 13-09-2007 alle ore 18.28.46

  8. #8
    Guest

    Predefinito

    ho anche io lo stesso problema...

    "Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly."

    ma questa modifica non lo risolve..

  9. #9
    Guest

    Predefinito

    Sei sicuro di aver modificato correttamente il file config.inc.php* e averlo messo nella cartella principale di phpmyadmin?
    Le impostazioni fornite da probid dovrebbero andar bene...
    Usa il metodo di autenticazione http per ora...

    *nel post precedente ho sbagliato, correggo subito!

    Ciao

  10. #10
    Guest

    Predefinito

    infatti adesso funziona tutto,
    grazie.

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •