Skip to content

Instantly share code, notes, and snippets.

@asad01304
Created January 10, 2016 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asad01304/f38511aab617dd8e32d4 to your computer and use it in GitHub Desktop.
Save asad01304/f38511aab617dd8e32d4 to your computer and use it in GitHub Desktop.
How to change apache2 www data ( solving Symfony cache writing issue in vagrant)

#1. Open apache environment variabled

$ sudo nano /etc/apache2/envvars

#2. Change following 2 lines

export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data

with these :-

export APACHE_RUN_USER=vagrant
export APACHE_RUN_GROUP=vagrant

#3.Restart apache2

$ sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment