Thank you for choosing Lightsail!
The LAMP7 stack image includes Yii composer out of the box. I was able to create their "basic" app by running
composer create-project --prefer-dist yiisoft/yii2-app-basic basic
in the htdocs folder. I was then able to access that app via "http://<publicip>/basic/web/index.php".
LAMP5 also has it installed. Both stacks have version 1.6 dated 2017-09-19 installed. I received a warning about the age of the install and
sudo composer self-update worked to bring it up to v1.8.4.
I am not an expert on Yii, but I think that from what I learned the composer is not needed at runtime so all you would need to do is upload your project into the 'htdocs' folder and access the root of your application's website to view it.
I hope this helps!
PS: when I ran composer I also received warnings about not being able to write to a bitnami directory. The process proceeded successfully so I think those warnings can be ignored.
Is it really supported to use alerting on "AWS Elasticsearch"?asked 3 years ago
Is it possible to use Yiiframework on lightsail?Accepted Answerasked 4 years ago
Is possible to use RHEL Developer Subscription on AWS EC2?asked 6 months ago
How to use lightsail instance snapshot and point it to different IPasked 7 months ago
phpmyadmin access on Lightsail LAMP instanceasked 3 years ago
Pointing domain to a sub directory - Wordpress on LAMPasked 3 years ago
Feature request: Need MERN stack on Lightsailasked 12 days ago
godaddy domain + lightsail + email? Is it possible?asked 2 years ago
is it possible to transfer a lightsail instance to another account ?asked a year ago
lightsail with LAMP stack with php 8.* or with AMI supportasked 5 months ago