wordpress_migration
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| wordpress_migration [2016/11/01 21:25] – angelegt xenadmin | wordpress_migration [2016/11/09 19:53] (aktuell) – xenadmin | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Wordpress | + | ====== Wordpress Migration www.meinekleinefarm.net ====== |
| + | === Alter Server === | ||
| + | <code bash> | ||
| + | mysqldump -h localhost -u root -p meinekleinefarmwordpress > wp_meinekleinefarm.sql | ||
| + | scp -r -P 22 / | ||
| + | cd / | ||
| + | tar -czvf - * | ssh -p 22 root@192.168.1.2 'tar -xhzvf - -C / | ||
| + | </ | ||
| + | === Neuer Server === | ||
| + | <code bash> | ||
| + | chown www-data: | ||
| + | mysql -u root -p | ||
| + | </ | ||
| + | <code mysql> | ||
| + | CREATE USER ' | ||
| + | CREATE DATABASE `wp_meinekleinefarm`; | ||
| + | GRANT ALL privileges ON `wp_meinekleinefarm`.* TO ' | ||
| + | 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 | ||
| - | <code bash> | + | 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.1478035527.txt.gz · Zuletzt geändert: von xenadmin
