wordpress_migration
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| wordpress_migration [2016/11/01 21:50] – xenadmin | wordpress_migration [2016/11/09 19:53] (aktuell) – xenadmin | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Wordpress | + | ====== Wordpress Migration www.meinekleinefarm.net ====== |
| + | === Alter Server === | ||
| <code bash> | <code bash> | ||
| mysqldump -h localhost -u root -p meinekleinefarmwordpress > wp_meinekleinefarm.sql | mysqldump -h localhost -u root -p meinekleinefarmwordpress > wp_meinekleinefarm.sql | ||
| Zeile 7: | Zeile 7: | ||
| tar -czvf - * | ssh -p 22 root@192.168.1.2 'tar -xhzvf - -C / | tar -czvf - * | ssh -p 22 root@192.168.1.2 'tar -xhzvf - -C / | ||
| </ | </ | ||
| + | === Neuer Server === | ||
| <code bash> | <code bash> | ||
| chown www-data: | chown www-data: | ||
| Zeile 15: | Zeile 15: | ||
| CREATE USER ' | CREATE USER ' | ||
| CREATE DATABASE `wp_meinekleinefarm`; | CREATE DATABASE `wp_meinekleinefarm`; | ||
| - | GRANT ALL privileges ON `wp_mkfarm`.* TO 'wp_meinekleinefarm' | + | GRANT ALL privileges ON `wp_meinekleinefarm`.* TO 'wp_mkfarm' |
| flush privileges; | flush privileges; | ||
| </ | </ | ||
| + | <code bash> | ||
| + | mysql -u root -p wp_meinekleinefarm < / | ||
| + | nano / | ||
| + | </ | ||
| + | <hidden wp-config.php>< | ||
| + | <?php | ||
| + | define(' | ||
| + | |||
| + | define(' | ||
| + | define(' | ||
| + | define(' | ||
| + | define(' | ||
| + | define(' | ||
| + | define(' | ||
| + | |||
| + | define(' | ||
| + | define(' | ||
| + | define(' | ||
| + | define(' | ||
| + | define(' | ||
| + | define(' | ||
| + | define(' | ||
| + | define(' | ||
| + | </ | ||
| + | <code bash> | ||
| + | nano / | ||
| + | </ | ||
| + | <hidden %%www.meinekleinefarm.net.conf%%>< | ||
| + | < | ||
| + | ServerName meinekleinefarm.net | ||
| + | ServerAlias www.meinekleinefarm.net | ||
| + | Redirect permanent / https:// | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | ServerAdmin webmaster@meinekleinefarm.net | ||
| + | ServerName meinekleinefarm.net | ||
| + | ServerAlias www.meinekleinefarm.net | ||
| + | |||
| + | DocumentRoot / | ||
| + | |||
| + | < | ||
| + | AllowOverride All | ||
| + | </ | ||
| + | |||
| + | ErrorLog ${APACHE_LOG_DIR}/ | ||
| + | CustomLog ${APACHE_LOG_DIR}/ | ||
| + | |||
| + | SSLEngine on | ||
| + | SSLCertificateFile | ||
| + | SSLCertificateKeyFile | ||
| + | |||
| + | < | ||
| + | SSLOptions +StdEnvVars | ||
| + | </ | ||
| + | < | ||
| + | SSLOptions +StdEnvVars | ||
| + | </ | ||
| + | |||
| + | BrowserMatch "MSIE [2-6]" \ | ||
| + | nokeepalive ssl-unclean-shutdown \ | ||
| + | downgrade-1.0 force-response-1.0 | ||
| + | BrowserMatch "MSIE [17-9]" | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | <code bash> | ||
| + | service apache2 reload | ||
| + | </ | ||
| + | In die Administration einloggen, und das Setting für " | ||
wordpress_migration.1478037045.txt.gz · Zuletzt geändert: von xenadmin
