-1

My user-data script for installing Nginx was found to be working on a new launch of the EC2 instance. After launching the ec2 instance, I further added a PHP installation script by editing the user-data, which doesn't work for me.I am using ubuntu ubutu-20 lts image. what may cause my problem? (I have attached elastic IP to the instance )

ashique
  • 935
  • 2
  • 8
  • 26

1 Answers1

0

You can reflect your modified script by removing the below file and then reboot the instance:

/var/lib/cloud/instance/sem/config_scripts_user 

command to remove:

rm /var/lib/cloud/instance/sem/config_scripts_user
ashique
  • 935
  • 2
  • 8
  • 26