composer : The Process class relies on proc_open, which is not available on your PHP installation.

Locked
User avatar
Mihai Romania
Posts: 60
Joined: 2023 May 03, 14:12
Location: ROMANIA
Contact:

composer : The Process class relies on proc_open, which is not available on your PHP installation.

Post by Mihai »

Execution of composer update command, the following error is found

Code: Select all

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 20 installs, 2 updates, 0 removals
  - Installing drupal/coder (8.3.1):

Installation failed, reverting ./composer.json to its original content.


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

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
Solution
Edit file /etc/php.ini and replace the following line

Code: Select all

disable_functions = "exec,passthru,shell_exec,system,proc_open,popen,show_source"
with line

Code: Select all

disable_functions = "exec,passthru,shell_exec,system,popen,show_source"
I'm on LinkedIn
Locked