Question

Static site with Wordpress site in subdirectory inside it. Is it possible?

Hi everybody, I have a droplet created manually with 3 static sites and I’m going to create a new one with one click install Wordpress. Current one is with ubuntu 16.04 LEMP stack and had some conflict issues with mysql.

So my questions are this: Is it possible to have static and wordpress sites in one droplet?

Is it possible to have a wordpress site inside a subdirectory of the main site? For example if I have a domain www.mydomain.com which will be static, can I have the wordpress site in www.mydomain.com/Wordpress/mywordpress.php ?

Is it hard to achieve it?

Thank you for your time


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.

Kamal Nasser
DigitalOcean Employee
DigitalOcean Employee badge
September 26, 2016
Accepted Answer

Yes, it is definitely possible! The Wordpress One-Click uses Apache which does not need any additional configs. Follow WordPress’s tutorial on moving a root install to its own directory and you should be fine. On the One-Click, WordPress is installed in /var/www/html/.

This comment has been deleted

    Become a contributor for community

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

    DigitalOcean Documentation

    Full documentation for every DigitalOcean product.

    Resources for startups and SMBs

    The Wave has everything you need to know about building a business, from raising funding to marketing your product.

    Get our newsletter

    Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

    New accounts only. By submitting your email you agree to our Privacy Policy

    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.