Hallo Zusammen,
da ich mich jetzt ziemlich lange mit der Installation von ROMPR beschäftigt habe und mir sowieso mal alles aufgeschrieben habe, hab ich hier mal eine kleine Anleitung gemacht wie das einfach zu installieren geht:
Meine Version von Raspian ist: 2018-10-09-raspbian-stretch-lite.img (ohne GUI)
sudo apt-get install apache2 php7.0-curl php7.0-mysql php7.0-gd php7.0-json php7.0-xml php7.0-mbstring imagemagick
ROMPR hier herunterladen entpacken und
den Ordner rompr nach /var/www/html kopieren (Winscp)
cd /var/www/html/rompr
mkdir prefs
mkdir albumart
sudo chown www-data /var/www/html/rompr/albumart
sudo chown www-data /var/www/html/rompr/prefs
sudo a2enmod expires
sudo a2enmod headers
sudo a2enmod deflate
sudo a2enmod php7.0
Im Verzeichnis /var/www/html die Datei rompr.conf erstellen und folgenden Inhalt reinkopieren:
Timeout 1800
<Directory /var/www/html/rompr>
Options Indexes FollowSymLinks MultiViews Includes ExecCGI
DirectoryIndex index.php
AllowOverride All
AddType image/x-icon .ico
Order Allow,Deny
Allow from All
Require all granted
<IfModule mod_php7.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_admin_flag allow_url_fopen On
php_value include_path .
php_admin_value upload_tmp_dir /var/www/html/rompr/prefs/temp
php_admin_value open_basedir none
php_admin_value memory_limit 128M
php_admin_value post_max_size 32M
php_admin_value upload_max_filesize 32M
php_admin_value max_execution_time 1800
</IfModule>
</Directory>
<Directory /var/www/html/rompr/albumart/small>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</Directory>
<Directory /var/www/html/rompr/albumart/medium>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</Directory>
<Directory /var/www/html/rompr/albumart/asdownloaded>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</Directory>
Alles anzeigen
Jetzt symlink erstellen damit Apache die Seite findet
sudo ln -s /var/www/html/rompr.conf /etc/apache2/sites-enabled/rompr.conf
Datenbank
sudo apt-get install mysql-server
mysql -uroot -p (Passwort ist das Root Passwort vom PI)
CREATE DATABASE romprdb CHARACTER SET utf8 COLLATE utf8_unicode_ci;
USE romprdb;
CREATE USER 'rompr' IDENTIFIED BY 'romprdbpass';
GRANT USAGE ON *.* TO 'rompr'@localhost IDENTIFIED BY 'romprdbpass';
GRANT USAGE ON *.* TO 'rompr'@'%' IDENTIFIED BY 'romprdbpass';
GRANT ALL ON romprdb.* TO rompr;
SHOW GRANTS FOR 'rompr'@localhost; (Anzeige ob der User richtig eingerichtet wurde)
FLUSH PRIVILEGES;
exit
sudo service apache2 restart
sudo service mysql restart
im Webbrowser:
IP des Raspberrys/rompr (192.168.45.22/rompr)
Schalter auf Full Database stellen!!
alles andere passt so.
Dann auf "save" drücken und schon sollte das Webfrontend aufgehn
Ich hoffe ich kann damit jemandem helfen.
Ich freue mich auch wenn jemand schreibt obs bei ihm damit geklappt hat.