install yii2 for php 5.4 on CentOS 7

来源:互联网 发布:淘宝冲销量网站 编辑:程序博客网 时间:2024/06/07 06:32
0. cd ~1. curl -sS https://getcomposer.org/installer | php
2. sudo mv composer.phar /usr/local/bin/composer3. 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 yii25. cd yii2   
   composer global require "fxp/composer-asset-plugin:^1.2.0"   
   composer create-project --prefer-dist yiisoft/yii2-app-basic basic
0 0
原创粉丝点击