Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Ubuntu 16.04 & OP8

Ubuntu 16.04 & OP8

Added by Victor Bourgade over 6 years ago

Hello,

I'm trying to get an installation working of OpenProject 8 and as a other people I get an 403 access denied error when visiting my openproject path.

I want openproject to be accessible from support.my-domain.com and configured apache to do so :

  DocumentRoot /opt/openproject/public
   <Directory /opt/openproject/public>
        AllowOverride All
        SSLRequireSSL
        Options +Includes -Indexes +ExecCGI -MultiViews
        php_admin_value open_basedir /home/admin/web/support.my-domain.com/public_html:/home/admin/tmp:tmp
        php_admin_value upload_tmp_dir /home/admin/tmp
        php_admin_value session.save_path /home/admin/tmp
        Require all granted
    </Directory>



From the log I get this error :

AH01276: Cannot serve directory /opt/openproject/public/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive

I don't think the issue comes from my apache configuration but most probably from openproject. So I have investigated and the server do run. But it seems one of the ruby viriable is not well configured :

ADMIN_EMAIL=contact@my-domain.com
APP_GROUP=openproject
APP_HOME=/opt/openproject
APP_NAME=openproject
APP_RUNNER_CLI=systemctl
APP_RUNNER_TYPE=systemd
APP_SAFE_NAME=openproject
APP_USER=openproject
APP_WIZARDS=legacy-installer,mysql,apache2,repositories,smtp,memcached,openproject
ATTACHMENTS_STORAGE_PATH=/var/db/openproject/files
DATABASE_URL=mysql2://username:Password@127.0.0.1:port/Database_name
EMAIL_DELIVERY_METHOD=smtp
GEM_PATH=/opt/openproject/vendor/bundle/ruby/2.5.0:
*****HOME=/home/openproject*******
HOST=127.0.0.1
LANG=en_US.UTF-8
MEMCACHED_SERVERS=tcp://127.0.0.1:11211
MEMORY_AVAILABLE=512
NODE_ENV=production
NODE_HOME=/opt/openproject/.heroku/node
OLDPWD=/
ORIGINAL_PWD=/opt/openproject
PATH=/opt/openproject/bin:/opt/openproject/vendor/bundle/bin:/opt/openproject/vendor/bundle/ruby/2.5.0/bin:/opt/openproject/.heroku/node/bin:/opt/openproject/.heroku/yarn/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.:/usr/sbin:/opt/openproject/bin:/opt/openproject/node_modules/.bin
PORT=6000
PWD=/opt/openproject
RACK_ENV=production
RAILS_CACHE_STORE=memcache
RAILS_ENV=production
RAILS_LOG_TO_STDOUT=enabled
RAILS_SERVE_STATIC_FILES=enabled
ROOT_PATH=/
SECRET_KEY_BASE=<removed>
SECRET_TOKEN=<removed>
SHLVL=0
SMTP_AUTHENTICATION=login
SMTP_DOMAIN=my-domain.com
SMTP_HOST=my-domain.com
SMTP_PASSWORD=<removed>
SMTP_PORT=587
SMTP_URL= <removed>
SMTP_USERNAME=contact@my-domain.com
WEB_CONCURRENCY=1
WEB_MEMORY=512
WEB_TIMEOUT=300

It seems GEM HOME path is still under /home/openproject. It might be where my issue is comming from ? How do I change it ? I dig a bit in ruby folder but I'm really no aware of ruby ...

Thanks in advance for help.


Replies (1)

RE: Ubuntu 16.04 & OP8 - Added by Oliver Günther over 6 years ago

Your apache configuration tries to configure an Apache PHP/CGI configuration for a ruby project. That will not work. Please follow our installation guides: https://www.openproject.org/download-and-installation/

If you're unsure on how to configure Apache properly, I suggest you use our packaged installation which will integrate Apache automatically automatically (however, it will assume no other service is running on it when configuring automatically).

  • (1 - 1/1)
Loading...