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环境
文章评论(0)