have you got this error while running user account ?
if yes, change directory permissions to all.
$chmod 777 -R /var/www
gives all permissions to every user.
you can give your own permissions to that folder based on your requirement.
if you use 777, every one can modify. good luck.