简体   繁体   中英

Which settings can make a website not working after launching an EC2 AMI in another instance?

My aim is moving my websites hosted in a EC2 t2.small in a t2.large instance.

I created the snapshot, then the AMI.

I launched the AMI in the new instance but neither the websites (after changing the DNS A record)

nor the phpMyadmin installed in http://ipaddress/phpmyadmin folder are reachable.

Which could be the problems/misconfigurations?

Here the error_log

https://kopy.io/Gr8AW

and here the httpd.conf

https://kopy.io/I9Z2E

To change instance types, all you need to do is:

  • Stop the EC2 instance
  • Change the Instance Type
  • Start the EC2 instance
  • Done!

Please note that if you have a DNS Name associated with the instance, then you should use an Elastic IP address on the EC2 instance so that it does not change IP address when the instance is stopped and started.

If you have created a snapshot and booted up then there are likely chances that some services might have stopped. Check if your PHP and other required services are running. Also, if you have elastic IP, allocate to newly turned on server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM