How To Install Wordpress On Ubuntu
How To Install Wordpress On Ubuntu
guide
https://pimylifeup.com/raspberry-pi-wordpress/
https://opensource.com/article/18/10/setting-wordpress-raspberry-pi
https://howtoraspberrypi.com/install-wordpress-on-a-raspberry-pi-with-
nginx/
sudo apt-get update
ping 8.8.8.8
nslookup google.com
MYSQL database
sudo service mysql status #to check my sql status and if it is
already installed
sudo su
Enter current password for root (enter for none): Just press the Enter
show databases;
#create a separate user name wordpressuser that will operate on that database
with password = felice@!86
show databases;
FLUSH PRIVILEGES;
EXIT;
PHP
sudo apt-get install php7.2 php7.2-cli php7.2-common -y
apache
sudo apt install apache2 -y
<VirtualHost *:8086>
ServerAdmin [email protected]
DocumentRoot /var/www/html/wordpress/
ServerName wordpress_http
ServerAlias www.example.com
<Directory /var/www/html/wordpress/>
Options +FollowSymlinks
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
</VirtualHost>
sudo nano /etc/apache2/ports.conf #to say to apache to listen also on the
port used into the new site enables
sudo apache2ctl -S
wordpress
cd /tmp
ls -lash
curl -O https://wordpress.org/latest.tar.gz
ls -lash
ls -lash
#touch /tmp/wordpress/.htaccess
#mkdir /tmp/wordpress/wp-content/upgrade
sudo chown -R www-data:www-data /var/www/html/wordpress/
UFW firewall
sudo ufw status
sudo ufw allow in "Apache Full" #to allow HTTP and HTTPS traffic for Apache
Full profile
sudo ufw app info "Apache Full" #to check apache has http and https
enables
test if it work
open the browser
http://ip:8086
http://192.168.3.53:8086/wp-admin/index.php
http://192.168.3.53:8086/wp-admin/
troubleshooting commands
sudo ufw status #check if the firewall is active
sudo apache2ctl -S
tail -f /var/log/apache2/access.log