Created
October 1, 2015 10:46
-
-
Save maximishchenko/25e9a57e1a6e7c14243e to your computer and use it in GitHub Desktop.
Install Yii2 into Linux-server and create an application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SSH-session | |
# Install Composer to /bin directory | |
php -r "readfile('https://getcomposer.org/installer');" | php -- --filename=composer --install-dir=/bin | |
# Install composer plugin to work with Bower | |
composer global require "fxp/composer-asset-plugin:~1.0.0" | |
// Go to www-folder | |
cd /www-folder | |
# Create project (<project_name> - also project-folder) | |
composer create-project --prefer-dist yiisoft/yii2-app-basic <project_name> | |
# Need change VirtualHost directory to /www-folder/<project_name>/web/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment