waffeln_am_ententeich
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
waffeln_am_ententeich [2016/10/05 21:42] – xenadmin | waffeln_am_ententeich [2016/11/04 22:43] – xenadmin | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== | + | ====== |
- | Apache2 und PHP5 sind bereits installiert. | + | |
+ | Apache2, MySQL und PHP5 sind bereits installiert | ||
<code bash> | <code bash> | ||
apt update | apt update | ||
- | apt install mysql-server | + | apt install |
- | <mysql root@localhost Passwort setzen> | + | mysql -u root -p |
- | mysql_secure_installation | + | |
</ | </ | ||
- | * < | + | < |
- | | + | CREATE DATABASE wp_waffelente; |
+ | CREATE USER wp_waffelente@localhost IDENTIFIED BY ' | ||
+ | GRANT ALL PRIVILEGES ON wp_waffelente.* TO wp_waffelente@localhost; | ||
+ | FLUSH PRIVILEGES; | ||
+ | exit | ||
+ | </ | ||
+ | <code bash> | ||
+ | service apache2 restart && service mysql restart | ||
- | In order to log into MySQL to secure it, we'll need the current | + | wget https:// |
- | password for the root user. If you've just installed MySQL, and | + | mkdir -p / |
- | you haven' | + | unzip -q latest-de_DE.zip -d / |
- | so you should just press enter here. | + | mv / |
+ | mkdir / | ||
+ | chown -R www-data: | ||
+ | chmod -R 755 / | ||
+ | rm latest-de_DE.zip | ||
- | Enter current password for root (enter for none): | + | cp / |
- | ERROR 1045 (28000): Access denied for user 'root' | + | nano / |
- | Enter current password for root (enter for none): | + | </ |
- | OK, successfully used password, moving on... | + | <hidden wp-config.php -edit> |
+ | <file php wp-config.php> | ||
+ | <?php | ||
+ | define(' | ||
- | Setting the root password ensures that nobody can log into the MySQL | + | define(' |
- | root user without the proper authorisation. | + | define(' |
+ | define(' | ||
+ | define(' | ||
+ | define(' | ||
+ | define(' | ||
- | You already have a root password set, so you can safely answer | + | define(' |
+ | define(' | ||
+ | define(' | ||
+ | define(' | ||
+ | define(' | ||
+ | define(' | ||
+ | define(' | ||
+ | define(' | ||
+ | </ | ||
+ | </ | ||
+ | Certificate Request und 4096 RSA Key mit [[http:// | ||
+ | <code bash> | ||
+ | nano / | ||
+ | nano / | ||
- | Change the root password? [Y/n] n | + | nano /etc/ |
- | | + | </ |
+ | <hidden waffeln.meinekleinefarm.net.conf -edit> | ||
+ | <file apache waffeln.meinekleinefarm.net.conf> | ||
+ | < | ||
+ | ServerName waffeln.meinekleinefarm.net | ||
+ | Redirect permanent / https:// | ||
+ | </ | ||
- | By default, a MySQL installation has an anonymous user, allowing anyone | + | < |
- | to log into MySQL without having to have a user account created for | + | < |
- | them. This is intended only for testing, and to make the installation | + | |
- | go a bit smoother. You should remove them before moving into a | + | |
- | production environment. | + | |
- | Remove anonymous users? [Y/n] y | + | DocumentRoot |
- | ... Success! | + | |
- | Normally, | + | < |
- | ensures that someone cannot guess at the root password from the network. | + | |
+ | </ | ||
- | Disallow root login remotely? [Y/n] y | + | ErrorLog ${APACHE_LOG_DIR}/error.log |
- | ... Success! | + | CustomLog ${APACHE_LOG_DIR}/ |
- | By default, MySQL comes with a database named ' | + | SSLEngine on |
- | access. This is also intended only for testing, and should be removed | + | |
- | before moving into a production environment. | + | SSLCertificateKeyFile |
+ | | ||
- | Remove test database and access to it? [Y/n] y | + | < |
- | - Dropping test database... | + | |
- | ERROR 1008 (HY000) at line 1: Can't drop database ' | + | </ |
- | ... Failed! | + | < |
- | | + | SSLOptions +StdEnvVars |
- | ... Success! | + | </ |
- | Reloading the privilege tables will ensure that all changes made so far | + | BrowserMatch " |
- | will take effect immediately. | + | |
- | + | | |
- | Reload privilege tables now? [Y/n] y | + | |
- | ... Success! | + | |
- | + | ||
- | Cleaning up... | + | |
- | + | ||
- | All done! If you've completed all of the above steps, your MySQL | + | |
- | installation should now be secure. | + | |
- | + | ||
- | Thanks for using MySQL! | + | |
- | </ | + | |
- | < | + | |
- | mysql -u root -p | + | |
- | CREATE DATABASE wp_waffelnamententeich; | + | |
- | CREATE USER wp_waffelnamententeich@localhost IDENTIFIED BY ' | + | |
- | GRANT ALL PRIVILEGES ON wp_waffelnamententeich.* TO wp_waffelnamententeich@localhost; | + | |
- | FLUSH PRIVILEGES; | + | |
- | exit | + | |
- | service apache2 restart && service mysql restart | + | |
- | + | ||
- | wget https:// | + | |
- | mkdir / | + | |
- | unzip -q latest-de_DE.zip -d / | + | |
- | mkdir / | + | |
- | chown -R www-data: | + | |
- | chmod -R 755 / | + | |
- | + | ||
- | cp / | + | |
- | </ | + | |
- | <file php wp-config.php> | + | |
+ | </ | ||
+ | </ | ||
</ | </ | ||
+ | </ | ||
+ | <code bash> | ||
+ | a2ensite waffeln.meinekleinefarm.net.conf | ||
+ | service apache2 reload | ||
+ | </ | ||
+ | Wordpress 5-minute Setup im Browser aufrufen und fertig stellen.\\ | ||
+ | https:// | ||
+ | Username\\ | ||
+ | Password\\ | ||
+ | E-Mail\\ | ||
+ | -> Fertig! | ||
+ | FIXME | ||
+ | * Secure Wordpress, Theme & PlugIn Updates | ||
+ | * Filesystem Permissions |
waffeln_am_ententeich.txt · Zuletzt geändert: 2016/11/09 19:48 von xenadmin