Fastest way to setup your Wordpress blog

> wget -qO ee rt.cx/ee && sudo bash ee
> sudo ee site create myawesomeblog.com --wp

How to setup your own Wordpress blog, for beginners, step by step, with photos, the right way, in easy way, from scratch, in under 15 minutes, bla bla bla…

Servers gonna serve…
> cd
> curl -L https://wordpress.org/latest.tar.gz -o wordpress.tar.gz
> tar -xvf wordpress.tar.gz
> mv wordpress myawesomeblog.com
> mysql -u root -pmysql> CREATE DATABASE myawesomeblog;
mysql> CREATE USER 'myawesomeblog'@'localhost' IDENTIFIED BY 'mysecretpassword';
mysql> GRANT ALL PRIVILEGES ON myawesomeblog.* TO 'myawesomeblog'@'localhost';
mysql> FLUSH PRIVILEGES;
> cd /etc/nginx/sites-available
> sudo touch myawesomeblog.com
> sudo ln -s ../sites-available/myawesomeblog.com ../sites-enabled
server {
# domain name of your website
server_name myawesomeblog.com;
# the folder of your wordpress files
root /home/ubuntu/myawesomeblog.com;
index index.php; access_log /var/log/nginx/myawesomeblog.com.access.log;
error_log /var/log/nginx/myawesomeblog.com.error.log;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ /\. {
deny all;
}
location ~* /(?:uploads|files)/.*\.php$ {
deny all;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
# pass all the php scripts to php-fpm
location ~ \.php$ {
include fastcgi.conf;
# enter the socket address of your php-fpm process below
fastcgi_pass server unix:/run/php/php7.0-fpm.sock;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
}
> sudo nginx -t
> sudo service nginx restart
Devops… Yeah!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store