Report this

What is the reason for this report?

How to Create WordPress Subdirectory on Same Droplet { Installed LEMP }

Posted on April 7, 2019
Vijay Singh

By Vijay Singh

Admin

Hi,

I’m running a WordPress Website i.e. https://tellmehost.com/. I want to install another wordpress (sub-directory) look like - https://tellmehost.com/blog.

Please Guide me, How to do that.

I have already installed WordPress and running website following LEMP with ubuntu 18.04.

Please Help me…



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

You would need to do a few things:

  • After that upload your wordpress installation files to the subdirectory in question
  • Create a MySQL database and a MySQL user
  • Update your server block and specify the location of your new wordpress site
  • After the change to the Nginx file make sure that the syntax is ok with the nginx -t command and restart nginx: systemctl restart nginx
  • Then visit the subdirectory via your browser and complete the Wordpress installation

You can follow this step by step guide on how to do that here:

http://lance.bio/2019/02/12/nginx-installing-wordpress-in-a-subdirectory/

Hope that this helps! Bobby

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.