This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[HOWTO] Install Serviio 1.3.x from ports using TheBring

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

[HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by raulfg3 »

Update: 13-09-2016: http://wiki.serviio.org/doku.php?id=how ... ll:freebsd


Work in progress.........

This post is based on [HOWTO] Install serviio 1.2 and up and I do a new post to save valuable knowledge on old post
since serviio ver 1.3.x old install do not work due java frontend is not update (Koiroh java frontend used on [howto] install serviio 1.2) I write this new [HOWTO], for reference I use info from:

http://wiki.serviio.org/doku.php?id=how ... ll:freebsd
http://www.freshports.org/net/serviio
http://forum.serviio.org/viewtopic.php?f=5&t=1310
http://forum.serviio.org/viewtopic.php?f=17&t=5330
http://wiki.serviio.org/doku.php?id=howto:linux:install


WARNIG:This install is recomended for all N4F install , embeded or full, and install into a jail is the default /prefered method of installing packages in nas4Free to avoid problems.

1 - You need to create a new jail called "serviio" using "TheBrig"
serviio 1.jpg
Once created, you are ready to install serviio.

First you need to log in your jail, in my case:

Code: Select all

alicia: Data # jls
   JID  IP Address      Hostname                      Path
     2  192.168.1.191   serviio.local                 /mnt/Data/Jail/serviio
alicia: Data #
as you see I define my serviio jail as IP=192.168.1.191 and actually his ID=2

so log inside your serviio jail:

Code: Select all

alicia: Data # jexec 2 csh
root@serviio:/ #
now you need to install latest ports:

Code: Select all

portsnap fetch extract
once done you can see +ports on TheBrig WebGUI

to install serviio from ports:

Code: Select all

cd /usr/ports/net/serviio/ && make install clean

Build with these options that are recommended from here:http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux
  • AMR_NB
    AMR_WB
    ASS
    FAAC
    FFSERVER
    FREI0R
    ICONV
    LAME
    RTMP
    THEORA
    VORBIS
    VPX
    X264
    XVID
and time to add autostart:

Code: Select all

echo 'serviio_enable="YES"' >> /etc/rc.conf
echo serviio_args=\'-Dserviio.advertisementDuration=\"15\" -Dserviio.remoteHost=\"192.168.1.191\"\' >> /etc/rc.conf
Remember to use your serviio jail IP here.

Code: Select all

chown -R dlna:dlna /usr/local/etc/serviio
time to add servio to host in jail:

Code: Select all

ee /etc/hosts
add proper IP, in my example is:

Code: Select all

192.168.1.191       serviio.local

Code: Select all

chown -R dlna:dlna /var/db/serviio
chown -R dlna:dlna /var/log/serviio
chown -R dlna:dlna /usr/local/share/java/classes/serviio/
now you are ready to start serviio first time:

Code: Select all

/usr/local/etc/rc.d/serviio start
you can start, stop and see status so next command can be:

Code: Select all

/usr/local/etc/rc.d/serviio status

Code: Select all

root@serviio:/usr/local/share/java/classes/serviio # /usr/local/etc/rc.d/serviio status
serviio is running as pid 8329
root@serviio:/usr/local/share/java/classes/serviio #
PD: when start serviio perhaps have some warnnings like this:

Code: Select all

root@serviio:/usr/local/share/java/classes/serviio # /usr/local/etc/rc.d/serviio start
Starting serviio.
root@serviio:/usr/local/share/java/classes/serviio # java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:900)
        at net.padlocksoftware.padlock.validator.history.FileHistory.setEarliestRun(FileHistory.java:79)
        at net.padlocksoftware.padlock.validator.plugins.ExpiredPlugin.getFirstRun(ExpiredPlugin.java:170)
        at net.padlocksoftware.padlock.validator.plugins.ExpiredPlugin.validate(ExpiredPlugin.java:76)
        at net.padlocksoftware.padlock.validator.Validator.validate(Validator.java:343)
        at net.padlocksoftware.padlock.validator.Validator.validate(Validator.java:298)
        at org.serviio.licensing.LicenseValidator.validateLicense(LicenseValidator.java:105)
        at org.serviio.licensing.LicenseValidator.validateBundledLicense(LicenseValidator.java:124)
        at org.serviio.licensing.LicenseValidator.getCurrentLicense(LicenseValidator.java:74)
        at org.serviio.licensing.LicensingManager.updateLicense(LicensingManager.java:128)
        at org.serviio.licensing.LicensingManager.<init>(LicensingManager.java:103)
        at org.serviio.licensing.LicensingManager.getInstance(LicensingManager.java:113)
        at org.serviio.MediaServer.printLicenseInformation(MediaServer.java:266)
        at org.serviio.MediaServer.main(MediaServer.java:117)
java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createNewFile(File.java:900)
        at net.padlocksoftware.padlock.validator.history.FileHistory.setEarliestRun(FileHistory.java:79)
        at net.padlocksoftware.padlock.validator.plugins.ExpiredPlugin.getTimeRemaining(ExpiredPlugin.java:133)
        at net.padlocksoftware.padlock.validator.Validator.getTimeRemaining(Validator.java:367)
        at org.serviio.licensing.LicenseValidator.validateLicense(LicenseValidator.java:106)
        at org.serviio.licensing.LicenseValidator.validateBundledLicense(LicenseValidator.java:124)
        at org.serviio.licensing.LicenseValidator.getCurrentLicense(LicenseValidator.java:74)
        at org.serviio.licensing.LicensingManager.updateLicense(LicensingManager.java:128)
        at org.serviio.licensing.LicensingManager.<init>(LicensingManager.java:103)
        at org.serviio.licensing.LicensingManager.getInstance(LicensingManager.java:113)
        at org.serviio.MediaServer.printLicenseInformation(MediaServer.java:266)
        at org.serviio.MediaServer.main(MediaServer.java:117)
do not worry, serviio start fine if you see PID when do

Code: Select all

/usr/local/etc/rc.d/serviio status

Now is time to install HTML console, and time to ask others users how to do, I want to install like is described here, http://wiki.serviio.org/doku.php?id=how ... ll:freebsd
or here: http://forum.serviio.org/viewtopic.php?f=17&t=5330

some help is needed.
You do not have the required permissions to view the files attached to this post.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by raulfg3 »

to update of how install phpwebGUI
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by raulfg3 »

Reserved
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by alexey123 »

I not see any problem.
But I installed another way. Ffmpeg1 I install over portmaster
Apache22 I install from ports (only for check php module.)
Configure Appache for php - index and application type
Then add

Code: Select all

pkg_add -r php5-curl
pkg_add -r php5-xml
pkg_add -r php5-mbstring
pkg_add -r php5-simplexml
pkg_add -r php5-json
pkg_add -r php5-dom
Then

Code: Select all

pkg_add -r openjdk6
cd /usr/ports/net/serviio && make install clean
Unzip serviioweb-1.4 into /usr/local/www/apache22/data
And after

Code: Select all

apachectl start 
it work
Image

My phpinfo() output
Image

I not like serviio, I use minidlna.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by alexey123 »

For apache :
Add to loader.conf over webgui

Code: Select all

accf_http_load = "YES"
repair into /usr/local/etc/apache22/httpd.conf

Code: Select all

Listen <Your Jail Ip>:80

Code: Select all

<IfModule dir_module>
    DirectoryIndex index.php
</IfModule>
add 2 lines to section

Code: Select all

<IfModule mime_module>
# blablabla
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
For php:

Code: Select all

cp /path/2/jail/usr/local/etc/php.ini-production /path/2/jail/usr/local/etc/php.ini
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

tsrodger
Starter
Starter
Posts: 34
Joined: 17 Apr 2013 08:44
Location: Russia / St Petersburg
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by tsrodger »

My PHP errors from Web console 1.4b look like this

Image

Image
Fractal Design XL / ASUS P5K WS / Intel E6850 / 8GB / Intel EXPI9301CTBLK / Sil3114 / 9x HDD

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by alexey123 »

tsrodger May be serviio not running?
Invalid argument for foreach array only if array empty
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

tsrodger
Starter
Starter
Posts: 34
Joined: 17 Apr 2013 08:44
Location: Russia / St Petersburg
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by tsrodger »

alexey123 wrote: tsrodger May be serviio not running?
Invalid argument for foreach array only if array empty
It's right! Serviio was stopped, due to there was error in rc.conf (Serviio arguments in two line) and serviio could not start:

Code: Select all

serviio_args='-Dserviio.advertisementDuration="15
 -Dserviio.remoteHost="192.168.1.4"'
so i fixed this line to

Code: Select all

serviio_args='-Dserviio.advertisementDuration="15" -Dserviio.remoteHost="192.168.1.4"'
And now everything working fine! THNX

Image
Fractal Design XL / ASUS P5K WS / Intel E6850 / 8GB / Intel EXPI9301CTBLK / Sil3114 / 9x HDD

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by alexey123 »

I checked - lighttpd work also.
My install

Code: Select all

pkg_add -r lighttpd
Add lighttpd_enable="YES" to /etc/rc.conf
As config I use NAS4Free webserver config, NAS4Free file /var/etc/webserv.conf
I just replace document root

Code: Select all

server.document-root = "/usr/local/www/apache22/data/"
And cosmetical repair

Code: Select all

server.pid-file = "/var/run/lighttpd.pid"
cgi.assign = (".php" => "/usr/local/bin/php-cgi")
server.tag = "webserv"
server.upload-dirs = ( "/var/tmp" )
server.max-request-size = 2097152
server.bind = "10.0.0.19"
I attach my lighttpd.conf

But serviio need any console output, some /var/log/serviio/console.log
messages into log

Code: Select all

2013-09-17 09:00:39,888 WARN  [prefs] Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
2013-09-17 09:01:09,888 WARN  [prefs] Could not lock User prefs.  Unix error code 2.
I'll check it
Update.
This line present because I not add user dlna:dlna home folder. For jail repair it very simple.
Script for fast repair some problem, thanks for Steve Stonebraker.
I named it as check_user

Code: Select all

#!/bin/bash
#!/bin/bash
#
# Author: Steve Stonebraker
# name: check_home_directory_exist.sh
# usage: check_home_directory_exist.sh 
#
# description:  provide a user to the script and if their home directory doesn't exist it will be created
#
USER=$1
USER_HOMEDIR=$(cat /etc/passwd | grep ${USER} | cut -d":" -f6)

if [ ! -d "${USER_HOMEDIR}" ]; then
  mkdir ${USER_HOMEDIR}; chown -R ${USER}:${USER} ${USER_HOMEDIR}
  echo "${USER}'s home directory created"
else
  echo "${USER}'s home directory already exists"
fi
run it

Code: Select all

sh check_user dlna
Update 2
Need add program dcraw

Code: Select all

pkg_add -r dcraw
Now only 1 warning

Code: Select all

2013-09-17 12:16:11,524 WARN  [FFMPEGWrapper] FFmpeg is not compiled with librtmp support, RTMP streaming will not work.
but
ffmpeg1 -version | grep rtmp
configuration: --prefix=/usr/local --mandir=/usr/local/man --incdir=/usr/local/include/ffmpeg1 --libdir=/usr/local/lib/ffmpeg1 --shlibdir=/usr/local/lib/ffmpeg1 --datadir=/usr/local/share/ffmpeg1 --build-suffix=1 --progs-suffix=1 --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --disable-sse --disable-mmx --disable-libaacplus --disable-indev=alsa --disable-outdev=alsa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --disable-libcdio --disable-libcelt --enable-libfaac --disable-libfdk-aac --disable-fontconfig --disable-libfreetype --enable-frei0r --disable-gnutls --disable-libgsm --enable-iconv --enable-libmp3lame --disable-libbluray --disable-libv4l2 --disable-libmodplug --disable-openal --disable-libopencv --disable-libopenjpeg --disable-libopus --disable-libpulse --enable-librtmp --disable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-version3
You do not have the required permissions to view the files attached to this post.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

DiabloRnd
NewUser
NewUser
Posts: 2
Joined: 14 Nov 2013 07:22
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by DiabloRnd »

Hi.

I found a bug.
Once serviio started automatically when jail starts, File Encoding is set to ASCII and national characters in filenames is wrong.
After manual restart everything is OK and File Encoding is set to UTF-8.
I don't know why rc script don't see locale settings. But solution is to set parameter serviio_lang in rc.conf:

serviio_lang="en_US.UTF-8"

Perhaps, it will be useful for someone...

howi42
Starter
Starter
Posts: 17
Joined: 02 Jul 2012 03:41
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by howi42 »

1. How did you manage to get serviio to start automatically ?

I always have to login and do a 'service serviio start' manually to get it to run.

2. Setting the language in rc.conf does not seem to help for local characters.

Anything else I could try ?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by raulfg3 »

howi42 wrote:How did you manage to get serviio to start automatically ?
Enable serviio in your /etc/rc.conf file.

Code: Select all

serviio_enable="YES"
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

howi42
Starter
Starter
Posts: 17
Joined: 02 Jul 2012 03:41
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by howi42 »

That is my rc.conf :
sendmail_enable="NONE"
syslogd_flags="-ss"
rpc_bind="NO"
network_interfaces=""
cron_flags="$cron_flags -J 15"
serviio_enable="YES"

but that does not help.

howi42
Starter
Starter
Posts: 17
Joined: 02 Jul 2012 03:41
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by howi42 »

And this is serviio in rc.d :

#!/bin/sh

# $FreeBSD: ports/net/serviio/files/serviio.in,v 1.2 2012/01/14 08:56:27 dougb Exp $
#
# PROVIDE: serviio
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf[.local] to enable serviio:
#
# serviio_enable="YES"

. /etc/rc.subr

name=serviio
rcvar=serviio_enable
command=/usr/local/sbin/serviiod

load_rc_config $name

serviio_user=${serviio_user-"dlna"}

command_args=" &"

stop_cmd="$command -stop"

run_rc_command $1

goldhonda
NewUser
NewUser
Posts: 12
Joined: 03 Jun 2014 22:57
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by goldhonda »

Hi
Good guide and I have a working serviio server now thanks to this.
One thing I would like to know is where is the plugins folder now for the serviio groovy files ets.
Thanks

update added plugins folder to /usr/local/share/java/classes/serviio/ and now online stuff all woking. :)
update moved folder to /var/db/serviio/home/plugins

laster13
PowerUser
PowerUser
Posts: 995
Joined: 01 Jun 2013 19:15
Location: France-Marseille
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by laster13 »

hi

excuse my english, i'm french

i install jail with the brig then

Code: Select all

jexec 1 csh
root@serviio:/ #

Code: Select all

portsnap fetch extract
and

Code: Select all

cd /usr/ports/net/serviio/ && make install clean
i active the good options for ffmpeg

and i have error

Code: Select all

gmake[4]: Leaving directory `/usr/ports/devel/binutils/work/binutils-2.24/ld'
gmake[3]: Leaving directory `/usr/ports/devel/binutils/work/binutils-2.24/ld'
gmake[2]: Leaving directory `/usr/ports/devel/binutils/work/binutils-2.24/ld'
gmake[1]: Leaving directory `/usr/ports/devel/binutils/work/binutils-2.24'
gmake: *** [all] Error 2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/devel/binutils.
*** [install] Error code 1

Stop in /usr/ports/devel/binutils.
*** [build-depends] Error code 1

Stop in /usr/ports/multimedia/ffmpeg.
*** [install] Error code 1

Stop in /usr/ports/multimedia/ffmpeg.
*** [run-depends] Error code 1

Stop in /usr/ports/net/serviio.
root@lucien:/usr/ports/net/serviio #
thanks

mrjrussell
Starter
Starter
Posts: 48
Joined: 26 Jun 2012 04:31
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by mrjrussell »

I was having a problem with saving folders in the web ui

I used this page to install servviio but the following page to install the webUI (including using port master)
http://wiki.serviio.org/doku.php?id=how ... ll:freebsd

I found that you have to use the most current webui
http://forum.serviio.org/viewtopic.php?f=17&t=12593

https://github.com/SwoopX/Web-UI-for-Se ... io-1.5.zip
SGI Rackable NM46X, x64 Dual Processor - embedded on Dual-Core AMD Opteron(tm) Processor 8216 HE 16GB Ram -9.2.0.1 - Shigawire (rev 925)
My setup posting.php?mode=edit&f=63&t=179&p=363

mrjrussell
Starter
Starter
Posts: 48
Joined: 26 Jun 2012 04:31
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by mrjrussell »

Install Serviio WEB UI from http://wiki.serviio.org/doku.php?id=how ... ll:freebsd
Using current WEBUI file I can confirm this works.

First install portmaster.
portsnap fetch update
cd /usr/ports/ports-mgmt/portmaster && make install clean

Install Apache 2.4 and PHP5 prequisities for PHP WebUI Interface

Code: Select all

portmaster www/apache24
cd /usr/ports/lang/php5 && make config WITH_APACHE=YES
portmaster lang/php5 www/mod_php5 ftp/php5-curl textproc/php5-xml converters/php5-mbstring devel/php5-json textproc/php5-simplexml textproc/php5-dom
Fetch the current WebUI

Code: Select all

cd /tmp && fetch https://github.com/SwoopX/Web-UI-for-Serviio/archive/Serviio-1.5.zip
unzip -d /usr/local/www/apache24/data/ Serviio-1.5.zip
Configure httpd.conf file

Code: Select all

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/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/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^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

Optionally, update email contact and host/domain name and copy/paste the following in-place edits.
(I did not use this )

Code: Select all

perl -pwi -e 's^ServerAdmin you\@example\.com^ServerAdmin YOUR.EMAIL\@mydomain.name^g' httpd.conf
perl -pwi -e 's^#ServerName http://www.example.com:80^ServerName serviio.mydomain.name:80^g' httpd.conf
Activate Apache

Code: Select all

echo 'apache24_enable="YES"' >> /etc/rc.conf
apachectl start

Also when I installed serviio two folders had to be created before I could change ownership
So i would change this above

Code: Select all

chown -R dlna:dlna /var/db/serviio
chown -R dlna:dlna /var/log/serviio
chown -R dlna:dlna /usr/local/share/java/classes/serviio/
to

Code: Select all

mkdir /var/db/serviio
mkdir /var/log/serviio
chown -R dlna:dlna /var/db/serviio
chown -R dlna:dlna /var/log/serviio
chown -R dlna:dlna /usr/local/share/java/classes/serviio/
SGI Rackable NM46X, x64 Dual Processor - embedded on Dual-Core AMD Opteron(tm) Processor 8216 HE 16GB Ram -9.2.0.1 - Shigawire (rev 925)
My setup posting.php?mode=edit&f=63&t=179&p=363

Jabberwocky
Starter
Starter
Posts: 16
Joined: 10 Mar 2014 01:47
Status: Offline

Re: [HOWTO] Install Serviio 1.3.x from ports using TheBring

Post by Jabberwocky »

I installed the new 1.7 version, and notice that serviio frebsd guide was outdated, so update the guide. If anyone is interested to install lastest version (with support to transcoding multiple language =) ), can follow the mentioned guide:
http://wiki.serviio.org/doku.php?id=how ... ll:freebsd

Best regards.

Post Reply

Return to “Jails”