Server/srs15: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K (→Aktualisierung) |
|||
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 79: | Zeile 254: | ||
==== Auswahl von Komponenten für die Installation ==== | ==== Auswahl von Komponenten für die Installation ==== | ||
[[Redmine]] kann mit verschiedensten Komponenten betrieben werden. Die klassische ist Apache und MySQL. | [[Redmine]] kann mit verschiedensten Komponenten betrieben werden. Die "klassische" Konstellation ist Apache (als Webserver) und MySQL (als Datenbank). | ||
Es wurde | ==== Auswahl von Komponenten für die Installation ==== | ||
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. |
Version vom 23. Mai 2016, 22:18 Uhr
Betriebssystem
- Server/srs1337
- Jail FreeNAS
- FreeBSD
Verwendungszweck
Erstellung
- Klicken der Jail über die Oberfläche von FreeNAS auf Server/srs1337
- Jails ausgewählt
- Add Jail ausgewählt
- bei Jail Name: srs15 eingetragen
- OK geklickt
- Jail wurde erstellt
- View Jails ausgewählt
- Zeile der Jail (Bezeichnung der Spalte) srs15 angewählt
- Edit Jail (Werkzeugschlüssel) geklickt
- bei IPv4 adress: ersetzend 141.56.50.15 eingetragen
- OK geklickt
- Edit Jail (Werkzeugschlüssel) geklickt
- Advanced Mode geklickt
- bei IPv4 default gateway: 141.56.50.254 eingetragen
- IPv6 Autoconfigure: angewählt
- bei Sysctls: ergänzend (zu allow.raw_sockets=true) noch ergänzend ,allow.sysvipc=true eingetragen
- Save geklickt
- Advanced Mode geklickt
- Edit Jail (Werkzeugschlüssel) geklickt
- Zeile der Jail (Bezeichnung der Spalte) srs15 angewählt
- Restart (gelbes Symbol) geklickt
- Yes geklickt
- Restart (gelbes Symbol) geklickt
- Zeile der Jail (Bezeichnung der Spalte) srs15 angewählt
- Add Jail ausgewählt
- Testen des Zugriffes von Server/srs1337
- per Klicken einer Konsole
- vom Terminal aus
jexec `jls | grep srs15 | awk '{ print $1 }'` sh
Installation
pkg install -y redmine
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. ====
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.
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.
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 ==========================================================================
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. * * * * * * * * * * * * * * * * * * * * * * * *
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 =============================================================================
pkg install -y mysql56-server
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. ************************************************************************
Diskussion:Server/Redmine#rake 10 vs rake 11
pkg install -y rubygem-passenger
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! #####################################################################
ee /usr/local/etc/apache24/httpd.conf
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
service apache24 start
pkg install -y ap24-mod_fastcgi
ee /usr/local/etc/apache24/httpd.conf
service apache24 restart
Dinge, die noch möglich sind
echo '/usr/local/www/redmine/log/production.log 644 3 3000 * J' >> /etc/newsyslog.conf
Variablen
Dienst | Zweck | Wert | Festlegung im System | Dokumentation |
---|---|---|---|---|
Jail | Adresse für IPv4 | 141.56.50.15 | Server/srs1337 (FreeNAS) | Intern:Server |
MySQL | Passwort für root der Datenbank | mysql-root-passwort (fiktiv) | MySQL-Konsole | Ordner Administration Rechentechnik |
MySQL | Konto für Redmine bei der Datenbank | mysql-remine-konto (fiktiv) | MySQL-Konsole | Ordner Administration Rechentechnik |
MySQL | Passwort für Redmine bei der Datenbank | mysql-remine-passwort (fiktiv) | MySQL-Konsole | Ordner Administration Rechentechnik |
MySQL | Datenbank für Redmine bei der Datenbank | mysql-remine-datenbank (fiktiv) | MySQL-Konsole | Ordner Administration Rechentechnik |
… |
Aktualisierung
übliches Aktualisieren bei FreeBSD für pkg
pkg update && pkg upgrade -y
- Aktualisierung von
passenger
echo $(ls /usr/local/lib/ruby/gems/2.2/gems/ | grep passenger | tail -n 1)
echo $(ls /usr/local/lib/ruby/gems/ | tail -n 1)
ee /usr/local/etc/apache24/httpd.conf
# 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
service apache24 restart
ln -s /usr/local/lib/ruby/gems/$(ls /usr/local/lib/ruby/gems/ | tail -n 1) /usr/local/lib/ruby/gems/version
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
ee /usr/local/etc/apache24/httpd.conf
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
service apache24 restart
- Aktualisierung der Pakete bei Redmine mit
bundle
cd /usr/local/www/redmine ; bundle install ; cd -
cd /usr/local/www/redmine ; bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production ; cd -
Aktualisierung Siehe auch
Siehe auch
- Server/Jail/SRS15/2015 (früherer Betrieb eines so bezeichneten Servers (bis im Laufe vom Jahr 2015))