skip to Main Content

I have an web application which successfully run since august 2020. now i want to add milon barcode package and it successfully ok in local server that’s why i need to run coposer install or update command in cpanel terminal. but there show some problem.

N.B Laravel version 5.8, composer version 2.0.6, php version 7.4.

when i try to run composer install it show error

PHP Fatal error: Uncaught ErrorException: proc_open(): unable to create pipe Too many open files in phar:///opt/cpanel/composer/bin/composer/vendor/symfony/console/Application.php:952

when try to run composer update

Failed to download phpoption/phpoption from dist: getaddrinfo() thread failed to start

when try to run composer self-update

[ComposerDownloaderFilesystemException] Filesystem exception:
Composer update failed: "/opt/cpanel/composer/bin/composer" could not be written.
rename(/opt/cpanel/composer/bin/composer): failed to open stream: Permission denied

2

Answers


  1. try using this command

    composer update --no-scripts
    
    Login or Signup to reply.
  2. You need to enable proc_open
    Please Follow the Instruction Below in cPanel

    Software > MultiPHP INI Editor > Editor Mode
    

    Select your PHP version and search for (disable_functions)

    disable_functions = "proc_open,..., ..."
    

    Now remove (proc_open) from the list and save.

    Otherwise, contact your hosting service provider to enable proc_open.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search