Setting Custom PHP Values in Varying Vagrant Vagrants

For a customer project we’re using the SocialV BuddyPress Theme which requires some increases to stock PHP settings in vvv. I was unable to find specific documentation for this but luckily vvv uses FPM and CGI to handle PHP which means you can use a .user.ini file to set your proper values.

Find ~/vvv/www/yoursite/public_html and inside that place .user.ini. Inside .user.ini you can set your new values like this.

max_execution_time = 300
max_input_vars = 3000
max_input_time = 200
memory_limit = 512M

Then type vagrant reload --provision to restart vvv and get your new values recognised.

Leave a Reply

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