1、安装phpstudy
按照phpstudy官网的步骤即可。
2、另外安装php70w(使用该php去安装composer)
yum -y groupinstall "Development Tools"
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
yum -y install php70w
yum -y --enablerepo=epel install php70w-mbstring php70w-pdo php70w-mysql php70w-fpm php70w-common php70w-xml php70w-gd*
3、安装composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
镜像:composer config -g repo.packagist composer https://packagist.phpcomposer.com
4、使用composer安装laravel框架
①按照官网安装(版本:5.2)
②执行:composer update --ignore-platform-reqs(生成 vendor 文件夹)
③设置项目文件夹权限:chmod 777 xxx
ps:laravel不能访问需要生成key