I’m migrating from MAMP to Vagrant and I already have a wordpress installation under my existing MAMP documentRoot, I’ve mapped my MAMP docroot to my Vagrant docroot, everything works fine, but when I try to open my wordpress installation from the browser I get:
Warning: fopen(/var/www/wordpress/wp-content/temp-write-test-1394060868): failed to open
stream: Permission denied in /var/www/wordpress/wp-admin/includes/file.php on line 905
Also tried (from vagrant) to chown -R www-data:www-data *
but it didn’t work, the owner remains as ‘vagrant’
Thanks
Fixed! It was enough setting
in the vagrantfile, then
vagrant halt
andvagrant up
to reboot the machine.