How to install Wordpress in a subfolder?

Posted August 19, 2019 1.5k views
WordPressUbuntu 16.04

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 : 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.

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.

Submit an Answer
2 answers

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.