To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

F.A.Q. - Najczęściej Zadawane Pytania - Przenoszenie forum z serwera na serwer

Pogromca_PL - 05-01-2011, 15:50

działa dzięki masz 3x pomógł :D
mateo1992 - 17-01-2011, 11:27

Najpierw przenosiłem forum z jednego hostingu na drugi,teraz chciałem zrobić to samo bo nie odpowiadał mi hosting.
Gdy wszystko zrobiłem tak jak pisze wyświetla się:
phpBB by Przemo : Critical Error

Error doing DB query userdata row fetch

DEBUG MODE

SQL Error : 1146 Table 'oda_eurosurf.phpbb_users' doesn't exist

SELECT * FROM phpbb_users WHERE user_id = -1

Line : 406
File : sessions.php
To samo jeśli wchodze do check files:/
Co robie nie tak? Baza jest już załadowana.
Stworzyłem nową tabele oda_eurosurf.phpbb_users i mam następny błąd
phpBB by Przemo : Critical Error

Could not obtain ban information

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR ban_email LIKE '' OR ban_email LIKE ''' at line 4

SELECT * FROM phpbb_banlist WHERE ban_ip IN ('4dffb292', '4dffb2ff', '4dffffff', '4dffffff') OR ban_userid = OR ban_email LIKE '' OR ban_email LIKE ''

Line : 49
File : sessions.php

Woytec - 17-01-2011, 14:36

Sprawdź dane w config.php i prefiks tabel
d3X - 17-01-2011, 14:39

Woytec, chcę dodać, że użytkownik mateo1992 ma poprawny prefiks tabel. Sprawdzałem przed chwilą w dbloaderze.
mateo1992 - 17-01-2011, 14:45

No właśnie oto chodzi,że wszystko w db loader w 100% jest poprawne:/
d3X - 17-01-2011, 14:46

mateo1992, ale sprawdź w pliku config.php na serwerze www.
mateo1992 - 17-01-2011, 15:00

Wszystko jest dobrze,tym bardziej że pusta baza zapełniła się i ma już prawie 1mb
gregc - 17-01-2011, 22:36

Witam szanownych forumowiczów!

Siedze czytam i próbuje przywrócić działanie swojego forum po migracji z Nethosting do Ogicom
Ogicom przeniósł pliki i bazę danchm jednak po poprawieniu config.php otrzymuję komunikat 500 (Internal server error.

Zainstalowałem sobie 2gie forum dla porównania które działa na nowym serwerze i widzę że wpisy w tabeli phpbb_config są takie same.

Doczytałem że problem może tkwić z autentykacją: Basic access authentication
Niestety zgubiłem trop i błądzę, może ktoś naprowadzi ślepca? a może coś przeoczyłem ?
poniżej zawartość pliku z błędem 500:


Kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>

<head>
<style>
a:link            {font:8pt/11pt verdana; color:red}
a:visited        {font:8pt/11pt verdana; color:#4e4e4e}
</style>
<meta HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
<title>HTTP 500 Internal server error</title>
</head>
<script>

function Related(){
    userURL=document.location.href;

    //for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
    //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.

    BeginURL=userURL.indexOf("#",1) + 1;
    CurrentURL=userURL.substring(BeginURL,DocURL.length);
   
    //Build the query
    RelatedServiceURL="http://related.msn.com/related.asp?url=";
   
    //Perform simple check for Intranet URLs
    //this is where the http or https will be, as found by searching for :// but skip res:
    protocolIndex=userURL.indexOf("://",4);
    serverIndex=userURL.indexOf("/",protocolIndex + 3);
    urlresult=userURL.substring(0,serverIndex);
    if (protocolIndex - BeginURL > 7)
        urlresult=""
   
    //Check if Intranet URL - then open search bar
   
    if (urlresult.indexOf(".",0) < 1) userURL="Intranet URL";
    finalURL = RelatedServiceURL + encodeURIComponent(userURL);
    window.open(finalURL, "_search");
   
}

function Homepage(){

// in real bits, urls get returned to our script like this:
// res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm

    //For testing use
    //DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
    DocURL=document.location.href;
   
    //this is where the http or https will be, as found by searching for :// but skipping the res://
    protocolIndex=DocURL.indexOf("://", 4);

    //this finds the ending slash for the domain server
    serverIndex=DocURL.indexOf("/", protocolIndex + 3);

    //for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
    //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
    //urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
    BeginURL=DocURL.indexOf("#",1) + 1;
    urlresult=DocURL.substring(BeginURL, serverIndex);
    if (protocolIndex - BeginURL > 7)
        urlresult=""

    //for display, we need to skip after http://, and go to the next slash
    displayresult=DocURL.substring(protocolIndex + 3, serverIndex);

    var aElement = document.createElement("A");
    aElement.innerText = displayresult;
    aElement.href = urlresult;

    homepageContainer.appendChild(aElement);
}

function doSearch()
{
    saOC.NavigateToDefaultSearch();
}

function initPage()
{
    document.body.insertAdjacentHTML("afterBegin","<object id=saOC CLASSID='clsid:B45FF030-4447-11D2-85DE-00C04FA35C89' HEIGHT=0 width=0></object>");
    Homepage();
}

</script>


<body bgcolor="white" onload="initPage()">

<table width="400" cellpadding="3" cellspacing="5">
  <tr>
    <td id="tableProps" valign="top" align="left"><img id="pagerrorImg" SRC="pagerror.gif"
    width="25" height="33"></td>
    <td id="tableProps2" align="left" valign="middle" width="360"><h1 id="errortype"
    style="COLOR: black; FONT: 13pt/15pt verdana"><span id="errorText">The page cannot be displayed</span></h1>
    </td>
  </tr>
  <tr>
    <td id="tablePropsWidth" width="400" colspan="2"><font
    style="COLOR: black; FONT: 8pt/11pt verdana">There is a problem with the page you are
    trying to reach and it cannot be displayed.</font></td>
  </tr>
  <tr>
    <td id="tablePropsWidth" width="400" colspan="2"><font id="LID1"
    style="COLOR: black; FONT: 8pt/11pt verdana"><hr color="#C0C0C0" noshade>
    <p id="LID2">Please try the following:</p><ul>
      <li id="instructionsText1">Open the <span id="homepageContainer"></span>&nbsp;home page, and then look for links to
        the information you want. </li>
      <li id="instructionsText2">Click the
      <a xhref="javascript:location.reload()" target="_self">
      <img border=0 src="refresh.gif" width="13" height="16"
        alt="refresh.gif (82 bytes)" align="middle"></a> <a xhref="javascript:location.reload()" target="_self">Refresh</a> button, or try again later.<br>
      </li>
      <li ID="instructionsText3">Click <a href="javascript:doSearch()"><img border=0 src="search.gif" width="16" height="16" alt="search.gif (114 bytes)" align="center"> Search</a> to look for information on the Internet. </li>
      <li id="instructionsText4">You can also see <a onclick="Related();event.returnValue=false" href="">a list of related sites.</a>     
</ul>
</p>
   
    <p><br>
    </p>
    <h2 id="ietext" style="font:8pt/11pt verdana; color:black">HTTP 500 - Internal server
    error <br>
    Internet Explorer </h2>
    </font></td>
  </tr>
</table>
</body>
</html>

d3X - 18-01-2011, 02:18

gregc, na przyszłość,wstawiaj kody w tag [code]
gregc - 18-01-2011, 20:50

Nie dałem rady sam, wiec zgłosiłem do adminów.
Pogrzebali i działa...

Widzę że wstawili
plik do katalogu głównego forum .htaccsess o treści:

Kod:
<Files *.php>
   ForceType application/x-httpd-php
 </Files>




gregc

Messi__ - 09-10-2011, 21:27

Kod:
UPDATE `phpbb_config` SET `config_value` = 'ADRES SERWERA' WHERE `config_name` = 'server_name' LIMIT 1;
UPDATE `phpbb_config` SET `config_value` = '/ŚCIEŻKA DO FORUM/' WHERE `config_name` = 'script_path' LIMIT 1;
UPDATE `phpbb_config` SET `config_value` = 'ADRES SERWERA' WHERE `config_name` = 'cookie_domain' LIMIT 1;
UPDATE `phpbb_config` SET `config_value` = 'NAZWA COOKIE' WHERE `config_name` = 'cookie_name' LIMIT 1;


Na, której bazie wykonuje to zapytanie? bo nie rozumiem
Na nowej stronie czy starej?

Woytec - 10-10-2011, 15:19

Cytat:
Na, której bazie wykonuje to zapytanie? bo nie rozumiem
Na nowej stronie czy starej?
Obojętnie, możesz na nowej(zanim się ktoś zaloguje)
Messi__ - 10-10-2011, 18:39

Kod:
9. Pamietaj o ustawieniu pliku config.php. Możesz użyć do tego celu DumpLoadera (http://ADRESFORUM/dbloader/dbloader.php)


Nie rozumiem o co chodzi przecież to już jest ustawione wcześniej...

Kod:
11. Edytujesz zrzut bazy danych, szukasz w danych tablei phpbb_config adresu starego serwera i zmieniasz na nowy adres lub wykonaj zapytania:
Kod:
UPDATE `phpbb_config` SET `config_value` = 'ADRES SERWERA' WHERE `config_name` = 'server_name' LIMIT 1;
UPDATE `phpbb_config` SET `config_value` = '/ŚCIEŻKA DO FORUM/' WHERE `config_name` = 'script_path' LIMIT 1;
UPDATE `phpbb_config` SET `config_value` = 'ADRES SERWERA' WHERE `config_name` = 'cookie_domain' LIMIT 1;
UPDATE `phpbb_config` SET `config_value` = 'NAZWA COOKIE' WHERE `config_name` = 'cookie_name' LIMIT 1;

Możesz użyć też w tym celu DumpLoadera. Otwierasz http://TWOJEFORUM/dbloader/dbloader.php przechodzisz do "Konfiguruj forum" i ustawiasz poprawne wartości.


Kolejny punkt w którym wyskakuje mi błąd robie zapytanie a tam :
Kod:
Błąd

Zapytanie SQL:

CREATE TABLE IF NOT EXISTS `phpbb_admin_notes` (
`text` text
) TYPE = MYISAM ;

MySQL zwrócił komunikat: Dokumentacja
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 3



Proszę o pomoc ;/

Nurnen - 11-01-2012, 14:35

Witam mam problem z przenosinami forum.
Mianowicie forum przeniosłem trochę inaczej, mianowicie zainstalowałem forum na nowym serwerze od nowa, po czym podmieniłem bazę przez MyAdmina.

No i po wszystkim forum niby działa, wszystko się wyświetla i działa, jest zawartość. Tylko jak chcę się zalogować to mi wyświetla
Błąd wczytywania strony.
Połączenie zostało zerwane podczas wczytywania strony.
Dodam że przed podmianą bazy dało się wejść zalogować i w ogóle. Potem z podmianą miałem małe klock ponieważ logował się na stary serwer, teraz wiem że chodzi na
nowym bo działą dużo szybciej i, ale teraz niby wszystko jest ok cała zawartość, tylko nie da się zalogować. Wyczyściłem cache. Próbowałem zrobić pkt 11 ale wyskoczyło mi że zmienił tylko tą 3 wartość ponieważ reszty nie ma.
i rozumiem że jeśli mam forum w głównym folderze to moja ścieżka wygląda tak
Cytat:
UPDATE `phpbb_config` SET `config_value` = '/' WHERE `config_name` = 'script_path' LIMIT 1;

Wiem że to ostatnie trochę głupie ale nie jestem pewien.
Z góry dziękuję za pomoc.

maminowiec - 11-01-2012, 14:46

Nurnen, Podaj adres forum.
Dobrze kombinujesz z pkt 11 bo to w nim jest rozwiązanie.



Powered by phpBB modified by Przemo © 2003 phpBB Group