lnmp_mit_debian_10_fuer_wordpress_herrrichten
This is an old revision of the document!
1 apt update
2 apt upgrade
3 apt-get install nginx mariadb-server mariadb-client php-cgi php-common php-fpm php-pear php-mbstring php-zip php-net-socket php-gd php-xml-util php-gettext php-mysql php-bcmath unzip wget git -y
4 nano /etc/php/7.3/fpm/php.ini post_max_size = 64M memory_limit = 256M max_execution_time = 300 upload_max_filesize = 32M
5 systemctl restart php7.3-fpm.service
6 mysql CREATE DATABASE wpdb; CREATE USER 'wpuser'@'localhost' identified by 'dbpassword'; GRANT ALL PRIVILEGES ON wpdb.* TO 'wpuser'@'localhost'; FLUSH PRIVILEGES; EXIT;
7 cd /var/www/html/
8 wget https://wordpress.org/latest.tar.gz
9 tar -xvzf latest.tar.gz
10 cd wordpress/
11 cp wp-config-sample.php wp-config.php
12 nano wp-config.php Adjust database settings 13 chown -R www-data:www-data /var/www/html/wordpress/
14 nano /etc/nginx/sites-available/[[wordpress.conf]]
15 ln -s /etc/nginx/sites-available/wordpress.conf /etc/nginx/sites-enabled/
16 systemctl restart nginx.service
17 systemctl restart php7.3-fpm.service
18 systemctl restart nginx.service
lnmp_mit_debian_10_fuer_wordpress_herrrichten.1628601368.txt.gz · Last modified: by admin