Logo
  • PHP
    • HipHop / HHVM
    • Modern PHP
    • PHPStorm
    • LAMP
    • Laravel
    • Composer
    • PDO
  • JavaScript
    • node.js
    • AngularJS
  • CSS
    • SASS
    • “CSS4” (CSS level 4)
  • HTML
  • Git
  • LAMP
  • Vagrant
  • UI / UX
  • Architecture of …
  • Off-Topic
With ♥ from Berlin
January 7, 2014
Chris
Composer, Linux, Local Development, Vagrant, Virtual Machine / VM
1

(Links) How to fix an extremely slow Symfony inside a Vagrant box

PreviousNext

When you work with Vagrant (if not – try it!) on a Windows or Mac machine (which is an excellent way to professionaly develop linux-hosted web application while still being in Windows or Mac OS) than you might have already experienced this annoying thing:

The real-time sync between your local files and the Vagrant box is painfully slow, Composer is extremely slow and in general the application runs FUCKING SLOW. That kind of “something is really broken”-slow. Erika Heidi and Benjamin Eberlei have looked deep into the topic, and found some excellent solutions. It seems like the basic problem is that Linux and Windows/Mac are using different file systems (ext3/4 vs NFS) that cause massive problems on large-file projects. The linked articles also provide links to a Symfony-optimized Vagrant (sand)box and some interesting user-comments that might fix your problem.

Erika Heidi – Optimizing Symfony applications on Vagrant boxes

Benjamin Eberlei – Speedup Symfony2 on Vagrant boxes

 

This article was written quite a while ago (9 years), please keep this in mind when using the information written here. Links, code and commands might be outdated or broken.

Random articles

  • A super-simple Vagrant LAMP stack bootstrap (installable with one command)A super-simple Vagrant LAMP stack bootstrap (installable with one command)
  • Symfony devs: Creator of Symfony framework is hiring (Cologne, Germany)!Symfony devs: Creator of Symfony framework is hiring (Cologne, Germany)!
  • Laracon 2013 – Jordi Boggiano: In Depth Composer (47min video)Laracon 2013 – Jordi Boggiano: In Depth Composer (47min video)
  • A super-simple pre-configured Vagrant box with HipHop, Hack and Hack code examplesA super-simple pre-configured Vagrant box with HipHop, Hack and Hack code examples
  • A quick guideline on how to fix the Hearthbleed bug (and update OpenSSL) on UbuntuA quick guideline on how to fix the Hearthbleed bug (and update OpenSSL) on Ubuntu
  • The SSL Heartbleed bug explained in 30 secondsThe SSL Heartbleed bug explained in 30 seconds
  • The difference between “composer install” and “composer update” – nailed on the headThe difference between “composer install” and “composer update” – nailed on the head
  • [Link] How to require versions of PHP, HHVM / HipHop, GD, curl, openssl etc. with Composer[Link] How to require versions of PHP, HHVM / HipHop, GD, curl, openssl etc. with Composer
  • [Link] How to set up HipHop, Nginx and Laravel in Ubuntu 12.04 LTS (in a Vagrant box)[Link] How to set up HipHop, Nginx and Laravel in Ubuntu 12.04 LTS (in a Vagrant box)
bugcomposerslowsymfonyvagrant
Share this

1 Comment

  • Oliver Russell
    July 18, 2018 2:16 pm

    How can you install Symfony 4 inside a vagrant box? Is the method same like installing composer and then using the composer command to install it? Is that is the case, then it will be really easy to use Symfony 4 inside vagrant.

    Reply

Leave A Comment Cancel reply

increase-your-pagespeed-score

Increase your PageSpeed score (10min video with Matt Gaunt)

Compact and clever information for dramatic speed increases. Definitly worth watching. This article was written quite a while ago (9

phpstorm 7.0 php

How to setup and use XDEBUG with PHPStorm 6/7 (locally in Windows 7/8 and Mac OS X)

Real debugging is probably one of the most coolest things that are possible in software development: Remember the times where

gamescom 2014 trailers

GAMESCOM 2014: Awesome Next-Gen ingame graphics

Currently Germany’s biggest conference of the gaming industry is running, and everyday awesome stuff reaches the public. Excellent in-game sequences

composer

A short & simple Composer tutorial

In this little Composer tutorial we’ll walk through the absolute basics of Composer, the PHP dependency management tool. Composer has

the-php-login-project

How to install php-login-minimal on Ubuntu 12.04 LTS

In this article I’ll show you how to install the minimal version of the php-login.net‘s login script (see the GitHub

php

12 tools for better PHP quality

Nice selection of 12 tools every PHP developer should bookmark. I totally love how the PHP community becomes some kind

css

How to center a div vertically and horizontally (modern methods, without fixed size!)

“How to center a div” (inside another div or inside the body itself) is one of the most discussed questions

Install MINI in 30 seconds inside Ubuntu 14.04 LTS

This is a guideline on how to install MINI – an extremely simple naked PHP application – more or less

phpstorm-github-code-color-syntax-theme

Get Github’s code colors in PHPStorm (2014 style)

I really love the colors on GitHub’s code previews but couldn’t find any themes that copy that in a beautiful

phpstorm-8

Ignore .idea folder from git in PHPStorm

By default (?) PHPStorm will create a hidden folder named .idea directly within your project, containing user-specific stuff like chosen

1/4

Categories

Search

java
Interesting: code of the same application in PHP, Python, Ruby, Closure, node.js, Java and Go
vagrant
Generate Vagrant boxes with Laravel, HipHop, Nginx, WordPress, MySQL, MariaDB, MongoDB, RabbitMQ etc. with one click
goodbye-lamp-going-hhvm-nosql-nginx-php
[RePost] Goodbye LAMP: Going Nginx, NoSQL, HHVM (41min conference talk with Arne Blankerts)
hack-php
Wow! Facebook devs have rewritten and fixed PHP, releasing it as new language called “Hack” today
css4
Angelina Fabbro talks about “CSS4” in this excellent conference video
[Link] Redesigning SoundCloud by Evan Simoni
mod-rewrite-ubuntu-14-04-lts
How to enable mod_rewrite in Ubuntu 12.04 LTS
php
How to prevent PHP sessions being shared between different apache vhosts / different applications
php
Test out PHP 5.6alpha1 on Windows 7 / 8 with two clicks
set up a local virtual machine for development with vagrant and puphpet / puppet (and ubuntu, linux, php, apache, mysql)
A list of downloadable Vagrant boxes (CentOS 5.9 / 6.4, Ubuntu 12 / 13, Debian 6 / 7 / 7.1 / 7.2)
photoshop-cc-deal
Adobe offers Photoshop for $9.99 per month (limited deal)
set up a local virtual machine for development with vagrant and puphpet / puppet (and ubuntu, linux, php, apache, mysql)
A super-simple pre-configured Vagrant box with HipHop, Hack and Hack code examples
Adobe releases Firebug-like developer tools to edit and extract PSDs
php uk conference
Slides & talks from PHP UK Conference 2014
Joshua Davis – my hero of Flash – in two excellent interviews (audio, video)

Tags

apache bash centos composer conference coupon CSS debian fonts framework git GitHub hack HHVM HipHop HTML HTML5 IDE JavaScript JS LAMP laravel linux mod_rewrite MVC MySQL Nginx optimization PHP PHP 5.5 PHP 5.6 phpmyadmin PHPStorm security server SSD Ubuntu UI UX vagrant video virtual machine voucher VPS wordpress
Side-Project: Wordle-Solver:
www.wordle-helper.info

Pages

  • Privacy Policy
 
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT