Qnap [ Qapache + PHP 7.2.26 ] [ 2.4.39 ] Apache WebServer + PHP + Extensions

How do I use PHP7 from Qapache instead of the default PHP5 from qnap?
When I tried to run a php file using
Code:
/share/CACHEDEV1_DATA/.qpkg/Qapache/bin/php -f file.php
I get
PHP Warning: Module 'memcached' already loaded in Unknown on line 0
PHP Warning: Module 'imagick' already loaded in Unknown on line 0
PHP Warning: Module 'PDO' already loaded in Unknown on line 0
PHP Warning: Module 'pdo_dblib' already loaded in Unknown on line 0
PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0
PHP Warning: Module 'PDO_ODBC' already loaded in Unknown on line 0
PHP Warning: Module 'pdo_pgsql' already loaded in Unknown on line 0
PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning: Module 'apcu' already loaded in Unknown on line 0
PHP Warning: Module 'timezonedb' already loaded in Unknown on line 0
PHP Warning: Module 'raphf' already loaded in Unknown on line 0
PHP Warning: Module 'propro' already loaded in Unknown on line 0
PHP Warning: Module 'xattr' already loaded in Unknown on line 0
PHP Warning: Module 'solr' already loaded in Unknown on line 0
PHP Warning: Module 'hrtime' already loaded in Unknown on line 0
PHP Warning: Module 'mailparse' already loaded in Unknown on line 0
PHP Warning: Module 'hprose' already loaded in Unknown on line 0
PHP Warning: Module 'scrypt' already loaded in Unknown on line 0
PHP Warning: Module 'xxtea' already loaded in Unknown on line 0
PHP Warning: Module 'krb5' already loaded in Unknown on line 0
PHP Warning: Module 'swoole' already loaded in Unknown on line 0
PHP Warning: Module 'dba' already loaded in Unknown on line 0
PHP Warning: Module 'ev' already loaded in Unknown on line 0
PHP Warning: Module 'eio' already loaded in Unknown on line 0
PHP Warning: Module 'OAuth' already loaded in Unknown on line 0
PHP Warning: Module 'xdebug' already loaded in Unknown on line 0
PHP Warning: Module 'redis' already loaded in Unknown on line 0
PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0

is there anyway to disable the default QNAP php from loading and use the one from Qapache?
 
this is just warning because i forced the extension loading inside the php.ini

not sure how to make php7 working with the current Qnap Apache directly...
may be try to tweak the Qnap httpd.conf but not sure for the side effect
 
yanuk a dit:
is there anyway to disable the default QNAP php from loading and use the one from Qapache?
I doubt it, but not sure why you are trying to make it more difficult for yourself. Qapache is setup by default to use /share/htdocs/ so I would strongly suggest using it that way.
 
I'm currently facing a problem when using NextCloud 12 with Qapache's php7. (both fantastically compiled by stephane! thank you!)
I keep getting the error that xdebug is not found when running cron jobs
Xdebug MUST be loaded as a Zend extension at Unknown#0

I'm was pretty sure it's related to
PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0

Is there something I can define to ensure that Xdebug is loaded as a Zend extension?
 
version arm-x41 added with some bonus

Code:
Mongod Extension
Yaml Extension
RabbitMqt Extension (amqp.so)

this extensions will be added later on Intel/AMD x64 version
 
il a un problème avec la dernière version ?
j'ai ce message d'erreur a l'install '[App Center] App install failed due to file format error."
 
Stephane

have you seen this:

https://arstechnica.com/information-technology/2017/09/apache-bug-leaks-contents-of-server-memory-for-all-to-see-patch-now/

https://blog.fuzzing-project.org/60-Optionsbleed-HTTP-OPTIONS-method-can-leak-Apaches-server-memory.html

not sure if this is affecting 2.4.27 though
 
QoolBox a dit:
thanks.. but cant say

seems there are no update from Apache Website neither on Github...

it appears there is only a patch,

https://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/server/core.c?r1=1805223&r2=1807754&pathrev=1807754&view=patch

dont think however is it a really big deal breaker.
 
Hi Simon,

seems easy to apply but require a full cross compilation again for apache

do you know if Apache will publish soon a 2.4.28 with this patch ? i am worry about my internal versioning
 
QoolBox a dit:
Hi Simon,

seems easy to apply but require a full cross compilation again for apache

do you know if Apache will publish soon a 2.4.28 with this patch ?

Hi Stephane,

Sorry for the belated reply. I am no sure of when the next 2.4.28 version is out. Changelog does show this patch though in the next release..

https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x/CHANGES

*) SECURITY: CVE-2017-9798 (cve.mitre.org)
Corrupted or freed memory access. <Limit[Except]> must now be used in the
main configuration file (httpd.conf) to register HTTP methods before the
.htaccess files. [Yann Ylavic]

I would guess this would be released sooner rather than later

QoolBox a dit:
i am worry about my internal versioning

Perhaps 2.4.27p.719 ?

PHP 7.1.10 is due out 28 Sep 2017.
 
QoolBox a dit:
I am asking to Cris from QnapClub if this versioning, may create problem on Repo...

Patch is out here:

http://www.apache.org/dist/httpd/patches/apply_to_2.4.27/

no sign of when 2.4.28 is out though.