Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP][MYSQL] PHPMYADMIN
Forum PHP.pl > Forum > Przedszkole
janimati
witam mam serwer 60free.ovh.org jeszcze z ich promocji. problem w tym że żeby mieć pełen dostęp do bazy trzeba skonfigurowąc i zainstalować phpmyadmin, Serwer będzie testował moje zabawy z grą online, ale nie mam pojęcia jak sie to konfiguruje. Instalator jest toporny nawet nie wiem co ma mieć jakie atrybuty bo już na starcie ma kilka errorów. pomoc ovh dotyczy tylko starej wersji phpmyadmin i nie umie znaleźć tych linijek z ich pliku pomocy. To jest aktualny plik konfiguracyjny w tym phpmyadmin
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4.   * phpMyAdmin sample configuration, you can use it as base for
  5.   * manual configuration. For easier setup you can use setup/
  6.   *
  7.   * All directives are explained in Documentation.html and on phpMyAdmin
  8.   * wiki <http://wiki.cihar.com>.
  9.   *
  10.   * @version $Id: config.sample.inc.php 11781 2008-11-06 05:29:28Z rajkissu $
  11.   */
  12.  
  13. /*
  14.   * This is needed for cookie based authentication to encrypt password in
  15.   * cookie
  16.   */
  17. $cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
  18.  
  19. /*
  20.   * Servers configuration
  21.   */
  22. $i = 0;
  23.  
  24. /*
  25.   * First server
  26.   */
  27. $i++;
  28. /* Authentication type */
  29. $cfg['Servers'][$i]['auth_type'] = 'cookie';
  30. /* Server parameters */
  31. $cfg['Servers'][$i]['host'] = 'localhost';
  32. $cfg['Servers'][$i]['connect_type'] = 'tcp';
  33. $cfg['Servers'][$i]['compress'] = false;
  34. /* Select mysqli if your server has it */
  35. $cfg['Servers'][$i]['extension'] = 'mysql';
  36.  
  37. /* rajk - for blobstreaming */
  38. $cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
  39. $cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
  40. $cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
  41. $cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
  42.  
  43. /* User for advanced features */
  44. // $cfg['Servers'][$i]['controluser'] = 'pma';
  45. // $cfg['Servers'][$i]['controlpass'] = 'pmapass';
  46. /* Advanced phpMyAdmin features */
  47. // $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  48. // $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
  49. // $cfg['Servers'][$i]['relation'] = 'pma_relation';
  50. // $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
  51. // $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
  52. // $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
  53. // $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
  54. // $cfg['Servers'][$i]['history'] = 'pma_history';
  55. // $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
  56. /* Contrib / Swekey authentication */
  57. // $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';
  58.  
  59. /*
  60.   * End of servers configuration
  61.   */
  62.  
  63. /*
  64.   * Directories for saving/loading files from server
  65.   */
  66. $cfg['UploadDir'] = '';
  67. $cfg['SaveDir'] = '';
  68.  
  69. ?>
Sky_walker
Napisz jakie masz "errory" - to powinno nam troche ułatwić diagnostyke winksmiley.jpg
janimati
[b]oto one( ostatnie 2 to jakie wiadomości instalatora.):
Kod
Runtime Notice[/b] in ./libraries/common.inc.php#274
  date_default_timezone_get() [[url="http://www.klancs16.ovh.org/admin/setup/function.date-default-timezone-get"]function.date-default-timezone-get[/url]]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead
  
  [b]Backtrace[/b]
  
  ./libraries/common.inc.php#274: date_default_timezone_get()
  ./setup/lib/common.inc.php#18: require_once(./libraries/common.inc.php)
  ./setup/index.php#12: require(./setup/lib/common.inc.php)

[b]Warning[/b]: Cannot modify header information - headers already sent by (output started at /home/k/l/a/klancs16/www/admin/libraries/Error.class.php:357) in [b]/home/k/l/a/klancs16/www/admin/libraries/header_http.inc.php[/b] on line [b]22[/b]
  
  [b]Warning[/b]: Cannot modify header information - headers already sent by (output started at /home/k/l/a/klancs16/www/admin/libraries/Error.class.php:357) in [b]/home/k/l/a/klancs16/www/admin/libraries/header_http.inc.php[/b] on line [b]23[/b]
  
  [b]Warning[/b]: Cannot modify header information - headers already sent by (output started at /home/k/l/a/klancs16/www/admin/libraries/Error.class.php:357) in [b]/home/k/l/a/klancs16/www/admin/libraries/header_http.inc.php[/b] on line [b]24[/b]
  
  [b]Warning[/b]: Cannot modify header information - headers already sent by (output started at /home/k/l/a/klancs16/www/admin/libraries/Error.class.php:357) in [b]/home/k/l/a/klancs16/www/admin/libraries/header_http.inc.php[/b] on line [b]25[/b]
  
  [b]Warning[/b]: Cannot modify header information - headers already sent by (output started at /home/k/l/a/klancs16/www/admin/libraries/Error.class.php:357) in [b]/home/k/l/a/klancs16/www/admin/libraries/header_http.inc.php[/b] on line [b]28

[/b]
[b]Nie udało się załadować lub zapisać konfiguracji[/b]
Należy w głównym katalogu phpMyAdmina utworzyć katalog [i]config[/i] z możliwością zapisu przez serwer WWW, w sposób opisany w [url="http://www.klancs16.ovh.org/admin/Documentation.html#setup_script"]dokumentacji[/url]. W przeciwnym przypadku konfigurację będzie można tylko ściągnąć lub obejrzeć.


[b]Bzip2[/b]
[url="http://www.klancs16.ovh.org/admin/setup/index.php?page=form&formset=features#tab_Import_export"]Bzip2 compression and decompression[/url] requires functions (bzopen, bzcompress) which are unavailable on this system.


troche ich jest a musze mieć właśnie zarządzanie baza mysql.

a to mam zaraz po rpubie dodania serwera:
Kod
Warning: Cannot modify header information - headers already sent by (output started at /home/k/l/a/klancs16/www/adminek/libraries/Error.class.php:357) in /home/k/l/a/klancs16/www/admin/setup/lib/form_processing.lib.php on line 55

Warning: Cannot modify header information - headers already sent by (output started at /home/k/l/a/klancs16/www/adminek/libraries/Error.class.php:357) in /home/k/l/a/klancs16/www/admin/setup/lib/form_processing.lib.php on line 56
erix
Cytat
Runtime Notice[/b] in ./libraries/common.inc.php#274

Masz ustawione error_reporting na E_NOTICE, stąd błąd.

A jego rozwiązanie masz w samej treści:
Cytat
date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead

Pogrubiłem kluczowy ciąg. Był niedawno podobny temat, jak coś.
janimati
zrozumiałem z tego ze nie ma strefy czasowej serwera.gdzie mam osunąć te linijkę by się odczepił. Poza tym ja nic nie ustawiałem ja tylko wypakowałem i wgrałem to co dali na ich głównej stronie. widziałerm ten temat ktos sie pytał bo miał na yoyo problem z tym, a inny temat tpo ze ma gotowego cms wgrać. a mi to nie pasuje.
erix
Nie. Masz nie usuwać, a ustawić tę strefę czasową.
janimati
Kod
date_default_timezone_set(@date_default_timezone_get());

i co w tym mam tera napisać poprawić ?
bo to nie działa:
Kod
date_default_timezone_set(@date_default_timezone_get(Europe/Warsaw));
erix
Może byś tak uważnie manuala czytał?
Cytat
timezone_identifier
The timezone identifier, like UTC or Europe/Lisbon. The list of valid identifiers is available in the Appendix H, List of Supported Timezones.


Masz podać nazwę strefy w parametrze.
janimati
Jakiego manuala mam tylko jakaś dokumentacja tego i tam nic nie pisze ze bedzie tyle errorów. ja nie wiem co mam gdzie wstawić wszytko jest wysypane w tym szajsie a starej wersji raczje niezdobende. Wadą tego jets to że nie ma w standardzie tego. Chce se na tmypuścić prosta gra free biblioteki ząs edytując te gre bo prosta dość jest naucze sie tego a tu nie wiem co mam gdzie zmeinić jaki manual znalazlem coś na necie ale pisąło to w funkcji echo.
erix
Cytat
Jakiego manuala mam tylko

http://php.net/

Cytat
wysypane w tym szajsie a starej wersji raczje niezdobende.

Jest to spowodowane nowszą wersją PHP na serwerze, a nie PMA:
Cytat
Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate a E_NOTICE if the timezone isn't valid, and/or a E_STRICT message if using the system settings or the TZ environment variable.

Rozwiązaniem jest ustawienie strefy czasowej, bądź odpowiedniego poziomu raportowania błędów.
janimati
yy a to wersja php my coś do tego stare ma działać na nowym chyba tak. chyba że tam jest stare php. Taka konfiguracja podaja ci z ovh ale do wersji 2.5.coś tam niestety to z tym orginalnym przykładowym konfigiem nie zgadza si skoro setup nie działa to moęze po edcji pliku cfg to zadziała ale naprawde nie wiem gdzie to wstawić, w pierwsyzm pości podąłem cały orginalny. http://pomoc.ovh.pl/InstalacjaPhpMyAdmin
"
UWAGA
W poniższych wersach należy wpisać parametry Twojej bazy danych : ścieżka_dostępu... , serwer_sql, login_sql, pass_sql
Kod
/**
* Your "phpMyAdmin" url
[url="http://pomoc.ovh.pl/..."]...[/url]
*/
$cfg['PmaAbsoluteUri'] = 'Ścieżka_dostępu_do_phpmyadmin';

/**
*Server(s) configuration
*/
$i = 0;
// The $cfg['Servers'] array starts with $cfg['Servers']. Do not use $cfg['Servers'].
// You can disable a server config entry by setting host to ''.
$i++;
$cfg['Servers'][$i]['host'] = 'serwer_sql';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['controluser']= '';
$cfg['Servers'][$i]['controlpass'] = '';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'login_sql';
$cfg['Servers'][$i]['password'] = 'pass_sql';
$cfg['Servers'][$i]['only_db'] = 'login_sql';
[...]


Przykład:
Kod
/**
*Your "phpMyAdmin" url
[...]
*/
$cfg['PmaAbsoluteUri'] = 'http://explication.com/phpMyAdmin-2.5.3/';

/**
* Server(s) configuration
*/
$i = 0;
// The $cfg['Servers'] array starts with $cfg['Servers']. Do not use $cfg['Servers'].
// You can disable a server config entry by setting host to ''.
$i++;
$cfg['Servers'][$i]['host'] = 'sql3';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['controluser'] = '';
$cfg['Servers'][$i]['controlpass'] = '';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'explicatdb';
$cfg['Servers'][$i]['password'] = 'UiD59rtM';
$cfg['Servers'][$i]['only_db'] = 'explicatdb';
[...]
"
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.