• Diese Seite verwendet Cookies. Indem du diese Website weiterhin nutzt, erklärst du dich mit der Verwendung von Cookies einverstanden. Erfahre mehr

RessourceSpace unter FreeBSD installieren

Themenstarter #1
Hallo,
ich versuche unter FreeBSD 12.1 die RessourceSpace zum laufen zu bekommen. Leider komme ich nach der ersten Seite nicht weiter. Aber von Anfang an:
Ich habe ein virtuelle Maschine in der ich FreeBSD inkl. aller Updates installierte. Anschliessend habe ich einen FAMP installiert und die Ausgabe von "phpinfo()" zeigte mich auch die PHP-Seite mit den geladenen Modulen an. Folgende Pakete habe ich installiert:


GraphicsMagick-1.3.35,1 =
antiword-0.37_4 =
aom-2.0.0_1 =
apache24-2.4.43 =
apr-1.7.0.1.6.1_1 =
argp-standalone-1.3_4 =
avahi-app-0.7_3 =
binutils-2.33.1_2,1 =
bmon-4.0 =
ca_root_nss-3.54 =
cairo-1.16.0,2 =
cups-2.3.3_1 =
curl-7.71.0 =
cyrus-sasl-2.1.27_1 =
dav1d-0.7.1 =
db5-5.3.28_7 =
dbus-1.12.18 =
dbus-glib-0.110 =
dejavu-2.37_1 =
doas-6.3 =
encodings-1.0.5,1 =
expat-2.2.8 =
ffmpeg-4.3_2,1 =
font-bh-ttf-1.0.3_4 =
font-misc-ethiopic-1.0.3_4 =
font-misc-meltho-1.0.3_4 =
fontconfig-2.13.92_2,1 =
freeglut-3.0.0_2 =
freetype2-2.10.2 =
fribidi-0.19.7 =
gcc9-9.3.0_1 =
gdbm-1.18.1_1 =
gettext-runtime-0.20.2 =
gflags-2.2.2_2 =
ghostscript9-base-9.06_14 =
giflib-5.2.1 =
glib-2.56.3_8,1 =
glog-0.4.0_1 =
gmp-6.2.0 =
gnome_subr-1.0 =
gnutls-3.6.14 =
gobject-introspection-1.56.1,1 =
graphite2-1.3.14 =
groff-1.22.4_3 =
gsfonts-8.11_8 =
harfbuzz-2.6.8 =
hdf-szip-2.1.1 =
hdf5-1.10.6,1 =
htop-2.2.0_1 =
icu-67.1,1 =
indexinfo-0.3.1 =
jasper-2.0.16_1 =
jbig2dec-0.18 =
jbigkit-2.1_1 =
jpeg-turbo-2.0.4 =
lcms2-2.11_1 =
leptonica-1.76.0_1 =
libGLU-9.0.1 =
libICE-1.0.10,1 =
libSM-1.2.3,1 =
libX11-1.6.9_1,1 =
libXau-1.0.9 =
libXdamage-1.1.5 =
libXdmcp-1.1.3 =
libXext-1.3.4,1 =
libXfixes-5.0.3_2 =
libXft-2.3.3 =
libXi-1.7.10,1 =
libXmu-1.1.3,1 =
libXrandr-1.5.2 =
libXrender-0.9.10_2 =
libXt-1.2.0,1 =
libXxf86vm-1.1.4_3 =
libargon2-20190702 =
libass-0.14.0 =
libav-12.3_7 =
libconfuse-3.2.1_1 =
libdaemon-0.14_1 =
libdrm-2.4.102,1 =
libedit-3.1.20191231,1 =
libepoll-shim-0.0.20200602 =
libevent-2.1.11_1 =
libffi-3.2.1_3 =
libfontenc-1.1.4 =
libgd-2.3.0,1 =
libiconv-1.16 =
libidn-1.35 =
libidn2-2.3.0_1 =
liblz4-1.9.2_1,1 =
libnghttp2-1.41.0 =
libogg-1.3.4,4 =
libpaper-1.1.24.4 =
libpciaccess-0.16 =
libpthread-stubs-0.4 =
libtasn1-4.16.0 =
libtheora-1.1.1_7 =
libudev-devd-0.4.2 =
libunistring-0.9.10_1 =
libunwind-20200331 =
libv4l-1.18.0 =
libva-2.8.0 =
libvdpau-1.4 =
libvorbis-1.3.6_1,3 =
libvpx-1.8.2_1 =
libwmf-0.2.8.4_15 =
libx264-0.159.2999 =
libxcb-1.13.1 =
libxml2-2.9.10 =
libxshmfence-1.3 =
lsof-4.93.2_11,8 =
mesa-libs-19.0.8_2 =
mkfontscale-1.2.1 =
mod_php74-7.4.7 =
mpc-1.1.0_2 =
mpfr-4.0.2 =
mysql80-client-8.0.20_1 =
mysql80-server-8.0.20_1 =
nettle-3.6 =
nspr-4.26 =
nss-3.54 =
opencv-3.4.1_33 =
opencv-core-3.4.1_33 =
openjpeg-2.3.1 =
openldap-client-2.4.50 =
opus-1.3.1 =
orc-0.4.31 =
p11-kit-0.23.20 =
p5-Image-ExifTool-12.00 =
pango-1.42.4_3 =
pciids-20200529 =
pcre-8.44 =
pcre2-10.35 =
perl5-5.30.3 =
php74-7.4.7 =
php74-ctype-7.4.7 =
php74-dom-7.4.7 =
php74-extensions-1.0 =
php74-filter-7.4.7 =
php74-gd-7.4.7 =
php74-iconv-7.4.7 =
php74-json-7.4.7 =
php74-mysqli-7.4.7 =
php74-opcache-7.4.7 =
php74-pdo-7.4.7 =
php74-pdo_sqlite-7.4.7 =
php74-phar-7.4.7 =
php74-posix-7.4.7 =
php74-session-7.4.7 =
php74-simplexml-7.4.7 =
php74-sqlite3-7.4.7 =
php74-tokenizer-7.4.7 =
php74-xml-7.4.7 =
php74-xmlreader-7.4.7 =
php74-xmlwriter-7.4.7 =
pixman-0.40.0 =
pkg-1.14.6 =
png-1.6.37 =
poppler-0.89.0_1 =
poppler-data-0.4.9_3 =
protobuf-3.12.3,1 =
psutils-1.17_5 =
py27-enum34-1.1.6 =
py27-future-0.18.2 =
py27-glances-3.1.4 =
py27-psutil-5.7.0 =
py27-setuptools-44.0.0 =
py37-pdftotext-2.1.4_5 =
py37-setuptools-44.0.0 =
python27-2.7.18 =
python37-3.7.7_1 =
readline-8.0.4 =
schroedinger-1.0.11_4 =
screen-4.8.0 =
sqlite3-3.32.2,1 =
svgalib-1.4.3_7 =
tesseract-4.1.1_2 =
tesseract-data-4.0.0 =
tiff-4.1.0 =
tpm-emulator-0.7.4_2 =
trousers-0.3.14_2 =
uchardet-0.0.7 =
vim-console-8.2.1110 =
vo-aacenc-0.1.3_1 =
wayland-1.18.0_3 =
webp-1.1.0 =
x265-3.2.1_3 =
xorg-fonts-truetype-7.7_1 =
xorgproto-2020.1 =
xvid-1.3.7,1 =
zstd-1.4.5 =

Die ResourceSpace habe ich in der aktuellen Version bezogen (https://www.resourcespace.com/downloads/ResourceSpace_9_3_15368.zip). Die MySql Datenbank habe ich wie auf der Webseite angegeben konfiguriert (https://www.resourcespace.com/knowledge-base/systemadmin/config-db).

In der httpd.conf habe ich folgenden Eintrag erstellt:

Alias /resourcespace /usr/local/www/resourcespace/
AcceptPathInfo On
<Directory /usr/local/www/resourcespace/>
AllowOverride None
Require all granted
</Directory>


Hier ein Auszug aus der httpd-error.log


Mon Jul 13 13:46:32.159231 2020] [php7:warn] [pid 7551] [client 142.224.107.2:50897] PHP Warning: stream_wrapper_unregister(): Unable to unregister protocol ftps:// in /usr/local/www/resourcespace/include/config.security.php on line 4, referer: http://142.224.50.152/resourcespace/pages/setup.php
[Mon Jul 13 13:46:32.159616 2020] [php7:warn] [pid 7577] [client 142.224.107.2:50893] PHP Warning: stream_wrapper_unregister(): Unable to unregister protocol ftps:// in /usr/local/www/resourcespace/include/config.security.php on line 4, referer: http://142.224.50.152/resourcespace/pages/setup.php
[Mon Jul 13 13:46:32.160554 2020] [php7:warn] [pid 7553] [client 142.224.107.2:50892] PHP Warning: stream_wrapper_unregister(): Unable to unregister protocol ftps:// in /usr/local/www/resourcespace/include/config.security.php on line 4, referer: http://142.224.50.152/resourcespace/pages/setup.php
[Mon Jul 13 13:46:34.589765 2020] [php7:warn] [pid 7553] [client 142.224.107.2:50892] PHP Warning: stream_wrapper_unregister(): Unable to unregister protocol ftps:// in /usr/local/www/resourcespace/include/config.security.php on line 4, referer: http://142.224.50.152/resourcespace/pages/setup.php
[Mon Jul 13 13:46:34.591081 2020] [php7:warn] [pid 7553] [client 142.224.107.2:50892] PHP Warning: mysqli_connect(): The server requested authentication method unknown to the client [caching_sha2_password] in /usr/local/www/resourcespace/pages/setup.php on line 579, referer: http://142.224.50.152/resourcespace/pages/setup.php
[Mon Jul 13 13:46:34.591166 2020] [php7:warn] [pid 7553] [client 142.224.107.2:50892] PHP Warning: mysqli_connect(): (HY000/2054): The server requested authentication method unknown to the client in /usr/local/www/resourcespace/pages/setup.php on line 579, referer: http://142.224.50.152/resourcespace/pages/setup.php
[Mon Jul 13 13:46:34.591261 2020] [php7:warn] [pid 7553] [client 142.224.107.2:50892] PHP Warning: mysqli_errno() expects parameter 1 to be mysqli, bool given in /usr/local/www/resourcespace/pages/setup.php on line 582, referer: http://142.224.50.152/resourcespace/pages/setup.php
[Mon Jul 13 13:46:34.591334 2020] [php7:warn] [pid 7553] [client 142.224.107.2:50892] PHP Warning: mysqli_get_server_info() expects parameter 1 to be mysqli, bool given in /usr/local/www/resourcespace/pages/setup.php on line 594, referer: http://142.224.50.152/resourcespace/pages/setup.php
[Mon Jul 13 13:46:34.597845 2020] [php7:error] [pid 7553] [client 142.224.107.2:50892] PHP Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /usr/local/www/resourcespace/include/general_functions.php:2958\nStack trace:\n#0 /usr/local/www/resourcespace/pages/setup.php(742): generateSecureKey()\n#1 {main}\n thrown in /usr/local/www/resourcespace/include/general_functions.php on line 2958, referer: http://142.224.50.152/resourcespace/pages/setup.php
[Mon Jul 13 13:56:36.708204 2020] [php7:error] [pid 7552] [client 142.224.50.111:65000] script '/usr/local/www/apache24/data/test.php' not found or unable to stat


Hat jemand eine Idee, bzw. werden weitere Infos benötigt?

mfg
Michael
 
Zuletzt bearbeitet von einem Moderator:
Themenstarter #3
Hi, danke die schnelle Antwort. Ich habe das Paket "php74-openssl-7.4.7" nachinstalliert.
Nun bekomme ich die Meldung das die Konfiguration fehlerhaft sei.

Hier der Auszug der httpd-error.log

[Mon Jul 13 15:29:18.416651 2020] [mpm_prefork:notice] [pid 7549] AH00169: caught SIGTERM, shutting down
[Mon Jul 13 15:29:18.590925 2020] [mpm_prefork:notice] [pid 11144] AH00163: Apache/2.4.43 (FreeBSD) PHP/7.4.7 configured -- resuming normal operations
[Mon Jul 13 15:29:18.591649 2020] [core:notice] [pid 11144] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Mon Jul 13 15:29:59.308543 2020] [php7:warn] [pid 11145] [client 142.224.50.111:65151] PHP Warning: mysqli_connect(): The server requested authentication method unknown to the client [caching_sha2_password] in /usr/local/www/resourcespace/pages/setup.php on line 579, referer: http://142.224.50.152/resourcespace/pages/setup.php
[Mon Jul 13 15:29:59.308713 2020] [php7:warn] [pid 11145] [client 142.224.50.111:65151] PHP Warning: mysqli_connect(): (HY000/2054): The server requested authentication method unknown to the client in /usr/local/www/resourcespace/pages/setup.php on line 579, referer: http://142.224.50.152/resourcespace/pages/setup.php
[Mon Jul 13 15:29:59.308828 2020] [php7:warn] [pid 11145] [client 142.224.50.111:65151] PHP Warning: mysqli_errno() expects parameter 1 to be mysqli, bool given in /usr/local/www/resourcespace/pages/setup.php on line 582, referer: http://142.224.50.152/resourcespace/pages/setup.php
[Mon Jul 13 15:29:59.308864 2020] [php7:warn] [pid 11145] [client 142.224.50.111:65151] PHP Warning: mysqli_get_server_info() expects parameter 1 to be mysqli, bool given in /usr/local/www/resourcespace/pages/setup.php on line 594, referer: http://142.224.50.152/resourcespace/pages/setup.php


mfg
Michael
 

Anhänge

#4
PHP Warning: mysqli_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
Du hast MySQL-8.0 installiert, dort ist standardmäßig das neuere SHA2-Passwort-Hashing konfiguriert.

Du müsstest nun für den Benutzer "resourcespace_rw" mysql_native_password aktivieren und dann nochmal das Passwort neu setzen (sonst stimmt der Hash ja nicht):

https://dev.mysql.com/doc/refman/8.0/en/password-management.html

https://www.php.net/manual/de/mysqli.requirements.php

Rob
 
Themenstarter #5
Danke für den Tip. Bin einen Schritt weiter gekommen. Ich konnte die Installation nun abschliessen. Nach der Anmeldung konnte ich allerdings die Startseite nicht öffnen. Nach der Installation der Pakete " oniguruma php74-curl php74-fileinfo php74-intl php74-mbstring php74-soap php74-xmlrpc php74-zip php74-zlib " lies sich die Seite öffnen. Endlich läuft die ResourceSpace:).

Danke für deine Hilfe, hab echt lange nach einer Lösung gesucht.

mfg
Michael