天天看點

The Process class relies on proc_open, which is not available on your PHP installation報錯解決

同僚laravel架構開發的代碼有如下錯誤日志

production.ERROR: The Process class relies on proc_open, which is not available on your PHP installation. {"exception":"[object] (Symfony\Component\Process\Exception\RuntimeException(

code: 0): The Process class relies on proc_open, which is not available on your PHP installation. at /XXX/vendor/symfony/process/Process.php:143)

解決:在php.ini裡将disable_functions選項的proc_open,proc_get_status函數從這裡取消。然後重新開機php-fpm即可。

未經驗證的方法及轉載别人的經驗會在部落格裡做特别說明,歡迎各位互相學習交流,發現有錯誤或疑問請留言。