Aktuelle Version |
Dein Text |
Zeile 39: |
Zeile 39: |
|
| |
|
| == Installation == | | == Installation == |
| : <code>pkg install -y redmine</code>
| |
| <pre></pre>
| |
| <pre>
| |
| Message from ruby-2.2.4,1:
| |
| ====
| |
| Some of the standard commands are provided as separate ports for ease
| |
| of upgrading:
| |
|
| |
| devel/ruby-gems: gem - RubyGems package manager
| |
| devel/rubygem-rake: rake - Ruby Make
| |
|
| |
| And some of the standard libraries are provided as separate ports
| |
| since they require extra dependencies:
| |
|
| |
| databases/ruby-gdbm: GDBM module
| |
|
| |
| Install them as occasion demands.
| |
| ====
| |
| </pre>
| |
| <pre>
| |
| Message from gcc-4.8.5_2:
| |
| To ensure binaries built with this toolchain find appropriate versions
| |
| of the necessary run-time libraries, you may want to link using
| |
|
| |
| -Wl,-rpath=/usr/local/lib/gcc48
| |
|
| |
| For ports leveraging USE_GCC, USES=compiler, or USES=fortran this happens
| |
| transparently.
| |
| Message from trousers-tddl-0.3.10_7:
| |
| To run tcsd automatically, add the following line to /etc/rc.conf
| |
|
| |
| tcsd_enable="YES"
| |
|
| |
| You might want to edit /usr/local/etc/tcsd.conf to reflect your setup.
| |
|
| |
| To use TPM, add your_account to '_tss' group like following:
| |
|
| |
| # pw groupadd _tss -m your_account
| |
| Message from dejavu-2.35:
| |
| Make sure that the freetype module is loaded. If it is not, add the following
| |
| line to the "Modules" section of your X Windows configuration file:
| |
|
| |
| Load "freetype"
| |
|
| |
| Add the following line to the "Files" section of X Windows configuration file:
| |
|
| |
| FontPath "/usr/local/share/fonts/dejavu/"
| |
|
| |
| Note: your X Windows configuration file is typically /etc/X11/XF86Config
| |
| if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org.
| |
| </pre>
| |
| <pre>
| |
| Message from node-5.9.1:
| |
| Note: If you need npm (Node Package Manager), please install www/npm.
| |
| Message from ghostscript9-agpl-base-9.16_5:
| |
| Note: in order to use the script "dvipdf", dvips must be installed.
| |
| This program is provided by another package print/tex-dvipsk.
| |
|
| |
| FAPIfontmap and FAPIcidfmap in /usr/local/share/ghostscript/9.16/Resource/Init
| |
| have to be configured if you want to use FAPI feature.
| |
| </pre>
| |
| <pre>
| |
| Message from liblqr-1-0.4.1_8:
| |
| ==========================================================================
| |
| NOTE: In order to compile examples for liblqr, you will
| |
| also need pngwriter port (/usr/ports/graphics/pngwriter).
| |
| Examples are located in /usr/local/share/examples/liblqr-1
| |
| ==========================================================================
| |
| </pre>
| |
| <pre>
| |
| Message from mysql56-client-5.6.27:
| |
| * * * * * * * * * * * * * * * * * * * * * * * *
| |
|
| |
| Please be aware the database client is vulnerable
| |
| to CVE-2015-3152 - SSL Downgrade aka "BACKRONYM".
| |
| You may find more information at the following URL:
| |
|
| |
| http://www.vuxml.org/freebsd/36bd352d-299b-11e5-86ff-14dae9d210b8.html
| |
|
| |
| Although this database client is not listed as
| |
| "affected", it is vulnerable and will not be
| |
| receiving a patch. Please take note of this when
| |
| deploying this software.
| |
|
| |
| * * * * * * * * * * * * * * * * * * * * * * * *
| |
| </pre>
| |
| <pre>
| |
| Message from redmine-2.6.9_2:
| |
| =============================================================================
| |
|
| |
| Redmine was installed.
| |
|
| |
| You now need to setup your Redmine installation so
| |
| please have a look at the Installation Guide.
| |
|
| |
| http://www.redmine.org/wiki/redmine/RedmineInstall
| |
|
| |
|
| |
| If you are upgrading please read the Upgrading Guide
| |
| before starting the new version.
| |
|
| |
| http://www.redmine.org/wiki/redmine/RedmineUpgrade
| |
|
| |
| =============================================================================
| |
| </pre>
| |
| : <code>pkg install -y mysql56-server</code>
| |
| <pre></pre>
| |
| <pre>
| |
| Message from mysql56-server-5.6.27:
| |
| ************************************************************************
| |
|
| |
| Remember to run mysql_upgrade the first time you start the MySQL server
| |
| after an upgrade from an earlier version.
| |
|
| |
| ************************************************************************
| |
| </pre>
| |
|
| |
| [[Diskussion:Server/Redmine#rake 10 vs rake 11]]
| |
| : <code>pkg install -y rubygem-passenger</code>
| |
| <pre></pre>
| |
| <pre>
| |
| Message from apache24-2.4.18:
| |
| To run apache www server from startup, add apache24_enable="yes"
| |
| in your /etc/rc.conf. Extra options can be found in startup script.
| |
|
| |
| Your hostname must be resolvable using at least 1 mechanism in
| |
| /etc/nsswitch.conf typically DNS or /etc/hosts or apache might
| |
| have issues starting depending on the modules you are using.
| |
|
| |
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
| |
|
| |
| - apache24 default build changed from static MPM to modular MPM
| |
| - more modules are now enabled per default in the port
| |
| - icons and error pages moved from WWWDIR to DATADIR
| |
|
| |
| If build with modular MPM and no MPM is activated in
| |
| httpd.conf, then mpm_prefork will be activated as default
| |
| MPM in etc/apache24/modules.d to keep compatibility with
| |
| existing php/perl/python modules!
| |
|
| |
| Please compare the existing httpd.conf with httpd.conf.sample
| |
| and merge missing modules/instructions into httpd.conf!
| |
|
| |
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
| |
| Message from rubygem-passenger-5.0.26:
| |
| #####################################################################
| |
|
| |
| Please edit your Apache configuration file, and add these lines:
| |
|
| |
| LoadModule passenger_module /usr/local/lib/ruby/gems/2.2/gems/passenger-5.0.26/buildout/apache2/mod_passenger.so
| |
| PassengerRoot /usr/local/lib/ruby/gems/2.2/gems/passenger-5.0.26
| |
| PassengerRuby /usr/local/bin/ruby22
| |
|
| |
| After you restart Apache, you are ready to deploy any number of Ruby on Rails
| |
| applications on Apache, without any further Ruby on Rails-specific
| |
| configuration!
| |
|
| |
| #####################################################################
| |
| </pre>
| |
| : <code>ee /usr/local/etc/apache24/httpd.conf</code>
| |
| <pre>
| |
| LoadModule passenger_module /usr/local/lib/ruby/gems/2.2/gems/passenger-5.0.26/buildout/apache2/mod_passenger
| |
| PassengerRoot /usr/local/lib/ruby/gems/2.2/gems/passenger-5.0.26
| |
| PassengerRuby /usr/local/bin/ruby22
| |
| </pre>
| |
| : <code>service apache24 start</code>
| |
| : <code>pkg install -y ap24-mod_fastcgi</code>
| |
| <pre></pre>
| |
| : <code>ee /usr/local/etc/apache24/httpd.conf</code>
| |
| <pre></pre>
| |
| <pre>
| |
| </pre>
| |
| <pre></pre>
| |
| : <code>service apache24 restart</code>
| |
| <!--
| |
| ----
| |
|
| |
|
| ==== Vorbereitung der Installation ==== | | ==== Vorbereitung der Installation ==== |
Zeile 254: |
Zeile 78: |
| ==== Auswahl von Komponenten für die Installation ==== | | ==== Auswahl von Komponenten für die Installation ==== |
|
| |
|
| [[Redmine]] kann mit verschiedensten Komponenten betrieben werden. Die "klassische" Konstellation ist Apache (als Webserver) und MySQL (als Datenbank). | | [[Redmine]] kann mit verschiedensten Komponenten betrieben werden. Die klassische ist Apache und MySQL. |
|
| |
|
| ==== Auswahl von Komponenten für die Installation ====
| | Es wurde ich für |
| Es wurde sich für | |
| * ''nginx'' (statt häufig sonst ''apache'') als web server | | * ''nginx'' (statt häufig sonst ''apache'') als web server |
| *: Entscheidend war das einfacher verständlichen Dateien zur Konfiguration und der bekannte ressourcensparende Betrieb. | | *: Entscheidend war das einfacher verständlichen Dateien zur Konfiguration und der bekannte ressourcensparende Betrieb. |
Zeile 267: |
Zeile 90: |
|
| |
|
| ; Installation der benötigten Pakete | | ; Installation der benötigten Pakete |
| : <code>pkg install -y nginx postgresql94-server redmine rubygem-passenger</code> | | : <code>pkg install -y nginx postgresql94-server redmine rubygem-passanger</code> |
|
| |
|
| : <code>echo 'nginx_enable="YES"' >> /etc/rc.conf</code> | | : <code>echo 'nginx_enable="YES"' >> /etc/rc.conf</code> |
Zeile 479: |
Zeile 302: |
| : <code>echo 'redmine_enable="YES"' >> /etc/rc.conf</code> | | : <code>echo 'redmine_enable="YES"' >> /etc/rc.conf</code> |
| --> | | --> |
|
| |
| == Einrichtung ==
| |
|
| |
| === Einrichtung von Redmine ===
| |
|
| |
| : <code>cp /usr/local/www/redmine/config/configuration.yml.example /usr/local/www/redmine/config/configuration.yml</code>
| |
|
| |
| ===== Einrichtung des Versands von Mails durch Redmine =====
| |
|
| |
| eine Methode zum Versand von Mails durch Redmine angegeben
| |
| : Voraussetzung ist, dass <code>sendmail</code> lokal (in der Instany) funktioniert
| |
| : getestet und weiter eingerichtet werden kann bei https://141.56.50.15/settings?tab=notifications
| |
| : <code>$EDITOR /usr/local/www/redmine/config/configuration.yml</code>
| |
| <pre></pre>
| |
| <pre>
| |
| production:
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| email_delivery:
| |
| delivery_method: :sendmail
| |
| </pre>
| |
| : Alternativ könnte bestimmt auch der zentralen Postausgangsserver genutzt werden.
| |
| <pre></pre>
| |
| <pre>
| |
| production:
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| # email_delivery:
| |
| # delivery_method: :smtp
| |
| # smtp_settings:
| |
| # address: smtp.knology.net
| |
| # port: 25
| |
| # domain: cybersprocket.com
| |
| </pre>
| |
|
| |
| ; Siehe auch:
| |
| * https://www.redmine.org/projects/redmine/wiki/EmailConfiguration
| |
|
| |
| ===== Einrichtung der Programme für Versionsverwaltung von Quellen bei Redmine =====
| |
|
| |
| Angeben des Pfades für die Befehle von <code>git</code> und <code>svn</code> für die Verwaltung von repositories (aka [[wikipedia:de:Versionsverwaltung|source control management]] (kurz ''[[wikipedia:en:source control management|SCM]]''))
| |
| : getestet und weiter eingerichtet werden kann bei https://141.56.50.15/settings?tab=repositories
| |
| : <code>$EDITOR /usr/local/www/redmine/config/configuration.yml</code>
| |
| <pre></pre>
| |
| <pre>
| |
| production:
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| scm_subversion_command: /usr/local/bin/svn
| |
| scm_git_command: /usr/local/bin/git
| |
| </pre>
| |
|
| |
| Vorbereiten des Benennens einer Datei zum Loggen für die Verwaltung von repositories (aka [[wikipedia:de:Versionsverwaltung|source control management]] (kurz ''[[wikipedia:en:source control management|SCM]]''))
| |
| : getestet und weiter eingerichtet werden kann bei https://141.56.50.15/settings?tab=repositories
| |
| : <code>$EDITOR /usr/local/www/redmine/config/configuration.yml</code>
| |
| <pre></pre>
| |
| <pre>
| |
| production:
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| # scm_stderr_log_file: /var/log/redmine_scm_stderr.log
| |
| </pre>
| |
|
| |
| ===== Einrichtung der Verwendung von ImageMagick durch Redmine =====
| |
|
| |
| Angeben des Pfades für den Befehl von <code>convert</code> für die Verwendung von [[wikiepedia:de:ImageMagick|ImageMagick]] (zur Anpassung von Grafiken)
| |
| : geprüft werden kann bei https://141.56.50.15/admin/info
| |
| : <code>$EDITOR /usr/local/www/redmine/config/configuration.yml</code>
| |
| <pre></pre>
| |
| <pre>
| |
| production:
| |
| </pre>
| |
| <pre></pre>
| |
| <pre>
| |
| imagemagick_convert_command: /usr/local/bin/convert
| |
| </pre>
| |
|
| |
| ; Siehe auch:
| |
| * [[Diskussion:Server/srs15#ImageMagick convert available (optional) funktionieren lassen]]
| |
| * [[freshports:graphics/ImageMagick]]
| |
| * [[freshports:graphics/rubygem-rmagick]]
| |
| * http://rmagick.rubyforge.org/install-faq.html#linux
| |
|
| |
| ===== Aktivierung der REST-Schnittstelle =====
| |
| Einzelne Apps - womit Mitglieder versuchen wollten [[AUS]] ([[Redmine]]) auf dem eigenen [[Smartphone]] effektiv zu nutzen - möchte sich (ausschließlich) per [[wikipedia:de:Representational State Transfer|REST]] authentifizieren.
| |
|
| |
| per Oberfläche
| |
| * Administration
| |
| ** Konfiguration
| |
| *** Authentifizierung
| |
| **** ''REST-Schnittstelle aktivieren'' angewählt
| |
| **** ''Speichern'' geklickt
| |
|
| |
|
| == Dinge, die noch möglich sind == | | == Dinge, die noch möglich sind == |
Zeile 623: |
Zeile 350: |
| |- | | |- |
| |} | | |} |
|
| |
| == Aktualisierung ==
| |
|
| |
| übliches Anhalten der Dienste bei [[FreeBSD]]
| |
| : <code>service apache24 stop</code>
| |
| : <code>service mysql-server stop</code>
| |
|
| |
| übliches Aktualisieren bei [[FreeBSD]] für <code>pkg</code>
| |
| : <code>pkg update && pkg upgrade -y</code>
| |
|
| |
| ; Aktualisierung von <code>passenger</code>
| |
|
| |
| : <code>service apache24 restart</code>
| |
| <pre>
| |
| Performing sanity check on apache24 configuration:
| |
| httpd: Syntax error on line 189 of /usr/local/etc/apache24/httpd.conf: Cannot load /usr/local/lib/ruby/gems/version/gems/passenger/buildout/apache2/mod_passenger.so into server: Cannot open "/usr/local/lib/ruby/gems/version/gems/passenger/buildout/apache2/mod_passenger.so"
| |
| </pre>
| |
|
| |
| : <code>echo $(ls /usr/local/lib/ruby/gems/2.2/gems/ | grep passenger | tail -n 1)</code>
| |
| : <code>echo $(ls /usr/local/lib/ruby/gems/ | tail -n 1)</code>
| |
| : <code>echo $(ls /usr/local/lib/ruby/gems/ | tail -n 2 | head -n 1)</code>
| |
|
| |
| : <code>ee /usr/local/etc/apache24/httpd.conf</code>
| |
| <pre></pre>
| |
| <pre>
| |
| # LoadModule passenger_module /usr/local/lib/ruby/gems/2.2/gems/passenger-5.0.26/buildout/apache2/mod_passenger.so
| |
| # PassengerRoot /usr/local/lib/ruby/gems/2.2/gems/passenger-5.0.26
| |
| # PassengerRuby /usr/local/bin/ruby22
| |
| LoadModule passenger_module /usr/local/lib/ruby/gems/2.2/gems/passenger-5.0.28/buildout/apache2/mod_passenger.so
| |
| PassengerRoot /usr/local/lib/ruby/gems/2.2/gems/passenger-5.0.28
| |
| PassengerRuby /usr/local/bin/ruby22
| |
| </pre>
| |
| <pre></pre>
| |
|
| |
| : <code>service apache24 restart</code>
| |
| <pre>
| |
| Performing sanity check on apache24 configuration:
| |
| Syntax OK
| |
| apache24 not running? (check /var/run/httpd.pid).
| |
| Performing sanity check on apache24 configuration:
| |
| Syntax OK
| |
| Starting apache24.
| |
| </pre>
| |
|
| |
| : <code>ls -l /usr/local/lib/ruby/gems/version</code>
| |
| : <code>ls -l /usr/local/lib/ruby/gems/version/gems/passenger</code>
| |
|
| |
| : <code>ln -s /usr/local/lib/ruby/gems/$(ls /usr/local/lib/ruby/gems/ | tail -n 2 | head -n 1)/ /usr/local/lib/ruby/gems/version</code>
| |
| :: <code>rm /usr/local/lib/ruby/gems/version</code>
| |
| :: <code>ln -s /usr/local/lib/ruby/gems/$(ls /usr/local/lib/ruby/gems/ | tail -n 2 | head -n 1)/ /usr/local/lib/ruby/gems/version</code>
| |
| : <code>ln -s /usr/local/lib/ruby/gems/version/gems/$(ls /usr/local/lib/ruby/gems/version/gems/ | grep passenger | tail -n 1)/ /usr/local/lib/ruby/gems/version/gems/passenger</code>
| |
| :: <code>rm /usr/local/lib/ruby/gems/version/gems/passenger</code>
| |
| :: <code>ln -s /usr/local/lib/ruby/gems/version/gems/$(ls /usr/local/lib/ruby/gems/version/gems/ | grep passenger | tail -n 1)/ /usr/local/lib/ruby/gems/version/gems/passenger</code>
| |
|
| |
| : <code>$EDITOR /usr/local/etc/apache24/httpd.conf</code>
| |
| <pre></pre>
| |
| <pre>
| |
| LoadModule passenger_module /usr/local/lib/ruby/gems/version/gems/passenger/buildout/apache2/mod_passenger.so
| |
| PassengerRoot /usr/local/lib/ruby/gems/version/gems/passenger
| |
| PassengerRuby /usr/local/bin/ruby
| |
| </pre>
| |
| <pre></pre>
| |
| : <code>service apache24 restart</code>
| |
| <pre>
| |
| Performing sanity check on apache24 configuration:
| |
| Syntax OK
| |
| apache24 not running? (check /var/run/httpd.pid).
| |
| Performing sanity check on apache24 configuration:
| |
| Syntax OK
| |
| Starting apache24.
| |
| </pre>
| |
|
| |
| ; Aktualisierung der Pakete bei Redmine mit <code>bundle</code>
| |
|
| |
| <!--
| |
| ----
| |
| Vielleicht wäre das Anwenden mit dem weniger privilegierten Account redmine das besser.
| |
|
| |
| Das führt aber zum Problem:
| |
| <pre>
| |
| Gem::FilePermissionError: You don't have write permissions for the /usr/local/lib/ruby/gems/2.2 directory.
| |
| An error occurred while installing rake (11.1.2), and Bundler cannot continue.
| |
| Make sure that `gem install rake -v '11.1.2'` succeeds before bundling.
| |
| </pre>
| |
| Im Übrigen wurde das Paket rubygem-rake von Version 11.1.2 auf 11.2.2 aktualisiert.
| |
| ----
| |
| : <code>cd /usr/local/www/redmine ; su redmine -c 'bundle install' ; cd -</code>
| |
| : <code>cd /usr/local/www/redmine ; su redmine -c 'bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production' ; cd -</code>
| |
| !-->
| |
| : <code>cd /usr/local/www/redmine ; bundle install ; cd -</code>
| |
| : <code>cd /usr/local/www/redmine ; bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production ; cd -</code>
| |
|
| |
| === Aktualisierung Siehe auch ===
| |
| * [[Server/Redmine#Aktualisierung]]
| |
|
| |
| == Fehlerbehebung ==
| |
|
| |
| Ende vom Log vom Apache (wie in der Datei ''/usr/local/etc/apache24/httpd.conf'' definiert) für Redmine anschauen
| |
| : <code>tail /usr/local/www/redmine/log/redmine.example.com-error.log</code>
| |
|
| |
|
| == Siehe auch == | | == Siehe auch == |