Sample Header Ad - 728x90

Is AWS AMI 'apache' equivalent to Ubuntu 'www-data'?

0 votes
1 answer
2847 views
I'm trying to convert a Chef script that's used in AWS OpsWorks for an Ubuntu system to a script I can use with my AWS OpsWorks setup for my Amazon Linux AMI installation. Their Ubuntu Setup: -
chown -R www-data:www-data /var/www
My Linux Setup: -
usermod -a -G www apache
-
chown -R apache /var/www
-
chgrp -R www /var/www
Their chef Script is as follows:
"/srv/www/wordpress/current/wp-config.php" do
  source "wp-config.php"
  mode '0755'
  action :create
  owner 'deploy'
  group 'www-data'
end
Do I just need to change their
'www-data'
user to my
'apache'
user to get this script to work with my setup?
Asked by Corey (127 rep)
Feb 12, 2016, 03:50 PM
Last activity: Jun 26, 2016, 12:57 PM