try to use these commands
i hope this will help u..,,

$ sudo cp sites/default/default.settings.php sites/default/settings.php

Next, give the web server write privileges to the sites/default/settings.php 
file with the command:   
$ sudo chmod o+w sites/default/settings.php

So that the files directory can be created automatically, give the web server write privileges to the sites/default directory with the command:                       
$ sudo chmod o+w sites/default