The Process class relies on proc_open, which is not available on your PHP installation.

The Process class relies on proc_open, which is not available on your PHP installation.

$ sudo updatedb

$ locate php.ini

 

$ sudo emacs /usr/local/php/etc/php.ini

 

去掉禁用的函数  proc_open

 

; This directive allows you to disable certain functions for security reasons.                                                                                
; It receives a comma-delimited list of function names.                                                                                                       
; http://php.net/disable-functions                                                                                                                            
disable_functions = passthru,exec,system,chroot,chgrp,chown,shell_exec,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_soc\
ket_server