Page 1 of 1

Nginx and Apache stopped on boot (AWS)

Posted: Fri Nov 28, 2014 3:47 am
by rama
I have 2 copies of instances up and running on AWS - EC2 namely:
1. Instances-1
2. Instances-2

Vesta installation on Instance-1 is working properly, it can serve the website correctly and as intended.

I am then proceed to experimenting on Elastic Load Balance. So what i did is i make an exact copy of Instance-1 and call it Instance-2.

It appears both Nginx and Apache2 won't start on boot. And when i tried to start it manually, i always get an error message that says Nginx failed to start.

Image

i already make sure that:
1. nginx has higher init.d value than apache
2. no one is currently listening to port :80

Below are some SSH info
Image

I've got a feeling that i need to bind the internal IP of my instance with my load balancer. But i don't know where to start.

Can anyone help me?