BCS Create New Yii 2 With Composer


When a new Yii2 project is required move to the root of your web and issue the following command.
[codesyntax lang=”bash”]

composer create-project --prefer-dist yiisoft/yii2-app-basic fdoc

[/codesyntax]
Composer will initiate and build the new project “fdoc”.
Two commands should be issued to make directories writable by the web process.
b[codesyntax lang=”bash”]

chmod 0777 runtime
chmod 0777 web/assets

[/codesyntax]
You may need to change ownership of the files by issuing the following command.
[codesyntax lang=”bash”]

sudo chown -R www-data:www-data fdoc

[/codesyntax]
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

Leave a Reply

Your email address will not be published. Required fields are marked *