I get this message installing composer: "unable to execute file in temporary folder" Setup Aborted. Access denied.
I tried to install it by console, but the command line doesn´t recognize php like intern o extern command.
Download the executable file and run it
Related
I'm using ubuntu server & trying to run composer install command in my Laravel project. But it give error
Failed to extract brick/math: (2) '/usr/bin/unzip' -qq '/var/www/html/xtendanceweb/vendor/composer/tmp-9f6f68323bcc502e257e735e3f7dcac8' -d '/var/www/html/xtendanceweb/vendor/composer/8fe377e7'
sh: 1: Cannot fork
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
I don't know why this is happening, any help would be helpful for me
Do composer clearcache first, then try to run the command again
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
I have this weird situation: I've cloned all my repositories from github in a new local machine running Mac OsX some of them has Laravel framework installed but only some of these can execute the cmd php artisan.
I've tried to check permission on folders, uninstall/re-install composer and I've also tried to install a fresh version of Laravel. Another problem is that running the command doesn't output anything - no errors, nothing - only a new empty line of the terminal.
The only thing I know is that if I clone one of the repositories, then run composer install it throws Script php artisan optimize handling the post-install-cmd event returned with error code 255.
Thanks
Update 1:
I've found running composer install -vvv -o that composer throw this error
Warning: require(/Users/USERNAME/laravel/bootstrap/autoload.php): failed to open stream: No such file or directory in /Users/USERNAME/laravel/artisan on line 16
Fatal error: require(): Failed opening required '/Users/USERNAME/laravel/bootstrap/autoload.php' (include_path='.:') in /Users/USERNAME/laravel/artisan on line 16
Update 2:
It seems that cmd git clone didn't copy that autoload file bootstrap/autoload.php for some reason that I don't understand at all.
I've imported the file manually from github and run, removed the vendor folder then run again composer install --no-scripts but still having the problem with artisan and if I run composer update it throw Script php artisan optimize handling the post-update-cmd event returned with error code 255
I had to re-install laravel and copy files manually to make it works again.
I have pushed my local app to openshift and now get the following error message
PHP Fatal error: Class 'Illuminate\Html\HtmlServiceProvider' not found in /var/lib/openshift/5728b9782d5271802600015c/app-root/runtime/repo/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 150
How do I fix this on Openshift?
The solution locally would be to run composer update but how do I run that command on Openshift? I know there is rhc command line tool but is it possible to do a composer update with rhc?
You should check for the files first. You may have corrupted/missing files during upload. If you do not have vendor directory, you shoudl run composer update.
If files are there, run composer dumpauto on the server.
You can connect to you server with SSH and run these commands from terminal.
If you do not have access to SSH, you could try to run there commands using small PHP script with shell_exec('composer update'); clause in it, or just upload all vendor files manually.
I got ssh access and did the commands necessary to correct the problems
When I use php artisan migrate:rollback with Laravel 5, I get this error:
Warning: PHP Startup: Unable to load dynamic library
'/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so' -
/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so:
cannot open shared object file: No such file or directory in Unknown
on line 0
Warning: PHP Startup: Unable to load dynamic library
'/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll'
- /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll:
cannot open shared object file: No such file or directory in Unknown
on line 0
Application In Production! *
Do you really wish to run this command? [y/N]
You are getting that error because those libraries are not in: /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/
First, check if those files exist on your server and change to the right path.
Second, if they are not in your server, you need to install them.
I am not sure which OS you are using, but this is how you do it in Ubuntu / Mint
sudo apt-get install php5-mcrypt
sudo apt-get install openssl
Usually XAMPP contains this library. It might be a bad installation, path change or file manipulation issue as well. In these cases, try to reinstall it.
in my case, I've tried to run my shell command prompt in my xampp control, It works like magic, just go to xampp control, click the shell button, and type the directories where your file is located, type php artisan serve Hope this help.