I want to launch an Amazon Linux EC2 instance and on boot-up I want to run a PHP script. I am using the AWS PHP SDK.
Referring to this, I understand that I can run a shell script by passing it as userdata. However, is it possible to run a PHP script on bootup?
What are other ways to run PHP scripts on boot-up?
PS: I am running the instance from ab AMI which already has PHP 5.4 installed.