Question

Can host Wordpress on domain and Angular on subdomain?

Dear All, First of all sorry if it will be a silly question. My plan is to host a WordPress website to www.example.com for an introduction page. Is it possible to host an Angular SPA to www.angular.example.com or example.com/angular? For angular I need a .net core backend rest API and a mysql database. Can you suggest the steps how can I implement this? Is one droplet with 3 docker (angular, .net core, mysql) and wordpress installation is a good way? Thank you for your answer.


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
February 12, 2020
Accepted Answer

Hi @tothtomi7,

This is entirely possible! What I’ll recommend using in this case is a LAMP droplet. Good thing is DigitalOcean does have a pretty good article about the same process you are describing - https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-18-04

The above article will help you install Apache, MySQL and PHP in order for your WordPress website to run properly. It will also set the environment for your angular website as well. You’ll just need to configure a new Vhost on your server for your Subdomain - www.angular.example.com or if you want to use example.com/angular, just creating a new folder in your DocumentRoot will do the trick.

Regards, KDSys

Try DigitalOcean for free

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

Sign up

Featured on Community

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