Lamp部署laravel项目步骤以及问题
1.使用命令 lnmp vhost add 按照步骤添加即可。
2.修改/usr/local/apache/conf/vhost/域名.conf文件,把防止跨目录访问功能屏蔽
Lamp部署laravel项目步骤以及问题

3.添加完后,直接访问项目如果报错
Warning: require…/vendor/autoload.php
需要重新更新composer依赖
composer install --ignore-platform-reqs 忽略版本匹配
4.更新报错的话
先安装:yum install unzip zip -y
Lamp部署laravel项目步骤以及问题

这个是缺少了PHP的proc_get_status,proc_open函数,解决方法同样是打开php.ini文件搜索disable_functions,删除粗体部分即可disable_functions=passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_get_status,proc_open,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server中的proc_open并重启php服务。
然后使用composer就正常了,上面两个问题可以看出用composer来安装drupal8模块需开启proc_open和proc_open这两个PHP函数。

相关文章:

  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2021-07-07
  • 2021-09-04
  • 2021-06-11
  • 2021-12-01
猜你喜欢
  • 2021-06-25
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2022-02-17
相关资源
相似解决方案