On 26/03/2010 01:14, Jinserk Baik wrote: > Package: redmine > Version: 0.9.3-1 > > I have tried to install redmine with debian package and its dependencies, > I just add the following redmine site in /etc/apache2/site-available > > Listen 8080 > <VirtualHost *:8080> > RailsEnv production > RailsBaseURI / > SetEnv X_DEBIAN_SITEID default > > DocumentRoot /usr/share/redmine/public > ServerSignature off > > <Directory "/usr/share/redmine/public"> > AllowOverride None > Order allow,deny > Allow from all > </Directory> > > ErrorLog /var/log/apache2/redmine-error.log > CustomLog /var/log/apache2/redmine-access.log combined > </VirtualHost> > > and a2ensite redmine > > then I can see the passenger running page on IP:8080 but got an error like: > > Error message:Permission denied - /etc/redmine/default/session.yml > Exception class:Errno::EACCES > Application root: /usr/share/redmine > Backtrace: > # File Line Location > 0 /usr/lib/ruby/1.8/yaml.rb 143 in `initialize' > 1 /usr/lib/ruby/1.8/yaml.rb 143 in `open' > 2 /usr/lib/ruby/1.8/yaml.rb 143 in `load_file' > 3 /usr/share/redmine/config/environment.rb 27 > 4 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `gem_original_require' > 5 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in `require' > ..... blah blah > > It seems that the original permission of /etc/redmine/default/*.yml is > root:www-data, and 640, so the apache2 blocks the access of these files. > > How can I fix it? > >
Have a look at this apache2 passenger directive : PassengerDefaultUser www-data Right now passenger is run as nobody by default, for me it's like a bug.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Pkg-ruby-extras-maintainers mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-ruby-extras-maintainers
