Installing WordPress on Ubuntu 14.04 Nginx on AWS

Published on

Create a database. mysql -h localhost -u root -p CREATE DATABASE WORDPRESS_DATABASE; CREATE USER WORDPRESS_USER@localhost IDENTIFIED BY ‘password’; GRANT ALL PRIVILEGES ON WORDPRESS_DATABASE.* TO WORDPRESS_USER@localhost; FLUSH PRIVILEGES; exit; Download WordPress and copy it to the document root. cd ~ wget http://wordpress.org/latest.tar.gz tar xzvf latest.tar.gz sudo mv wordpress/ /var/www/WORDPRESS_DIRECTORY/ Download some additional PHP modules WordPress will … Continue reading Installing WordPress on Ubuntu 14.04 Nginx on AWS

Nginx Server Configuration for WordPress on Ubuntu 14.04

Published on

server { listen 80 #listen 80 default_server; #listen [::]:80 default_server ipv6only=on; root /var/www/WORDPRESS_DIRECTORY; index index.php index.html index.htm; # Make site accessible from http://localhost/ server_name WORDPRESS_DOMAIN; client_max_body_size 50m; location / { # try_files $uri $uri/ =404; try_files $uri $uri/ /index.php?q=$uri&$args; } error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page … Continue reading Nginx Server Configuration for WordPress on Ubuntu 14.04