Project

General

Profile

Permission denied (Errno::EACCES)

Added by Luke Schwalker over 11 years ago

Hi, just today I tried to install the new version of the redmine (2.3.1) on the apache and on the debian

I installed everything which is needed:
ruby 1.9.3
rails 3.2.13
rubygems 1.8

The tutorial which I used is on the:
http://www.cynapse.com/community/home/cyn.in-developers/install-redmine-on-debian

Everything went fine, just changed paths to the files and didnt get too many errors :). Now when i try to visit site to see if it works i get this error:

Permission denied - /var/www/.passenger (Errno::EACCES)
/usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir'
/usr/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
/usr/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p'
/usr/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'
/usr/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'
/usr/lib/ruby/1.8/fileutils.rb:201:in `each'
/usr/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p'
/usr/local/lib/passenger/lib/phusion_passenger/native_support.rb:145:in `mkdir'
/usr/local/lib/passenger/lib/phusion_passenger/native_support.rb:162:in `compile'
/usr/local/lib/passenger/lib/phusion_passenger/native_support.rb:127:in `each_with_index'
/usr/local/lib/passenger/lib/phusion_passenger/native_support.rb:160:in `each'
/usr/local/lib/passenger/lib/phusion_passenger/native_support.rb:160:in `each_with_index'
/usr/local/lib/passenger/lib/phusion_passenger/native_support.rb:160:in `compile'
/usr/local/lib/passenger/lib/phusion_passenger/native_support.rb:138:in `compile_and_load'
/usr/local/lib/passenger/lib/phusion_passenger/native_support.rb:37:in `start'
/usr/local/lib/passenger/lib/phusion_passenger/native_support.rb:205
/usr/local/lib/passenger/helper-scripts/rack-preloader.rb:48:in `require'
/usr/local/lib/passenger/helper-scripts/rack-preloader.rb:48:in `init_passenger'
/usr/local/lib/passenger/helper-scripts/rack-preloader.rb:126

Application root
/usr/local/lib/redmine-2.3.1
Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV and PASSENGER_ENV)
production
Ruby interpreter command
/usr/bin/ruby1.8
User and groups
uid=33(www-data) gid=33(www-data) groups=33(www-data)
Environment variables
APACHE_PID_FILE=/var/run/apache2.pid
SHELL=/bin/sh
APACHE_RUN_USER=www-data
PASSENGER_DEBUG_DIR=/tmp/passenger.spawn-debug.9384-29886800
USER=www-data
APACHE_LOG_DIR=/var/log/apache2
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=/usr/local/lib/redmine-2.3.1
APACHE_RUN_GROUP=www-data
LANG=C
SHLVL=0
HOME=/var/www
LOGNAME=www-data
APACHE_LOCK_DIR=/var/lock/apache2
APACHE_RUN_DIR=/var/run/apache2
IN_PASSENGER=1
PYTHONUNBUFFERED=1
RAILS_ENV=production
RACK_ENV=production
WSGI_ENV=production
PASSENGER_ENV=production
REQUEST_METHOD=GET
SERVER_PORT=80
SERVER_ADDR=192.168.3.29
QUERY_STRING=
SERVER_PROTOCOL=HTTP/1.1
REMOTE_PORT=46465
REMOTE_ADDR=192.168.2.23
REQUEST_URI=/
SERVER_SOFTWARE=Apache/2.2.16 (Debian)
DOCUMENT_ROOT=/usr/local/lib/redmine-2.3.1/public
SERVER_NAME=192.168.3.29
SERVER_ADMIN=[no address given]
Ulimits
Unknown
System memory usage
total used free shared buffers cached
Mem: 995 635 360 0 87 421
-/+ buffers/cache: 126 869
Swap: 1417 1 1416

Anybody got any idea? I would really appreciate

Greetings


Replies (2)

RE: Permission denied (Errno::EACCES) - Added by Sandeep Soni over 11 years ago

Hey did you get any update ?

RE: Permission denied (Errno::EACCES) - Added by Marco Descher over 11 years ago

same problem here ... it works when started with ruby script/rails server webrick -e production though ...

    (1-2/2)