Question

How to install Wordpress in a subfolder?

I have a web app in a droplet, Ubuntu 16, with phpmyadmin and mysql, the webapp works fine, but I want to install a wordpress site in a subfolder of that web app, for blogging purposes, how can I do that?

I have tried this:

  1. I have downloaded wordpress and place the files into a subfolder, like : https://webapp.com/blog physically , the web app files are in the home folder, so I have placed the wordpress files inside a folder there named “blog”. like this: /home/user/webapp/blog
  2. In PhpMyAdmin I have imported the wordpress database.

But the wordpress site doesn’t run.

Any help is appreciated.


Submit an answer


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!

Sign In or Sign Up to Answer

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.

KFSys
Site Moderator
Site Moderator badge
August 20, 2019
Accepted Answer

Hi @GabrielVB,

Your method is correct! Basically, you can place the files in the blog folder and then load it to start the wordpress installation process.

Regarding the database, you just need to create a blank one and let wordpress import it’s files.

Please try to re-install it and let me know how it goes. If it still fails, please let me know what error do you get.

Kind Regards, Kalin D.

Hi, its working . Thank you. Wordpress site is up and running. Apparently , the webapp was blocking somehow the folder “blog” so Ive renamed it to “b” and then the wordrpress started to work.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel