composer

&#39 | autoload.php on line 14

Submitted by dravenk on Tue, 04/11/2017 - 16:51

挖坑:
从gitlab上pull公司的code到本地,使用docker启动了一个container将文件映射到80端口,结果报错了,
深坑: Warning: require(/var/www/html/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/autoload.php on line 14
Fatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/html/autoload.php on line 14


填坑:

composer install

centos服务器安装LNMP+composer+drush

Submitted by dravenk on Sat, 01/28/2017 - 16:03

在云服务器centos7上搭建LNMP环境;

  之前有写过一些笔记关于在一个初始化的镜像服务器上搭建LNMP环境,还包括composer、drush的安装、drupal运行环境,但都不太完整且解释说明过多,所以把内容整理了一下。只包括基本环境,不包括PHP.ini、Nginx.conf、防火墙等优化,这次直接贴命令和代码。