1. use curl to install composer
# export http_proxy=http;//X.X.X.X:3128
# export https_proxy= http;//X.X.X.X:3128
# curl -sS https://getcomposer.org/installer | php
# mv composer.phar /usr/bin/composer
2. installl php-mcypt module
# apt-get update
# apt-get install php5-mcypt
3. enable php5-mcypt module
# php5enmod mcrypt
# /etc/init.d/apache2 restart
4. create first project use composer
# composer create-project --prefer-dist yiisoft/yii2-app-basic yii
5. check project running status
user browser to http://localhost/yii/web/index.php
沒有留言:
張貼留言