wordpress setup

S1: CD …

cd /home/wwwroot/

cd /etc/nginx/sites-available/

cd /etc/nginx/sites-enabled/

cd /usr/local/etc/

cd /usr/local/nginx/conf/vhost/

cd /usr/local/nginx/conf/ssl/

S2: Update …

sudo apt update -y && apt upgrade -y && apt dist-upgrade -y && apt autoclean -y && apt autoremove -y ;

S3: Reload …

systemctl status ;

systemctl enable ;

systemctl restart ;

systemctl status ;

systemctl restart nginx && systemctl status nginx ;

S4: Chown

chown -R www-data:www-data /home/wwwroot ;

S5: SSL

certbot  -d       --nginx -v ;

S6: Softlink

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

S7: WordPress Download

wget -O w.zip https://wordpress.org/latest.zip && unzip w.zip && cd wordpress/ && mv * ../ && cd .. && rm -rf wordpress && rm -rf w.zip && mv wp-config-sample.php wp-config.php;
Scroll to Top