failed to install laravel dusk - laravel

Hi I use laravel 7 and I use wamp server and windows 10 as the os
I've successfully added laravel dusk to the project by using
composer require --dev laravel/dusk
then I tried to install dusk scaffolding and chrome driver by running below command
php artisan dusk:install
then I've got below results
Dusk scaffolding installed successfully.
Downloading ChromeDriver binaries...
ErrorException
file_get_contents(): php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.

The problem was I am from Iran and Iran is in suspended countries and by using the VPN this problem solved for me

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

Laravel Telescope error "The Mix manifest does not exist

I'm having trouble running telescope in an environment with apache + php 8.1 on a centos 8 server.
i would not like to install node on this machine to fix the problem, i kept the same folder name for publishing "/var/www/public"
I tried using php artisan vendor:publish --tag=telescope-assets --force but was unsuccessful.
the same project on my local machine runs normally

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

composer on the cpanel v68.0.29

Server running WHM/cPanel v68. As composer is now included globally with cpanel, I'am login SSH as a cpanel user and try to use composer, but nothing happens:
host#host [~]# composer --help
host#host [~]# composer diagnose
host#host [~]#
on another server with the same version of the Cpanel and CloudLinux, it's all right. What could be the reason? The version of php set to 7.1 with PHP Selector. Directive
allow_url_fopen On
are chosen in CPanel (as reccomended in documentation).
Unfortunately for the first time I try to use a Composer, I do not understand what it needs.
Update:
composer -V
Fatal error: Class 'Phar' not found in /opt/cpanel/composer/bin/composer on line 23
The error that you're seeing at the bottom -
Fatal error: Class 'Phar' not found in /opt/cpanel/composer/bin/composer on line 23
.. this means that the phar PHP extension is not loaded. If your cPanel is hosted on a CloudLinux environment you can see if you can enable it from
cPanel -> Select PHP Version -> Enable Extension
if not - you need to contact your hosting provider to see if they can enable it for you.

Resources