admin管理员组

文章数量:1287119

The plan is to install wordpress on AWS with ELB. So far I have two instances of Ubuntu 16.04 each with PHP7 and both connected to RDS (MariaDB).

The PHP Session is shared between the ec2 instances and hosted in ElastiCache (Memcached). So in php.ini, at the session section, I use memcached. If I have only one ec2 under the ELB, I can login to the admin and all is perfect.

The problem is when have both of them under ELB (the exact same config) the website is working but the login in the admin no any more. Does someone have any idea/clue/suggestion about this matter? Thank you

The plan is to install wordpress on AWS with ELB. So far I have two instances of Ubuntu 16.04 each with PHP7 and both connected to RDS (MariaDB).

The PHP Session is shared between the ec2 instances and hosted in ElastiCache (Memcached). So in php.ini, at the session section, I use memcached. If I have only one ec2 under the ELB, I can login to the admin and all is perfect.

The problem is when have both of them under ELB (the exact same config) the website is working but the login in the admin no any more. Does someone have any idea/clue/suggestion about this matter? Thank you

Share Improve this question edited Oct 25, 2019 at 16:17 Tom J Nowell 61k7 gold badges79 silver badges148 bronze badges asked Feb 4, 2017 at 13:38 Morpheus_roMorpheus_ro 1215 bronze badges 1
  • Are still using this setup or moved to the elastic cache?? – Muzammil Commented Oct 4, 2021 at 18:06
Add a comment  | 

1 Answer 1

Reset to default 1

Finally I managed to solve this issue. The problem i had was on the ELB with the sticky sessions. I just enabled it and set a time of 3600 and now wordpress in login in users. A question remains with the real ELB power. If you do this sticky session I found some documentation that says the user is bind to one single EC2 exclusively .. feel free to comment over this. Thanks again

本文标签: pluginsWordpress on AWS with ELB