Hosting WordPress in an EC2 load-balanced instance Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Come Celebrate our 10 Year Anniversary!Simple Backup Strategy for Amazon EC2 instances / volumes?What's the easiest way to auto-backup an EC2 instance?Amazon EC2 terminology - AMI vs. EBS vs. Snapshot vs. VolumeCreate Windows AMI with instance storageAmazon EC2 and EBSHow to use “Instance Store Volumes” storage in Amazon EC2?installing glusterfs on amazon ec2Where's my ephemeral storage for EC2 InstanceCan I use MongoDB with Amazon EC2 small instance?AWS Windows EC2 instance: daily EBS snapshot without downtime
Suing a Police Officer Instead of the Police Department
AI positioning circles within an arc at equal distances and heights
What do you call an IPA symbol that lacks a name (e.g. ɲ)?
Why isn't everyone flabbergasted about Bran's "gift"?
What was Apollo 13's "Little Jolt" after MECO?
How can I wire a 9-position switch so that each position turns on one more LED than the one before?
How much XP should you award if the encounter was not solved via battle?
Why did Europeans not widely domesticate foxes?
Is it acceptable to use working hours to read general interest books?
Are `mathfont` and `mathspec` intended for same purpose?
How to keep bees out of canned beverages?
Help in K.331 Andante Grazioso
Has a Nobel Peace laureate ever been accused of war crimes?
How did Elite on the NES work?
Contradiction:Maximum Power Transfer and High resistance of load
Function on the set of limit countable ordinals
Are these square matrices always diagonalisable?
How to dissolve shared line segments together in QGIS?
How to translate "red flag" into Spanish?
Where did Arya get these scars?
All ASCII characters with a given bit count
Number of possible chess pairs where order and position matter
How long can a nation maintain a technological edge over the rest of the world?
Overhanging vertical bars in tabular
Hosting WordPress in an EC2 load-balanced instance
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Come Celebrate our 10 Year Anniversary!Simple Backup Strategy for Amazon EC2 instances / volumes?What's the easiest way to auto-backup an EC2 instance?Amazon EC2 terminology - AMI vs. EBS vs. Snapshot vs. VolumeCreate Windows AMI with instance storageAmazon EC2 and EBSHow to use “Instance Store Volumes” storage in Amazon EC2?installing glusterfs on amazon ec2Where's my ephemeral storage for EC2 InstanceCan I use MongoDB with Amazon EC2 small instance?AWS Windows EC2 instance: daily EBS snapshot without downtime
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Whenever my Amazon EC2 instance is stopped or rebooted, a new instance is made with an AMI.
This normally is fine for applications that are managed with a service like Puppet, but our WordPress site is not. I have to do a manual restore/upgrade to the latest WordPress from daily backups.
Is there a way to host WordPress on an Amazon instance with some kind of persistence storage for the WordPress files?
I know about EBS volumes, but I'm not sure how to get /var/app/current to "store there".
amazon-ec2 wordpress
add a comment |
Whenever my Amazon EC2 instance is stopped or rebooted, a new instance is made with an AMI.
This normally is fine for applications that are managed with a service like Puppet, but our WordPress site is not. I have to do a manual restore/upgrade to the latest WordPress from daily backups.
Is there a way to host WordPress on an Amazon instance with some kind of persistence storage for the WordPress files?
I know about EBS volumes, but I'm not sure how to get /var/app/current to "store there".
amazon-ec2 wordpress
add a comment |
Whenever my Amazon EC2 instance is stopped or rebooted, a new instance is made with an AMI.
This normally is fine for applications that are managed with a service like Puppet, but our WordPress site is not. I have to do a manual restore/upgrade to the latest WordPress from daily backups.
Is there a way to host WordPress on an Amazon instance with some kind of persistence storage for the WordPress files?
I know about EBS volumes, but I'm not sure how to get /var/app/current to "store there".
amazon-ec2 wordpress
Whenever my Amazon EC2 instance is stopped or rebooted, a new instance is made with an AMI.
This normally is fine for applications that are managed with a service like Puppet, but our WordPress site is not. I have to do a manual restore/upgrade to the latest WordPress from daily backups.
Is there a way to host WordPress on an Amazon instance with some kind of persistence storage for the WordPress files?
I know about EBS volumes, but I'm not sure how to get /var/app/current to "store there".
amazon-ec2 wordpress
amazon-ec2 wordpress
edited Apr 9 at 12:36
Peter Mortensen
2,15142124
2,15142124
asked Apr 8 at 21:09
bobber205bobber205
1811415
1811415
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You should be using EFS volumes for shared storage, like the wp-content folder, and RDS for the database. EBS won't help you for this.
AWS has a good pattern available here. It links to templates and such on GitHub here.
There's another pattern available here as well that gives you a full deployment guide.
Lightsail
AWS is great for WordPress if you need high availability or have a very high load. AWS Lightsail makes WordPress easy, though not highly available, and it can be much cheaper than EC2 especially if you use a lot of bandwidth.
Thanks so much!!!!!
– bobber205
Apr 8 at 23:46
add a comment |
Stab in the dark here:
Whenever my ec2 instance is stopped or rebooted, a new instance is made with an AMI.
Most likely your EC2 instance is controlled by Auto Scaling. So when the instance is stopped, Auto Scaling determines that it's "unhealthy", terminates it, then replaces it. That's why you're losing your data.
To avoid this, create a new EC2 instance that's not controlled by Auto Scaling. This way, you can start and stop it without it being replaced. The EBS volume will retain the data through the stops and restarts.
Is there a way to host wordpress on an amazon instance with some kind of persistence storage for the wordpress files?
EBS-backed EC2 instances do provide the persistent storage you're looking for. However, I think the issue is that the act of stopping the EC2 instance is terminating and re-creating the instance.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f962097%2fhosting-wordpress-in-an-ec2-load-balanced-instance%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You should be using EFS volumes for shared storage, like the wp-content folder, and RDS for the database. EBS won't help you for this.
AWS has a good pattern available here. It links to templates and such on GitHub here.
There's another pattern available here as well that gives you a full deployment guide.
Lightsail
AWS is great for WordPress if you need high availability or have a very high load. AWS Lightsail makes WordPress easy, though not highly available, and it can be much cheaper than EC2 especially if you use a lot of bandwidth.
Thanks so much!!!!!
– bobber205
Apr 8 at 23:46
add a comment |
You should be using EFS volumes for shared storage, like the wp-content folder, and RDS for the database. EBS won't help you for this.
AWS has a good pattern available here. It links to templates and such on GitHub here.
There's another pattern available here as well that gives you a full deployment guide.
Lightsail
AWS is great for WordPress if you need high availability or have a very high load. AWS Lightsail makes WordPress easy, though not highly available, and it can be much cheaper than EC2 especially if you use a lot of bandwidth.
Thanks so much!!!!!
– bobber205
Apr 8 at 23:46
add a comment |
You should be using EFS volumes for shared storage, like the wp-content folder, and RDS for the database. EBS won't help you for this.
AWS has a good pattern available here. It links to templates and such on GitHub here.
There's another pattern available here as well that gives you a full deployment guide.
Lightsail
AWS is great for WordPress if you need high availability or have a very high load. AWS Lightsail makes WordPress easy, though not highly available, and it can be much cheaper than EC2 especially if you use a lot of bandwidth.
You should be using EFS volumes for shared storage, like the wp-content folder, and RDS for the database. EBS won't help you for this.
AWS has a good pattern available here. It links to templates and such on GitHub here.
There's another pattern available here as well that gives you a full deployment guide.
Lightsail
AWS is great for WordPress if you need high availability or have a very high load. AWS Lightsail makes WordPress easy, though not highly available, and it can be much cheaper than EC2 especially if you use a lot of bandwidth.
edited Apr 9 at 12:40
Peter Mortensen
2,15142124
2,15142124
answered Apr 8 at 22:01
TimTim
18.1k41950
18.1k41950
Thanks so much!!!!!
– bobber205
Apr 8 at 23:46
add a comment |
Thanks so much!!!!!
– bobber205
Apr 8 at 23:46
Thanks so much!!!!!
– bobber205
Apr 8 at 23:46
Thanks so much!!!!!
– bobber205
Apr 8 at 23:46
add a comment |
Stab in the dark here:
Whenever my ec2 instance is stopped or rebooted, a new instance is made with an AMI.
Most likely your EC2 instance is controlled by Auto Scaling. So when the instance is stopped, Auto Scaling determines that it's "unhealthy", terminates it, then replaces it. That's why you're losing your data.
To avoid this, create a new EC2 instance that's not controlled by Auto Scaling. This way, you can start and stop it without it being replaced. The EBS volume will retain the data through the stops and restarts.
Is there a way to host wordpress on an amazon instance with some kind of persistence storage for the wordpress files?
EBS-backed EC2 instances do provide the persistent storage you're looking for. However, I think the issue is that the act of stopping the EC2 instance is terminating and re-creating the instance.
add a comment |
Stab in the dark here:
Whenever my ec2 instance is stopped or rebooted, a new instance is made with an AMI.
Most likely your EC2 instance is controlled by Auto Scaling. So when the instance is stopped, Auto Scaling determines that it's "unhealthy", terminates it, then replaces it. That's why you're losing your data.
To avoid this, create a new EC2 instance that's not controlled by Auto Scaling. This way, you can start and stop it without it being replaced. The EBS volume will retain the data through the stops and restarts.
Is there a way to host wordpress on an amazon instance with some kind of persistence storage for the wordpress files?
EBS-backed EC2 instances do provide the persistent storage you're looking for. However, I think the issue is that the act of stopping the EC2 instance is terminating and re-creating the instance.
add a comment |
Stab in the dark here:
Whenever my ec2 instance is stopped or rebooted, a new instance is made with an AMI.
Most likely your EC2 instance is controlled by Auto Scaling. So when the instance is stopped, Auto Scaling determines that it's "unhealthy", terminates it, then replaces it. That's why you're losing your data.
To avoid this, create a new EC2 instance that's not controlled by Auto Scaling. This way, you can start and stop it without it being replaced. The EBS volume will retain the data through the stops and restarts.
Is there a way to host wordpress on an amazon instance with some kind of persistence storage for the wordpress files?
EBS-backed EC2 instances do provide the persistent storage you're looking for. However, I think the issue is that the act of stopping the EC2 instance is terminating and re-creating the instance.
Stab in the dark here:
Whenever my ec2 instance is stopped or rebooted, a new instance is made with an AMI.
Most likely your EC2 instance is controlled by Auto Scaling. So when the instance is stopped, Auto Scaling determines that it's "unhealthy", terminates it, then replaces it. That's why you're losing your data.
To avoid this, create a new EC2 instance that's not controlled by Auto Scaling. This way, you can start and stop it without it being replaced. The EBS volume will retain the data through the stops and restarts.
Is there a way to host wordpress on an amazon instance with some kind of persistence storage for the wordpress files?
EBS-backed EC2 instances do provide the persistent storage you're looking for. However, I think the issue is that the act of stopping the EC2 instance is terminating and re-creating the instance.
answered Apr 8 at 23:46
Matt HouserMatt Houser
7,8341518
7,8341518
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f962097%2fhosting-wordpress-in-an-ec2-load-balanced-instance%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown