warning: unlink(css/style.css) [function.unlink]: Permission denied in /var/www/vhosts/weecounty.co.uk/httpdocs/includes/file.inc on line 435.

I have just installed drupal 6.x on apache, everything seems to have gone OK except I am getting the above error and I am showing no styling.

Comments

srodriguez’s picture

I am also running into this problem.

I just did a fresh install of Drupal 6 myself. I went to the modules page after my install was completed successfully. When I enable modules or even without enabling new modules I hit submit and I get the following errors. I removed my sitename. I have all the includes folder and all files in that folder owned and grouped to Apache. Line 435 seems to be about

* warning: unlink(css/style.css) [function.unlink]: Permission denied in /var/www/vhosts/*sitename*/httpdocs/includes/file.inc on line 435.
* warning: unlink(css/winxp.blue.css) [function.unlink]: Permission denied in /var/www/vhosts/*sitename*/httpdocs/includes/file.inc on line 435.
* warning: unlink(css/tabs.css) [function.unlink]: Permission denied in /var/www/vhosts/*sitename*/httpdocs/includes/file.inc on line 435.

function file_delete($path) {
if (is_file($path)) {
return unlink($path);
}
}

what would cause this issue. Is there any other permissions that need to be configured.

Thank you

srodriguez’s picture

As soon as I write this long thing out I figure out the issue right after hitting submit.

Chgrp and Chown the CSS directory and all files to apache and the errors will go away.

AprilFloyd’s picture

Thanks for the reply. I have changed the owners as you suggest, but if I understand this correctly then I will not be able to modify the themes myself and FTP them. Is this because you have to update the theme from the front end.

Anyway everything seems to be working except for the 'Garland Template' which has not styling.

srodriguez’s picture

I only changed the permissions for the CSS folder and files in the main folder, none of the theme folders and that got rid of all the issues.

Stomper’s picture

What permissions specifically? Like "755" to "777"?