Is it possible to use Yiiframework on lightsail?

0

Anyone know if it’s possible to use yiiframework on lghtsail LAMP stack?
Tbh, im pretty new both to lightsail and Yii, so i don’t really know that well of how they work just yet.

I got this particular php pages made using Yii and im trying to put it up on lightsail.

Vermi
질문됨 5년 전248회 조회
1개 답변
0
수락된 답변

Vermi,

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!

Donley

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.

profile pictureAWS
답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인