Page 1 of 2

How do I install missing PHP modules (intl)?

Posted: Sun Oct 20, 2019 11:46 pm
by ParaDice
Hello there,

I have much anticipated the recent update to PHP Version 7.3.7, but it's still giving me major headaches.

I want to run an owncloud 10.3 server on a TS-251A (QTS 4.4.1.1086), but it won't run because it is missing the PHP module intl, which is required for owncloud.

Hence my question: How do I install missing php modules on my QNAP NAS?

Re: How do I install missing PHP modules (intl)?

Posted: Wed Oct 23, 2019 2:51 am
by Torti
Same problem here, how to install intl, apcu,imagik... ?

Re: How do I install missing PHP modules (intl)?

Posted: Fri Nov 08, 2019 9:25 pm
by Flyingfufu
Will be interested too, for the same reason...

Re: How do I install missing PHP modules (intl)?

Posted: Sat Mar 14, 2020 3:11 pm
by bradipo69
Hi
have you find a solution?
Tanks

Re: How do I install missing PHP modules (intl)?

Posted: Sun Mar 15, 2020 12:10 am
by wayne61
Hi,
I'm running QTS 4.4.1 with PHP 7.3.7 and want to install/active the int module.

Anyone got a solution?
thanks

Re: How do I install missing PHP modules (intl)?

Posted: Fri Apr 24, 2020 11:52 pm
by datorexpert
No success yet?

Re: How do I install missing PHP modules (intl)?

Posted: Sat May 02, 2020 8:12 pm
by ronaldkuijper
Hello

I'm looking for a solution to the same question. How do I activate php_intl
I run a 453B with QTS 4.4.2 and using PHP 7.3.7

thanks in advance

Re: How do I install missing PHP modules (intl)?

Posted: Fri May 08, 2020 5:37 am
by Punkt
Hello,
i have the same problem. I need php_intl for a Nextcloud Installation on Qnap TS-253Be, QTS 4.4.2, PHP 7.3.7.

thx

Re: How do I install missing PHP modules (intl)?

Posted: Thu May 21, 2020 3:40 pm
by RedPaul65
Hello,
i have the same problem. I need php_intl too into my QTS 4.4.2.1310 and using PHP 7.3.7.
thx

Re: How do I install missing PHP modules (intl)?

Posted: Sun Jul 05, 2020 4:13 am
by blablub233
did anyone have luck so far?

Re: How do I install missing PHP modules (intl)?

Posted: Sun Jul 05, 2020 4:19 am
by datorexpert
No!

Re: How do I install missing PHP modules (intl)?

Posted: Sun Jul 05, 2020 4:35 am
by jaysona
The module is available via entware.

Code: Select all

[~] # opkg list 
...
php7-mod-intl - 7.1.12-3 - Internationalization Functions shared module
...

Re: How do I install missing PHP modules (intl)?

Posted: Sun Jul 05, 2020 6:59 am
by blablub233
Hi jaysona,

I just found Entware, installed the opkg package (opkg install php7-mod-intl) without any errors. But still can't install ownclound as the original poster.
I added in the php.ini the line "extension=intl". I also put a user.ini and or php.ini in the owncloud folder and restarted the qnap webserver (QThttpd.sh). still no luck. any thoughts?

opkg shows also "php7-mod-intl - 7.4.6-1" installed. is 7.4.6 the php version?? maybe that's the issue. Qnaps webserver runs on 7.3.7

Re: How do I install missing PHP modules (intl)?

Posted: Sun Jul 05, 2020 7:49 am
by jaysona
blablub233 wrote: Sun Jul 05, 2020 6:59 am Hi jaysona,

I just found Entware, installed the opkg package (opkg install php7-mod-intl) without any errors. But still can't install ownclound as the original poster.
I added in the php.ini the line "extension=intl". I also put a user.ini and or php.ini in the owncloud folder and restarted the qnap webserver (QThttpd.sh). still no luck. any thoughts?

opkg shows also "php7-mod-intl - 7.4.6-1" installed. is 7.4.6 the php version?? maybe that's the issue. Qnaps webserver runs on 7.3.7
Ummmm........I thought php modules extensions ended with a .so. The files installed would be listed as part of the opkg installation process, and there shoul dhave been at least one file ending in .so that was installed.

You would need to modify your php.ini file to include the new module extension, and also make sure the proper symlinks are in place.

Re: How do I install missing PHP modules (intl)?

Posted: Sun Nov 15, 2020 12:40 am
by JensBr
Hello,

i add successfully apcu and intl to my ts-453A internal php.

following steps:
  1. create new share folder
    • create new share folder, only access for admin and hide in network
    • i my case the name is "ext_lib" -> after create the path is /share/ext_lib
    • i create 3 folders in /share/ext_lib with chmod 755:

      Code: Select all

      /share/ext_lib/etc/config/php.d
      /share/ext_lib/usr/local/lib
      /share/ext_lib/usr/local/apache/modules
      
  2. load extensions (qts is x86_64)

    http://mirror.centos.org/centos/7/sclo/ ... x86_64.rpm
    http://mirror.cisp.com/CentOS/7/sclo/x8 ... x86_64.rpm
    • extract both
    • copy *.so files to /share/ext_lib/usr/local/apache/modules and chmod 755
    • change in intl.ini the line with:

      Code: Select all

      extension=intl.so
      to

      Code: Select all

      extension=/share/ext_lib/usr/local/apache/modules/intl.so
      and in apcu.ini the line with:

      Code: Select all

      extension=apcu.so
      to

      Code: Select all

      extension=/share/ext_lib/usr/local/apache/modules/apcu.so
    • copy *.ini files to /share/ext_lib/etc/config/php.d and chmod 755
  3. check dependencies for *.so
    • ssh needed
    • login, press q and then y to input commands
    • check *.so:

      Code: Select all

      ldd /share/ext_lib/usr/local/apache/modules/apcu.so
      ldd /share/ext_lib/usr/local/apache/modules/intl.so
      

      -> if there an dependency with "not found" you have to install them -> in may case is was libicu*50.so
continue...