Getting extension missing error on compose install - laravel-5

Getting error while running composer install on a Laravel App
The requested PHP extension ext-sysvsem * is missing
from your system. Install or enable PHP's sysvsem extension.

Related

Server not loading Laravel app after a composer install

After a deploy which required an composer install, the app is no longer working at all, and I get this error in nginx error log:
PHP Fatal error: Uncaught RuntimeException: A facade root has not been set. in vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:335
I use Laravel 9 with php8.1.
I tried to delete the vendor and reinstall composer, clearing cache, optimize.
Thanks.

laravel dusk:install file_get_contents(): SSL operation failed

Trying to install dusk on Laravel like this:
php7.4 artisan dusk:install
I get this error:
Dusk scaffolding installed successfully.
Downloading ChromeDriver binaries...
ErrorException
file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Try this:
php artisan dusk:install --ssl-no-verify
There appears to be an issue related to running this version of PHP on Windows. Upgrading all of PHP's files to v7.4.6 or newer resolves the issue. Specifically, the problem lies with the file libssl-1_1-x64.dll in the base PHP directory. Simply replacing only this file with the updated version will resolve the errors.
Source: https://github.com/laravel/dusk/issues/786

Composer update or install issue

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
[Composer\Downloader\FilesystemException]
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
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.
try using this command
composer update --no-scripts

Laravel Installation On Windows by using Composer

I am trying to setup Laravel using Composer through my command prompt but I am getting some errors.
I have already installed Composer and Xampp(php/mysql/apache) but I am still unable to install it. I have followed the exact instructions provide by the Laravel and followed other resources but I am still getting error.

Laravel upgrade to 4.2 - mcrypt extension required

I have problems when trying to update laravel 4.1 to 4.2.
I started that project on ubuntu, then got a new macbook pro and it looks like I'm missing something.
I'm using XAMPP 1.8.3
When I
composer update
I get the following error
Mcrypt PHP extension required.
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
After few googling, found homebrew, then it's easy
brew install mcrypt
but I get the following warning
Warning: mcrypt-2.6.8 already installed
Any ideas?
Assuming your macbook pro is running Mavericks, the problem is most likely in your $PATH variable. The php command defaults to the built in php that ships with your mac. You can verify this by entering in terminal echo $PATH;
If it points to /usr/bin:/bin/usr/bin:/usr/local/bin then the problem is here because the native mac php does not include mcrypt. Add your XAMP PHP to your paths variable should solve the problem,
export PATH=$PATH:\path\to\xamp\bin\php5.ver\bin

Resources