Contents
Why is composer update so slow?
Composer update is very slow if you have a lot of dependencies/packages implemented. You should avoid variable versions and think about using a HHVM as server.
How can I speed up my composer update?
Tighten up your project dependencies specifications As projects get older, dependencies (hopefully) get updated. You might have started the project with “laravel/framework”: “^6.1” in your composer. json file, but that was months ago, and the framework is currently at v6. 18.15 .
Why do composers take so long?
Also, disable Xdebug. Xdebug can cause Composer to take minutes even when running a command as simple as composer –version . This actually turned out to be my issue. Xdebug makes composer run ultra slow.
How do I disable xdebug in composer?
As of Xdebug 3, it is possible to disable the Xdebug completely by setting the option xdebug. mode to off , or by setting the environment variable XDEBUG_MODE=off . It is very easy to disable Xdebug just for composer, by aliasing composer . You can add the alias to your $HOME/.
How do I temporarily disable xdebug?
Disable Xdebug
- Comment out Xdebug. Go to /etc/php5/conf.d/xdebug.ini and comment out Xdebug by doing this: ; zend_extension=/usr/lib/php5/20090626/xdebug.so.
- restart apache. :~$ service apache2 restart.
- now xdebug should be disabled. Well done!
How do I remove xdebug from Ubuntu?
you may follow these steps to uninstall XDEBUG manually:
- Deactivate Webserver / Deactive PHP daemon.
- Edit your php.ini and search for “zend_extension”
- Look for the line containing zend_extension and xdebug and remove it.
- Additionally, you might use the path found in Step 3 to delete the.
Why is PHP composer so slow to download?
If you are able to find out where Composer is facing slowness, for example mine was getting stuck for 5 minutes when downloading packages. It took >5 minutes to download a 20 kB file on a 50 Mbit/s connection. This was because it was downloading the packages from packagist using HTTP and not HTTPS.
Is there an issue with composer self update?
Any help with this is greatly appreciated. Jump to [https://github.com/ /issues/4142 #issuecomment-117648869] for a solution. I have the same issue while launching a composer self-update or composer update. Thanks for your help !
Why is MySQL connection timed out on composer?
FYI, possible clue: We didn’t use composer.lock on dev branches, and only way to solve the problem was either use composer cache (but mysql is super slow on travis containers), or use composer.lock, so I assume both have a severe impact on traffic needed to go to packagist. Those files live quite temporarily so the 404 now is normal.
Why is my composer.phar download timed out?
Download failed: file_get_contents ( https://getcomposer.org/composer.phar ): failed to open stream: Connection timed out I have checked and I can download the composer.phar from the URL above but for some reason when running the installer script it fails. I am on Ubuntu 14.04 LTS with PHP 5..5.9 installed.