Create elastic ip in ec2 aws and assign it to instance

Step 1 : Instance -> Networking -> Manage IP addresses
then assign new ip it will then add a new private ip address

Step 2 : Network & Security -> Elastic IPs
Then create a new elastic ip address, After that right click on it and click Associate Address.
Then select the instance and select the second newly created public ip address and then save.

Step 3 : Then simple run the command in the ssh terminal of that instance.

sudo ip addr add [New Private ip]/20 dev eth0

Step 4 : now your ip has been pointed on the instance. Now you can use it according to your need. You can also define the virutal host in 000-default.conf file if you want to point this ip on other folder if you are using it run php application.