-bash:/usr/local/bin/php:操作不允许

-bash:/usr/local/bin/php:操作不允许

为什么我无法执行任何需要 php 的命令。例如

[root@server ~]# composer -V
"/usr/bin/env: php: Operation not permitted"

这是安装 Composer 的位置的权限:

drwxr-xr-x. 2 root root 220 Dec 5 03:39 .
drwxr-xr-x. 22 root root 267 Dec 3 05:15 ..
-rwxr-xr-x 1 root root 2200574 Dec 5 03:39 composer
-rwxr-xr-x 1 root root 49732288 Dec 3 05:14 lsphp
-rwxr-xr-x 1 root root 817 Nov 27 23:56 pear
-rwxr-xr-x 1 root root 838 Nov 27 23:56 peardev
-rwxr-xr-x 1 root root 751 Nov 27 23:56 pecl
lrwxrwxrwx 1 root root 9 Dec 3 05:15 phar -> phar.phar
-rwxr-xr-x 1 root root 14817 Dec 3 05:15 phar.phar
-rwxr-xr-x 1 root root 49826928 Dec 3 05:14 php
-rwxr-xr-x 1 root root 49668664 Dec 3 05:14 php-cgi
-rwxr-xr-x 1 root root 3574 Dec 3 05:15 php-config
-rwxr-xr-x 1 root root 50757280 Dec 3 05:14 phpdbg
-rwxr-xr-x 1 root root 4563 Dec 3 05:15 phpize
-rwxr-xr-x 1 root root 24336 Dec 3 05:11 zipcmp
-rwxr-xr-x 1 root root 18824 Dec 3 05:11 zipmerge
-rwxr-xr-x 1 root root 34880 Dec 3 05:11 ziptool

相关内容