Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
howto:bsd:install:freebsd [2013/07/19 00:46] junovitch Fix typo in FreeBSD Installation Instruction Page |
howto:bsd:install:freebsd [2015/07/02 13:21] mmolinari Updated Serviio Web UI to 1.5; 1.4beta is not compatible with the latest Serviio. |
| |
=== Install Packages from Ports === | === Install Packages from Ports === |
Set recommended [[http://www.freshports.org/multimedia/ffmpeg1/|ffmpeg1]] options then install Serviio via the Ports collection. | Set recommended [[http://www.freshports.org/multimedia/ffmpeg/|ffmpeg]] options then install Serviio via the Ports collection. The newest version of serviio (which if you're installing from here it's the version you'll have) will require ffmpeg2 instead of 1. I've also added an install of dcraw, while it's not required you won't be able to use some of the thumbnail and image features of serviio without it. |
| |
<code bash> | <code bash> |
cd /usr/ports/multimedia/ffmpeg1 && make config WITH_RTMP=YES WITH_X11GRAB=YES WITH_FAAC=YES WITH_LAME=YES WITH_AMR_NB=YES WITH_AMR_WB=YES | cd /usr/ports/multimedia/ffmpeg && make config WITH_RTMP=YES WITH_X11GRAB=YES WITH_FAAC=YES WITH_LAME=YES WITH_AMR_NB=YES WITH_AMR_WB=YES |
| portmaster graphics/dcraw |
portmaster net/serviio | portmaster net/serviio |
</code> | </code> |
portmaster www/apache24 | portmaster www/apache24 |
cd /usr/ports/lang/php5 && make config WITH_APACHE=YES | cd /usr/ports/lang/php5 && make config WITH_APACHE=YES |
portmaster lang/php5 ftp/php5-curl textproc/php5-xml converters/php5-mbstring devel/php5-json textproc/php5-simplexml textproc/php5-dom | portmaster lang/php5 www/mod_php5 ftp/php5-curl textproc/php5-xml converters/php5-mbstring devel/php5-json textproc/php5-simplexml textproc/php5-dom |
</code> | </code> |
| |
| |
<code bash> | <code bash> |
cd /tmp && fetch https://dl.dropboxusercontent.com/u/42061/WebUI%20v1.4beta.zip | cd /tmp && fetch https://github.com/SwoopX/Web-UI-for-Serviio/archive/Serviio-1.5.zip |
unzip -d /usr/local/www/apache24/data/ WebUI%20v1.4beta.zip | unzip -d /usr/local/www/apache24/data/ Serviio-1.5.zip |
</code> | </code> |
| |
<code bash> | <code bash> |
cd /usr/local/etc/apache24; cp httpd.conf httpd.conf.original | cd /usr/local/etc/apache24; cp httpd.conf httpd.conf.original |
perl -pwi -e 's^DocumentRoot "/usr/local/www/apache24/data"^DocumentRoot "/usr/local/www/apache24/data/serviioweb-1.4beta"^g' httpd.conf | perl -pwi -e 's^DocumentRoot "/usr/local/www/apache24/data"^DocumentRoot "/usr/local/www/apache24/data/Web-UI-for-Serviio-Serviio-1.5"^g' httpd.conf |
perl -pwi -e 's^<Directory "/usr/local/www/apache24/data">^<Directory /usr/local/www/apache24/data/serviioweb-1.4beta>^g' httpd.conf | perl -pwi -e 's^<Directory "/usr/local/www/apache24/data">^<Directory /usr/local/www/apache24/data/Web-UI-for-Serviio-Serviio-1.5>^g' httpd.conf |
perl -pwi -e 's^DirectoryIndex index.html^DirectoryIndex index.html index.php^g' httpd.conf | perl -pwi -e 's^DirectoryIndex index.html^DirectoryIndex index.html index.php^g' httpd.conf |
perl -pwi -e 's^AddType application/x-gzip .gz .tgz^AddType application/x-gzip .gz .tgz\n AddType application/x-httpd-php .php\n AddType application/x-httpd-php-source .phps^g' httpd.conf | perl -pwi -e 's^AddType application/x-gzip .gz .tgz^AddType application/x-gzip .gz .tgz\n AddType application/x-httpd-php .php\n AddType application/x-httpd-php-source .phps^g' httpd.conf |
| |
Congratulations! You can now access your Serviio page via http://serviio.mydomain.name/ on your local network to finish configuration. | Congratulations! You can now access your Serviio page via http://serviio.mydomain.name/ on your local network to finish configuration. |
| |
| === If it's not running === |
| |
| If it doesn't run right away don't panic. There is a very verbose logfile here: |
| <code bash> |
| /var/log/serviio/serviio.log |
| </code> |
| |
| For starters check the ownership of all the files in the following files and directories. If they are not all owned by the DLNA user serviio will exit on it's own with no CLI messages. |
| |
| <code bash> |
| /var/db/serviio/thumbnaios* |
| /var/db/serviio/db |
| </code> |