Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues Uploading Files? #62

Open
danjng opened this issue Dec 19, 2014 · 1 comment
Open

Issues Uploading Files? #62

danjng opened this issue Dec 19, 2014 · 1 comment

Comments

@danjng
Copy link

danjng commented Dec 19, 2014

Hi All,

I've been using Puppet for a little while now and came across this which (I believe) seems to be related to this module. Maybe it's just the way I've set things up, so perhaps someone can point out some areas for improvement. I've put together a quick little class that looks like the following:
class my_wp {
package { 'php':
ensure => latest,
}
class { 'wordpress':
install_dir => '/var/www/html/wordpress',
require => [ Package['php'], Class['::mysql::server'] ],
}

include mysql::server
class { '::mysql::bindings':
php_enable => true,
}

class { 'apache':
mpm_module => 'prefork',
}
include apache::mod::php
apache::vhost { 'localhost':
port => '80',
docroot => '/var/www/html/wordpress',
}
}

Now, the instance seems to come up just fine. I'm able to create the administrator account, etc. I'm even able to post. HOWEVER, when I get to the part where I need to add a picture or attachment, i get the following error:
screen shot 2014-12-18 at 20 36 03

I get that it may be due to the default root user installation method, but should this be resolved in this module? Or am I doing something wrong?

@atxulo
Copy link

atxulo commented Jan 29, 2015

The apache module uses apache / www-data / www user (depends on the OS) to run apache by default.

The wordpress module uses root to install wordpress by default.

Try to pass wp_owner / wp_group params to wordpress module so the user is the same in both, i.e.:

class { 'wordpress':
  install_dir => '/var/www/html/wordpress',
  require => [ Package['php'], Class['::mysql::server'] ],
  wp_owner => 'apache',
  wp_group => 'apache',
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants