Page 1 of 1

php-exif

Posted: 27 Apr 2014 08:37
by russian
Hi.

How to add php5-exif package, and not to crash the webGUI ?

Thanx.

Re: php-exif

Posted: 04 Oct 2014 13:52
by russian
Bump.

Is there some way to install php5-exif on my .972 nas4free and not to crash webGUI ?

Full install!

Thanx.

Re: php-exif

Posted: 05 Oct 2014 15:06
by russian
I'm trying to do:

# pkg_add -r php5-exif
# mv /usr/local/bin/php /usr/local/bin/php-cli
# cp /usr/local/bin/php-cgi /usr/local/bin/php

But everything crashes every time and I need to restore from backup.

Re: php-exif

Posted: 05 Oct 2014 16:51
by fumantsu
Try to stop first lighttpd and websrv. /etc/rc.d/websrv stop; /etc/rc.d/lighttpd stop

Re: php-exif

Posted: 05 Oct 2014 17:00
by russian

Code: Select all

nas4free: russian # /etc/rc.d/websrv stop
Stopping websrv.
Waiting for PIDS: 1910.
nas4free: russian # /etc/rc.d/lighttpd stop
Stopping lighttpd.
Waiting for PIDS: 2680.
nas4free: russian # pkg_add -r php5-exif
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.2-release/Latest/php5-exif.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.2-release/All/pkgconf-0.9.2_1.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.2-release/All/pcre-8.33.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.2-release/All/libxml2-2.8.0_2.tbz... Done.
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.2-release/All/php5-5.4.17.tbz... Done.
nas4free: russian # cd /usr/local/bin
nas4free: bin # ls -l php*
-rwxr-xr-x  1 root  wheel  3964468 Aug 12  2013 php
-rwxr-xr-x  1 root  wheel  3945905 Aug 12  2013 php-cgi
-r-xr-xr-x  1 root  wheel      392 Apr 28 03:59 php-cgi-websrv
-rwxr-xr-x  1 root  wheel     2495 Aug 12  2013 php-config
-rwxr-xr-x  1 root  wheel     4528 Aug 12  2013 phpize
nas4free: bin # /etc/rc.d/lighttpd start
Starting lighttpd.
nas4free: bin # /etc/rc.d/websrv start
Starting websrv.
In browser:

http://10.10.10.101/index.php
Fatal error: Call to undefined function session_start() in /etc/inc/session.inc on line 55

Code: Select all

nas4free: bin # mv /usr/local/bin/php /usr/local/bin/php-cli
nas4free: bin # cp /usr/local/bin/php-cgi /usr/local/bin/php
Doesn't change anything.

Re: php-exif

Posted: 18 Nov 2014 15:19
by alexey123
Hi.
If you want add any function for php read in first my post viewtopic.php?f=48&t=1650

As result - you need full reinstall php and then add your php-exif

also this

Code: Select all

nas4free: bin # mv /usr/local/bin/php /usr/local/bin/php-cli
nas4free: bin # cp /usr/local/bin/php-cgi /usr/local/bin/php
no need more