Composer escapeshellarg () is disabled for security reasons

Hi, I have a server on linode.com (Centos 7). I installed cpanelcomposer on my server when I run this command (via ssh) to create an empty symfony project,

composer create-project symfony/framework-standard-edition '~2.6'

He outputs this:

Installing symfony/framework-standard-edition (v2.7.4)
  - Installing symfony/framework-standard-edition (v2.7.4)
    Downloading: 100%         



  [ErrorException]                                         
  escapeshellarg() has been disabled for security reasons  

How can i fix this?

I have little knowledge on the server, and this is my first server, if it is because of cpanelI think he will do it again and again in the future, an cpanelobstacle for me?

+4
source share
2 answers

I fixed it by editing the file php.ini.

php.ini :

php -i | grep "Loaded Configuration File"

escapesshellarg disable_functions=. disable_functions .

+5

php -n, php.ini .

escapeshellarg mod_php php-fpm.

+2

Source: https://habr.com/ru/post/1606566/


All Articles