Symfony and the occasional need to rebuild the “Bootstrap Cache”

If your server crashed or old files were restored by accident, or some files got corrupt (you know how that can sometimes happen), your website might experience some glitches, or worse, the dreaded “Server 500 Error”. If you are running Symfony and experiencing errors that are not typical, you might need to rebuild the bootstrap.cache.php file. From the command line, go to your Symfony root folder and paste this command into the CLI:

php ./vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php

Another issue is to comment out any of your ‘%kernal_debug%’ lines, or set to default and “%kernel_debug%’ settings in your production config.yml settings if you are operating in a production environment and restricted debugging on it.

About Author:

Senior Cloud Software Engineer and 25+ years experienced video production, video editing and 3D animation services for a variety of global clients including local video production here in Jacksonville, Florida.

Leave a Comment

Your email address will not be published. Required fields are marked *