Report this

What is the reason for this report?

Install and configure wordpress on lemp on ubuntu 16.04 with wordpress in subdirectory

Posted on March 5, 2017

This question has been asked a lot and so far solutions have only been posted for LAMP. How about we get an answer for this and put it into a tutorial?

The root of the website should be static or php without wordpress installed in it. Call it mywebsite.

A subdirectory, let’s say blog, has wordpress installed in it => https://mywebsite/blog will access the blog.

This is to be done with one DO instance and managed by nginx server blocks, I presume.

The problem I’ve had is that the wordpress admin panel doesn’t respect https://mywebsite/blog (by checking the page source of the admin panel) and attempts to load external files by https://mywebsite.

Is this a wordpress problem or a configuration problem?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.