Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: PHPMYADMIN NIE DZIAŁA PO INSTALACJI
Forum PHP.pl > Forum > PHP
wsloma
WITAM.
Po instalacji PHPMYADMIN, kiedy chcę zalogować się do http://serwerVPS/phpmyadmin otrzymuje błąd - zamiast okna do podania nazwy użytkownika i hasła.
Jest to następujący kod:

  1. addJSON( 'list', PMA_RecentFavoriteTable::getInstance('recent')->getHtmlList() ); exit; } if ($GLOBALS['PMA_Config']->isGitRevision()) { if (isset($_REQUEST['git_revision']) && $GLOBALS['is_ajax_request'] == true) { PMA_printGitRevision(); exit; } echo '
  2. '; } // Handles some variables that may have been sent by the calling script $GLOBALS['db'] = ''; $GLOBALS['table'] = ''; $show_query = '1'; // Any message to display? if (! empty($message)) { echo PMA_Util::getMessage($message); unset($message); } $common_url_query = PMA_URL_getCommon('', ''); // when $server > 0, a server has been chosen so we can display // all MySQL-related information if ($server > 0) { include 'libraries/server_common.inc.php'; include 'libraries/StorageEngine.class.php'; // Use the verbose name of the server instead of the hostname // if a value is set $server_info = ''; if (! empty($cfg['Server']['verbose'])) { $server_info .= htmlspecialchars($cfg['Server']['verbose']); if ($GLOBALS['cfg']['ShowServerInfo']) { $server_info .= ' ('; } } if ($GLOBALS['cfg']['ShowServerInfo'] || empty($cfg['Server']['verbose'])) { $server_info .= $GLOBALS['dbi']->getHostInfo(); } if (! empty($cfg['Server']['verbose']) && $GLOBALS['cfg']['ShowServerInfo']) { $server_info .= ')'; } $mysql_cur_user_and_host = $GLOBALS['dbi']->fetchValue('SELECT USER();'); // should we add the port info here? $short_server_info = (!empty($GLOBALS['cfg']['Server']['verbose']) ? $GLOBALS['cfg']['Server']['verbose'] : $GLOBALS['cfg']['Server']['host']); } echo '
  3. ' . "\n"; // Anchor for favorite tables synchronization. echo PMA_RecentFavoriteTable::getInstance('favorite')->getHtmlSyncFavoriteTables(); echo '
  4. '; if ($server > 0 || count($cfg['Servers']) > 1 ) { if ($cfg['DBG']['demo']) { echo '
  5. '; echo '
  6. ' . __('phpMyAdmin Demo Server') . '
  7. '; echo '
  8.  
  9. '; printf( __( 'You are using the demo server. You can do anything here, but ' . 'please do not change root, debian-sys-maint and pma users. ' . 'More information is available at %s.' ), 'demo.phpmyadmin.net' ); echo '
  10. '; echo '
  11. '; } echo '
  12. '; echo '
  13. ' . __('General Settings') . '
  14. '; echo '
  15.  
  16. '; /** * Displays the MySQL servers choice form */ if ($cfg['ServerDefault'] == 0 || (! $cfg['NavigationDisplayServers'] && (count($cfg['Servers']) > 1 || ($server == 0 && count($cfg['Servers']) == 1))) ) { echo '
  17. '; include_once 'libraries/select_server.lib.php'; echo PMA_Util::getImage('s_host.png') . " " . PMA_selectServer(true, true); echo '
  18. '; } /** * Displays the mysql server related links */ if ($server > 0 && ! PMA_DRIZZLE) { include_once 'libraries/check_user_privileges.lib.php'; // Logout for advanced authentication if ($cfg['Server']['auth_type'] != 'config') { if ($cfg['ShowChgPassword']) { $conditional_class = 'ajax'; PMA_printListItem( PMA_Util::getImage('s_passwd.png') . " " . __('Change password'), 'li_change_password', 'user_password.php?' . $com
  19. .
  20. .
  21. .

itd

Czy wie ktoś może czy coś jest nie tak z konfiguracją ?
Pozdrawiam
Wojciech Słomiński
Lord
nie masz php zainstalowanego? czy cos ;P bo widać kod php
wsloma
PHP5 jest juz w najnowszej wersji
viking
Może i jest ale widać wyraźnie że wyświetla kod zamiast go przetwarzać.
emstawicki
A PHP oprócz instalacji jest uruchomione? A vhost używa tego PHP?
Tomplus
Albo czy index.php ma <?php na początku.
wsloma
Dziękuję za wiadomości. Okazało się, że brakowało paczki

apt-get install libapache2-mod-php php-mcrypt

POZDRAWIAM
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.