环境变量

1
export PATH="$PATH:$HOME/.config/composer/vendor/bin"

报错

1
/root/.config/composer/vendor/bin/laravel: 17: /root/.config/composer/vendor/bin/laravel: /root/.config/composer/vendor/laravel/installer/laravel: Permission denied

解决方案

1
chmod 777 /root/.config/composer/vendor/laravel/installer/laravel

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

这是因为proc_open函数有风险,默认被禁用了。
解决方案
vim /usr/local/php/etc/php.ini
搜索disable_functions
删除proc_open