您的位置:首页 > 运维架构 > Linux

install yii2 for php 5.4 on CentOS 7

2016-08-12 20:25 316 查看
0. cd ~
1. curl -sS https://getcomposer.org/installer | php
2. sudo mv composer.phar /usr/local/bin/composer

3. check if php_mbstring installed using "php -m |grep mbstring", if not, install the module using "sudo yum install php-mbstring"

4.0 cd /var/www/html/
4.1 sudo mkdir yii2
   sudo chmod 774 yii2
sudo usermod scott -gapache
sudo chown scott:apache yii2
chcon -t httpd_sys_content_rw_t yii2

5. cd yii2
composer global require "fxp/composer-asset-plugin:^1.2.0"

[/code]
composer create-project --prefer-dist yiisoft/yii2-app-basic basic
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: