Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### WordPress auf Ubuntu (LXC in Proxmox Installieren) ###
- # updaten
- apt-get update
- apt-get upgrade
- # mysql-server Installieren
- apt-get -y install mysql-server
- # mysql sicherer machen
- mysql_secure_installation
- # Datenbank für WordPress erstellen
- mysql -u root -p
- create database wordpress;
- create user wordpress@localhost identified by 'mein_passwort';
- grant all privileges on wordpress.* to wordpress@localhost;
- # speichern & exit
- flush privileges;
- exit;
- # WordPress Installieren
- apt-get install wordpress
- # anderes Packet Installieren
- apt-get -y install php5-gd libssh2-php
- # WordPress suchen
- cd /var/www/wordpress
- ls
- # sample datei in echte kopieren
- cp wp-config-sample.php wp-config.php
- # file anpassen
- nano wp-config.php
- # Apache2 Installieren
- apt-get -y install apache2
- # Apache2 configurieren (PHP version bitte anpassen!)
- apt-get install libapache2-mod-php7.2 php7.2-mysql
- # apache2 anpassen
- cd /etc/apache2/sites-enabled
- nano 000-default.conf
- DocumentRoot /var/www/wordpress
- # apache2 neustarten (wunschbefehl)
- /etc/init.d/apache2 restart
- # Website ansurfen und anmelden
- # Rechte für user (wordpress) freigeben
- chown -R www-data:www-data /var/www/wordpress
Advertisement
Add Comment
Please, Sign In to add comment