• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

phpBB testen auf heimischen Server

feuerteufel

Hacker
hallo zusammen,
da ich einen eigenen phpBB forum betreibe und diesen mit neuen MOD´s ausstatten wollte, aber nicht nach jedem MOD die Daten auf den Fremdserver überspielen möchte.
Wollte ich mal anfragen was ich anstellen muss um dieses auf meinen eigenen Server erst zu testen und dann das gesamte Paket wenn alles läuft auf den Fremdserver zu überspielen

gruß der feuerteufel
 

nbkr

Guru
Einfach nur lokal den Apache, PHP und MySQL installieren. Dann hast Du ein Testsystem. Wenn alles klappt kannst Du die Dateien des phpBB per FTP übertragen und die Datenbank über phpMyAdmin lokal exportieren und auf dem Server später wieder importieren.
 
OP
feuerteufel

feuerteufel

Hacker
tja ich habe Mysql installiert ... nun wo schiebe ich das bereits laufende phpbb Forum in welchen Ordner ??

gruß das kondom
 
feuerteufel schrieb:
tja ich habe Mysql installiert ... nun wo schiebe ich das bereits laufende phpbb Forum in welchen Ordner ??

je nachdem welchen Apache du hast beim normalen mit einem neuen Pfadnamen unterhalb von /srv/www/htdocs/ und beim Apache aus dem Lampp-(Xampp)-Paket unterhalb von /opt/lampp/htdocs/

respektive funktioniert es auch untzerhalb vom user unterhalb das Pfades public_html dort wird es dann aufgerufen mit /localhost/~username/der ausgewählte Pfadname dahinter und username in den user ändern. Allerdings habe ich die Version da wieder deinstalliert und unterhalb des Apache-Server-rootpfades (die beiden obigen Möglichkeiten) ersetzt.

Bevor etwas aufgerufen wird muss aber die Datenbank erstellt oder fertig importiert sein.
 
OP
feuerteufel

feuerteufel

Hacker
Klaus-D. Wenger schrieb:
feuerteufel schrieb:
tja ich habe Mysql installiert ... nun wo schiebe ich das bereits laufende phpbb Forum in welchen Ordner ??

je nachdem welchen Apache du hast beim normalen mit einem neuen Pfadnamen unterhalb von /srv/www/htdocs/ und beim Apache aus dem Lampp-(Xampp)-Paket unterhalb von /opt/lampp/htdocs/
....

kann ich in den o.g. Ordner den bereits vorhanden phpbb ordner von meinen öffentlichen Server herunterladen und dort reinkopieren .. müßte doch dann auch gehen ?? oder ???

gruß thomas der feuerteufel
 

nbkr

Guru
Du kannst den Ornder einfach kopieren, allerdings fehlt Dir dann die Datenbank, die musst Du auch kopieren. Wenn Du phpmyadmin hast einfach darüber einen Dump erstellen, ist das einfachste. Den Dump dann lokal importieren.
 
OP
feuerteufel

feuerteufel

Hacker
nbkr schrieb:
Du kannst den Ornder einfach kopieren, allerdings fehlt Dir dann die Datenbank, die musst Du auch kopieren. Wenn Du phpmyadmin hast einfach darüber einen Dump erstellen, ist das einfachste. Den Dump dann lokal importieren.

So habe nun den gesamten Ordner vom Webspace auf meine server in die o.g. Datei kopiert ... und wie lasse ich ein Dump von phpmyadmin drüber laufen ???

gruß thomas der feuerteufel
 
feuerteufel schrieb:
... und wie lasse ich ein Dump von phpmyadmin drüber laufen ???

mit phpmyadmin eine leere Datenbankl anlegen sowie sie heissen soll oder wie sie auf dem alten server hiess
und dann rechts oben importieren dateiformat sql lassen, eben so wie du sie auf dem anderen server exportiert hast
 
OP
feuerteufel

feuerteufel

Hacker
Klaus-D. Wenger schrieb:
feuerteufel schrieb:
... und wie lasse ich ein Dump von phpmyadmin drüber laufen ???

mit phpmyadmin eine leere Datenbankl anlegen sowie sie heissen soll oder wie sie auf dem alten server hiess
und dann rechts oben importieren dateiformat sql lassen, eben so wie du sie auf dem anderen server exportiert hast

So nun habe ich es geschaft .. ganz ohne Hilfe phpmayadmin zu starten .. FREU ... okay das gehört hier nicht rein ..

Wenn ich eine neue Datenbank anlegen will .. bekomme ich die Fehlermeldung:
--------------------
Beim Laden von http://srv/www/htdocs/phpmyadmin/db_create.php ist folgender Fehler aufgetreten:

Unbekannter Rechner srv
--------------------

Da ich in der Datei config.inc.php den Ordner angegeben habe wo sich phpMyadmin sich befindet, zieht er sich den Pfad her. Aber wie änder ich es um das dort localhost gesteht ??

gruß thomas der feuerteufel
 

nbkr

Guru
In der config.inc.php musst Du nicht den Dateisystempfad sondern die URL angeben. Also vermutlich was mit http://www.deinedomain.de/phpmyadmin.
 
OP
feuerteufel

feuerteufel

Hacker
nbkr schrieb:
In der config.inc.php musst Du nicht den Dateisystempfad sondern die URL angeben. Also vermutlich was mit http://www.deinedomain.de/phpmyadmin.

aber es steht doch drinne das ich den Pfad angeben soll wo sich der Ordner phpMyadmin sich befindet und das habe ich doch auch gemacht ...

gruß thomas
 

nbkr

Guru
In der Datei gibts mehrere Angaben die zu machen sind. Das eine fängt mit URI an. Das muss die Domain rein.
 
OP
feuerteufel

feuerteufel

Hacker
nbkr schrieb:
In der Datei gibts mehrere Angaben die zu machen sind. Das eine fängt mit URI an. Das muss die Domain rein.

Ja da habe ich eingetragen http:// localhost/phpmyadmin

tja und nun öffnet er zwar das Fenster ohne fehlermeldung, aber bekomme KEINEN Text oder Bilder angezeigt ....

Habe nix geändert ...

gruß thomas
 
OP
feuerteufel

feuerteufel

Hacker
nbkr schrieb:
D.h. der Browser zeigt nur eine weiße Seite an? Schau mal in den Logs unter /var/log/apache

das mit dem weißen browser habe ich hinbekommen ..

nun geht es weiter damit das er mir die meldung anzeigt

Unbekannter Rechner srv

gruß thomas
 

nbkr

Guru
@feuerteufel: Du sollstest die Config hierher posten damit dir jeder helfen kann und nicht nur ich. Ich hab das mal für Dich übernommen.

Code:
/**
* 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'] = 'srv/www/htdocs/phpMyAdmin';


/**
* 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'] = FALSE;

/**
* 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'] = 'ZlHue35z5ksjTxCHBEGn6JTdPaUuYZ8QWtfQ49GXvkcnbbyKpU3nmGVY9JuW74pjRHgSG7UmrrZiwmu9jWkuOZaNFHTUTJ1sh3XQF1Uk81QQCL4ACn6ilPUpAehLJzUJ';

/**
* 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
/**
* 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'] = 'srv/www/htdocs/phpMyAdmin';


/**
* 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'] = FALSE;

/**
* 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'] = 'ZlHue35z5ksjTxCHBEGn6JTdPaUuYZ8QWtfQ49GXvkcnbbyKpU3nmGVY9JuW74pjRHgSG7UmrrZiwmu9jWkuOZaNFHTUTJ1sh3XQF1Uk81QQCL4ACn6ilPUpAehLJzUJ';

/**
* 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
/**
* 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'] = 'srv/www/htdocs/phpMyAdmin';


/**
* 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'] = FALSE;

/**
* 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'] = 'ZlHue35z5ksjTxCHBEGn6JTdPaUuYZ8QWtfQ49GXvkcnbbyKpU3nmGVY9JuW74pjRHgSG7UmrrZiwmu9jWkuOZaNFHTUTJ1sh3XQF1Uk81QQCL4ACn6ilPUpAehLJzUJ';

/**
* 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


Du hast zweimal die Zeile
Code:
$cfg['PmaAbsoluteUri'] = 'srv/www/htdocs/phpMyAdmin';
drin. Lösche sie einmal raus und ändere es so ab, dass stat dem Pfad dein Server drin steht.

Code:
$cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin';

Pass die URL an, Groß-/Kleinschreibung etc.


Edit: Ich sehe gerade das in dem Ausschnitt irgendwie alles doppelt ist. Evtl. ein Copy und Paste Fehler. Sollte das wirklich so sein, dann musst Du die Config natürlich bereinigen so dass keine doppelten Einträge mehr vorkommen.
 
OP
feuerteufel

feuerteufel

Hacker
sorry fehler von mir .. wollte Sie dir nur einmal zusenden ...
nein steht nur alles einmal in der Datei.

Es hat soweit alles geklappt .. eine neue Datenbank (Forum) habe ich nun erstellt ..

gruß thomas
 
Oben