Install wordpress in Raspberry

sudo apt install nginx -y

sudo apt remove apache2

sudo apt install –fix-missing

sudo apt remove mysql*

sudo apt-get install mariadb-server mariadb-client -y

sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y

systemctl status php7.0-fpm

systemctl status php7.0-fpm.service

cd /var/www

ls

ls -l

ps -aux | grep nginx

sudo chown www-data:www-data * -R

ls -l

sudo wget https://wordpress.org/latest.tar.gz

sudo tar zxvf latest.tar.gz

ls

sudo rm latest.tar.gz

sudo chown www-data:www-data * -R

ls -l

cd /etc/nginx/sites-available/

ls

sudo wget https://cdn.irony.online/class/wordpress.conf

ls

ls -l

sudo nano wordpress.conf

cd /etc/nginx/sites-enabled/

sudo rm default

sudo ln -s /etc/nginx/sites-available/wordpress.conf  /etc/nginx/sites-enabled/

ls -l

sudo systemctl restart nginx

ifconfig

get the ip address

ie:192.168.x.x/wp-admin/setup-config.php

picture 0

sudo mariadb

create database wordpress;

create user 'user'@'localhost' identified by 'password';

grant all on wordpress.* to 'user'@'localhost';

exit

sudo nano /etc/php/7.0/fpm/php.ini

ctrl+w  

search:  cgi.fix_pathinfo

uncomma second paragraph last line

picture 1

ctrl + x

sudo systemctl restart php

sudo systemctl restart php7.0-fpm.service

cd /var/www/wordpress/

sudo cp wp-config-sample.php wp-config.php

sudo chown www-data:www-data *

sudo nano wp-config.php

picture 2

picture 3

ctrl+x

ie:192.168.x.x/wp-admin/install.php

htop

end