EasyTec

WordPress auf Ubuntu Installieren

Sep 12th, 2020
687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. ### WordPress auf Ubuntu (LXC in Proxmox Installieren) ###
  2.  
  3. # updaten
  4. apt-get update
  5. apt-get upgrade
  6.  
  7. # mysql-server Installieren
  8. apt-get -y install mysql-server
  9.  
  10. # mysql sicherer machen
  11. mysql_secure_installation
  12.  
  13. # Datenbank für WordPress erstellen
  14. mysql -u root -p
  15.  
  16. create database wordpress;
  17.  
  18. create user wordpress@localhost identified by 'mein_passwort';
  19.  
  20. grant all privileges on wordpress.* to wordpress@localhost;
  21.  
  22. # speichern & exit
  23. flush privileges;
  24. exit;
  25.  
  26. # WordPress Installieren
  27. apt-get install wordpress
  28.  
  29. # anderes Packet Installieren
  30. apt-get -y install php5-gd libssh2-php
  31.  
  32. # WordPress suchen
  33. cd /var/www/wordpress
  34. ls
  35.  
  36. # sample datei in echte kopieren
  37. cp wp-config-sample.php wp-config.php
  38.  
  39. # file anpassen
  40. nano wp-config.php
  41.  
  42. # Apache2 Installieren
  43. apt-get -y install apache2
  44.  
  45. # Apache2 configurieren (PHP version bitte anpassen!)
  46. apt-get install libapache2-mod-php7.2 php7.2-mysql
  47.  
  48. # apache2 anpassen
  49. cd /etc/apache2/sites-enabled
  50. nano 000-default.conf
  51.  
  52. DocumentRoot /var/www/wordpress
  53.  
  54. # apache2 neustarten (wunschbefehl)
  55. /etc/init.d/apache2 restart
  56.  
  57. # Website ansurfen und anmelden
  58.  
  59. # Rechte für user (wordpress) freigeben
  60. chown -R www-data:www-data /var/www/wordpress
  61.  
Advertisement
Add Comment
Please, Sign In to add comment