Installation

[WORK IN PROGRESS]

This installation guide uses gentoo like OS and is tested to work also in a virtual machine. To install a virtual machine in a Debian environment, you can follow these guides. 1) https://wiki.debian.org/LXC#Installation 2) https://wiki.debian.org/LXC/SimpleBridge#Using_lxc-net

Installation on Gentoo

$ emerge eix
$ emerge sudo
$ emerge -av mediainfo
$ emerge -av exiftool
$ emerge imagemagick
$ USE="-drm -opengl" emerge -av ufraw
$ emerge -av mysql
$ emerge --config dev-db/mysql

Insert your password and remember it!

$ nano /etc/portage/make.conf

Add this configuration to make.conf:

## /etc/portage/make.conf

# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
# Use the same settings for both variables
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j17"
# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
CPU_FLAGS_X86='aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3'
USE="bindist mmx sse sse2 mmxext sse4_1 sse4_2 ssse3 x265 jpeg2k mp3 \
-opengl -drm opus oss postproc bluray rtmp schroedinger sdl theora v4l vorbis x264 xvid zlib \
jpeg tiff png faac network aac aacplus alsa amr amrenc \                                                                                                                     
lm_sensors libcaca gnutls vaapi ffmpeg apache2 -X"
GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"

Add this configuration to php:

dev-lang/php acl apache2 bcmath berkdb bzip2 cdb cgi cjk cli crypt ctype curl fileinfo filter ftp gd gdbm gmp hash iconv ipv6 json mysql mysqli nls odbc opcache pdo phar posix readline session simplexml ssl tokenizer unicode xml xmlreader xmlrpc xmlwriter zip zlib

These are the packages that would be merged, in order:

Calculating dependencies... done! [ebuild N ] dev-libs/oniguruma-6.7.1:0/4::gentoo USE="-combination-explosion-check -crnl-as-line-terminator -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB [ebuild N ] dev-db/unixODBC-2.3.5-r1::gentoo USE="minimal unicode -odbcmanual -static-libs" ABI_X86="(64) -32 (-x32)" 1,596 KiB [ebuild N ] dev-libs/libmcrypt-2.5.8-r4::gentoo 0 KiB [ebuild N ] dev-lang/nasm-2.13.01::gentoo USE="-doc" 0 KiB [ebuild N ] dev-db/cdb-0.75-r4::gentoo 53 KiB [ebuild N ] app-eselect/eselect-php-0.9.4-r5::gentoo USE="apache2 -fpm" 0 KiB [ebuild N ] media-libs/libjpeg-turbo-1.5.1::gentoo USE="-java -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB [ebuild N ] virtual/jpeg-0-r2::gentoo USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB [ebuild N ] dev-lang/php-5.6.35-r1:5.6::gentoo USE="acl apache2 bcmath berkdb bzip2 cdb cgi cjk cli crypt ctype curl fileinfo filter ftp gd gdbm gmp hash iconv ipv6 json mysql mysqli nls odbc opcache pdo phar posix readline session simplexml ssl tokenizer unicode xml xmlreader xmlrpc xmlwriter zip zlib -calendar -coverage -debug -embed -enchant -exif (-firebird) -flatfile -fpm -imap -inifile -intl -iodbc -kerberos -ldap -ldap-sasl -libedit -libmysqlclient -libressl -mhash -mssql -oci8-instant-client -pcntl -postgres -qdbm -recode (-selinux) -sharedmem -snmp -soap -sockets -spell -sqlite -sybase-ct -systemd -sysvipc -threads -tidy -truetype -vpx -wddx -xpm -xslt" 12,175 KiB

Total: 9 packages (9 new), Size of downloads: 13,823 KiB

Would you like to merge these packages? [Yes/No]

[Type yes if sodisfied]

Add this line to file mysql:

dev-db/mysql extraengine

Uncomment %wheel ALL=(ALL) NOPASSWD: ALL Uncomment %sudo ALL=(ALL) ALL

If you emerge also php7. in a new SLOT (cfr. portage) is necessary to verify wich ambient is set with. This version of software require php 5.6

Add at the finish, in line APACHE2_OPTS

-D PHP

Add and change in php.ini: error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE display_errors = On date.timezone = "Europe/Rome"

Add this line media-video/ffmpeg openh264 libv4l -drm -opengl x11-libs/libva -drm -opengl

Add after ServerName DocumentRoot /var/www/localhost/htdocs/Kegmmav/public_html

Last updated