Question

Can host Wordpress on domain and Angular on subdomain?

Posted February 12, 2020 239 views
MySQLWordPressAPIDocker

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.

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.

×
1 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

by Brian Boucheron
WordPress is the most popular CMS (content management system) on the internet. It allows you to easily set up flexible blogs and websites on top of a MySQL backend with PHP processing. In this guide, we'll focus on getting a WordPress instance set up on a LAMP stack (Linux, Apache, MySQL, and PHP) on an Ubuntu 18.04 server.
Submit an Answer