Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Can I have several wordpress instances running in a single Amazon EC2 instance?

Each one with a different URL.

share|improve this question
add comment

2 Answers

Yes, you could for example achieve this with apache and a number of vhosts if you need to support multiple domains.

If you don't need to support multiple domains you can do it without the vhosts. Each wordpress-installation would have its own "directory".

share|improve this answer
    
Do you have any tutorial concerning that? thanks –  donald Jun 21 '11 at 22:02
    
This one for a LAMP-stack without vhosts: jonathanhui.com/building-ec2-amazon-linux-lamp - Feel free to skip the EBS-step if you are just testing it. This is a brief tutorial on vhosts: dreamincode.net/forums/topic/143787-apache-vhosts-explained –  Bart De Vos Jun 21 '11 at 22:08
add comment

To answer your actual question "Yup."

Beyond that... You'll want to look up Virtual Hosts in Apache (or some other web server). TiZon's answer explains also that you don't strictly have to run distinct virtual hosts.

Wordpress also includes "MU" functionality that lets you configure a single wordpress installation to have several sub-domains that are separate instances of Wordpress, but are all centrally managed.

So you could have something like:

  • site1.mysite.com
  • site2.mysite.com
  • ...
  • siten.mysite.com

And that'd all be run from a single instance of Wordpress.

For instructions on how to set up a Wordpress server, I kindly advise you to RTFM (click for link). The instructions there will be your best bet. Alternatively, contact me if you want me to just do it for you, for some kind of fee. (I run a bunch of stuff on EC2, including WP).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.