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

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

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

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 *