问题
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