Hi there !
I followed this tutorial to install my Magento website : How to set up a web server for Magento 2.2 (Thanks again Craig ! )
I installed my Magento in this directory : var/www/html/
I tried to install a wordpress website on a subdomain : blog.example.com so I put my wordpress in var/www/html/blog. Everything seems to work great except that there is a conflict beetween my magento URL and my blog URL (redirection from my wordpress to my magento when I try to visit some pages).
So I uninstalled all and I try to install my wordpress website in var/www/blog to avoid any problem with my magento, like two independant websites.
I tried to follow this tutorial (https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04) but it doesn’t work with me : I have an server error on my wordpress website.
Do you have a tutorial to recommand or any tips to succeed what I want to do ?