Thanks, managed to install everything as I wanted. I'll post below the steps, just in case someone needs it.
Getting Ubuntu deployed was fast, it's pretty easy actually, just click-click-click on Azure portal.
The only thing worth mentioning here is to setup now the inbound port you will be using for NodeJS. I've set it to (random) 3000, TCP, Allow, Any, Any..
WordPress
For the LAMP stack and WordPress I followed
THIS tutorial, which is super easy , mostly a 5min copy/paste job.
I haven't used Azure CLI as instructed there, because I already SSHed into machine before reading that tutorial

It should work either way.
Few things to know:
1. MySQL doesn't ask you for root pass during LAMP instaIl, you should set a root password for MySQL if you plan to be serious with security later on. I don't care.
2. Last two lines of code in that tutorial point your WordPress installation to
http://yourdomain.com/wordpress
Modify as you wish, I didn't, but again. . I don't care, I just needed wp installed.
Also, I don't have a domain for this, I will just use the IP address given by default.
NODEJS
This part was a bit more complicated, I will post the commands I used here.
The above will actually install Node
For testing in the next steps we need a http server running, so we will create one.
Paste this
Code:
var http = require('http'), server = http.createServer(function
(request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('Hello World\n');
});
server.listen(3000);
Ctrl+X in Nano exits, press Y to save, Enter
If you do right now
your server will start and by going to
http://yourdomain.com:3000
you'll see a Hello World text.
However, that number in the URL looks so ugly.. To change that, some extra steps are needed.
To run Apache and NodeJS on same server we have two options:
1. Run Node on subdomain, as SpoonFeeder suggested. I don't have a domain for this thing and I think using a subdomain would complicate my life in this case.
2. ProxyPass: a nice feature in Apache that will send Node things to a folder, so your apps will be accessible from an address like
http://yourdomain.com/node
I went with the second, here are the commands
Code:
sudo nano /etc/apache2/conf-available/CUSTOM.conf
This will create a custom conf file for Apache
Paste this in there, Exit, Save
Code:
ProxyPass /node http://localhost:3000
Enable custom configuration
Enable proxy
Restart Apache
Code:
sudo service apache2 restart
Start previously created Node server
Bam, that's all, your Node server should be accessible by visiting either
http://yourdomain.com:3000
or
http://yourdomain.com/node
Hope this will help someone.