laravel框架项目部署运行报如下错误:The Process class relies on proc_open, which is not available on your PHP installation.出现问题是因为PHP默认禁用了proc_open和proc_get_status两个函数,我们去掉即可。
laravel框架项目部署运行报如下错误:
The Process class relies on proc_open, which is not available on your PHP installation.
出现问题是因为PHP默认禁用了proc_open和proc_get_status两个函数,我们去掉即可。
详细操作如下:
1、打开php.ini配置文件,搜索disable_functions ,大概在310行
disable_functions = passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server
2、将proc_open,proc_get_status函数去掉即可
disable_functions = passthru,exec,system,chroot,chgrp,chown,shell_exec,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server
3、重启PHP环境
本文标题为:解决laravel框架运行报错The Process class relies on proc_open, which is not available on your PHP installation.
- laravel实现按月或天或小时统计mysql数据的方法 2023-02-22
- PHP简单实现二维数组的矩阵转置操作示例 2022-10-02
- windows下9款一键快速搭建PHP本地运行环境的好工具(含php7.0环境) 2023-09-02
- PHP实现微信支付(jsapi支付)流程步骤详解 2022-10-09
- laravel通用化的CURD的实现 2023-03-17
- Laravel balde模板文件中判断数据为空方法 2023-08-30
- php微信公众号开发之秒杀 2022-11-23
- PHP仿tp实现mvc框架基本设计思路与实现方法分析 2022-10-18
- 用nohup命令实现PHP的多进程 2023-09-02
- PHP中PDO事务处理操作示例 2022-10-15