What is your directory structure for
You can play around it and set up both Joomla and WordPress correctly.
Now, that really depends on what you want. One of two possibilities are:
- Joomla is main and you want to call WordPress with
- Joomla is main and you want to call WordPress using subdomain, e.g.
I’m assuming you want Joomla as main website, as you already used it. Same is if you want WordPress as main and Joomla as subsite.
For first, store Joomla in
/var/www/html. You can store WP in
blog directory, apply needed permissions and install WordPress there. You can basically follow WordPress tutorial as it is. Just to note that you don’t change
/var/www/html (where Joomla lives), you change
/var/www/html/blog! So when you see something saying do it on
/var/www/html, you are doing on
Now, for second… Let’s create directory for WP -
/var/www/blog.example.com/html. This requires you playing around Virtual Hosts and DNS configuration. It’s harder solution, but can be more suitable depending on usage.
First create CNAME record for
blog pointing to
@, then create needed Virtual Host for that subdomain. How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 16.04 should help you set up needed Virtual Host.
And you are ready to follow WordPress tutorial. Just to note again, when you see
This is two possible solutions. I think one of it is best way to set up it.
You can’t store both in same directory, e.g.
/var/www/html. In that case WordPress (if installed after Joomla) will overwrite some of Joomla files, and Joomla will stop working. That’s way you need to use special directory for it.
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. WordPress has seen incredible adoption and is a great choice for getting a website up and...