Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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