proc_open error when try to run artisan dump-autoload

喜夏-厌秋 提交于 2019-12-24 03:00:32

问题


When I try to run php artisan dump-autoload, I got this error:

 root@server:/var/mysite# php artisan dump-autoload
 Generating optimized class loader

   [Symfony\Component\Process\Exception\RuntimeException]
   The Process class relies on proc_open, which is not available on your PHP installation.

 dump-autoload

 root@server:/var/mysite#

I'm on Ubuntu 12.10 x64 on DigitalOcean.

any idea?


回答1:


It seems that the proc_open is disabled in your php.ini. Usually for security reason.

To be sure search the disable_functions directive in your php.ini and find out if proc_open is in that list. Or try with function_exists('proc_open'), this should return FALSE

Possible duplicate: laravel4 composer install got proc_open not available error



来源:https://stackoverflow.com/questions/22671920/proc-open-error-when-try-to-run-artisan-dump-autoload

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!