I am running magento in dedicated server.CMS running with root:root as user and group.If magento downloads any extensions it is saving with www-data:www-data ownership.I want to know how can i set root:root for downloading files

or

How to set all files with www-data:www-data and make the files executable?

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

CMS running with root:root as user and group

Don't do that.

How to set all files with www-data:www-data and make the files executable?

chown -R www-data:www-data /path/to/your/magento

and make the Apache running as www-data user.

link|improve this answer
I m getting chmod: invalid mode: `www-data:www-data' message.Is it chmod or chown? – blakcaps Aug 22 '11 at 11:03
Sorry, it should be chown. – quanta Aug 22 '11 at 11:06
Thanks.How to make apache run as www-data user? – blakcaps Aug 22 '11 at 11:12
Open the Apache configuration file - httpd.conf, and change User, Group to www-data. Don't forget to restart. – quanta Aug 22 '11 at 11:14
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.