[ QApache 2.4.39 + PHP 7.2.29 ] WebServer with PHP and PECL

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
User avatar
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.38 + PHP 7.2.14 ] WebServer with PHP and PECL

Post by Toxic17 »

Thanks for the update Stephane!

just wondering if you have considered 7.3.x branch yet?
Regards Simon

Qnap Downloads
MyQNap.Org Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QApache 2.4.38 + PHP 7.2.15 ] WebServer with PHP and PECL

Post by QNAP_Stephane »

YW Simons...

here updated php core to 7.2.15
and upgraded Postgresql to 11.1
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
User avatar
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.38 + PHP 7.2.15 ] WebServer with PHP and PECL

Post by Toxic17 »

Stephane could you update OpenSSL next time round. the newer OpenSSL 1.1.1 supports TLS v1.3

thanks
Regards Simon

Qnap Downloads
MyQNap.Org Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QApache 2.4.38 + PHP 7.2.15 ] WebServer with PHP and PECL

Post by QNAP_Stephane »

Toxic17 wrote: Sat Feb 16, 2019 5:53 am Stephane could you update OpenSSL next time round. the newer OpenSSL 1.1.1 supports TLS v1.3

thanks
need to check if feasible without to have to recompile all
last time i tried APR and APR-UTIL didnt support it, making apache wont load
was with 1.1.0, if i remember, may be it changed... i need to try
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QApache 2.4.38 + PHP 7.2.16 ] WebServer with PHP and PECL

Post by QNAP_Stephane »

updated to php 7.2.16

no time to check yet to upgrade openssl branch
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
User avatar
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.38 + PHP 7.2.16 ] WebServer with PHP and PECL

Post by Toxic17 »

QNAP_Stephane wrote: Wed Mar 06, 2019 1:19 am updated to php 7.2.16

no time to check yet to upgrade openssl branch
Thanks for the update Stephane!
Regards Simon

Qnap Downloads
MyQNap.Org Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
Bestellungen
Starting out
Posts: 10
Joined: Fri Mar 22, 2019 5:38 am

Re: [ QApache 2.4.38 + PHP 7.2.16 ] WebServer with PHP and PECL

Post by Bestellungen »

Qapache doesn't start on ts-673. I think its the mod_ssl problem. It is running with mod_ssl disabled. But i want to have ssl. I need the Qapache for Nextcloud.
Does anyone know how to solve this problem?
User avatar
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.38 + PHP 7.2.16 ] WebServer with PHP and PECL

Post by Toxic17 »

Firstly, can you confirm you have a default installation without any modification to ANY Qapache files? ie install Qapache from nothing, and open QApache from the app center. does it not load?

what does your Apache logs show?

I cannot see why it would not run on a 673 is uses the same architecture as most NASes - x86

if you have edited any files, then that is why the app will not start.
Regards Simon

Qnap Downloads
MyQNap.Org Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
Bestellungen
Starting out
Posts: 10
Joined: Fri Mar 22, 2019 5:38 am

Re: [ QApache 2.4.38 + PHP 7.2.16 ] WebServer with PHP and PECL

Post by Bestellungen »

Toxic17 wrote: Fri Mar 22, 2019 3:32 pm Firstly, can you confirm you have a default installation without any modification to ANY Qapache files? ie install Qapache from nothing, and open QApache from the app center. does it not load?
This is what i did several times and it doesn't load. Its a brand-new TS-473 Newest QTS without any modification.

I found this
"Known issue :

for unknown reason mod_ssl avoid Qapache Starting on x73 series"

I disabled mod_ssl in httpd.conf and immediately the web server was reachable on port 88.
User avatar
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.38 + PHP 7.2.16 ] WebServer with PHP and PECL

Post by Toxic17 »

you could possibly try Caddy instead of QApache.

viewtopic.php?f=320&t=139499

then use the Caddy Example as a template for your webserver. Caddy is by default a HTTPS webserver. - also compiled by Stephane.

https://github.com/caddyserver/examples ... /nextcloud
Regards Simon

Qnap Downloads
MyQNap.Org Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QApache 2.4.38 + PHP 7.2.16 ] WebServer with PHP and PECL

Post by QNAP_Stephane »

New Qapache version rebuilt... with php 7.2.17Rc1

working on x73, all libs updated ... running now under openssl 1.1.1b
added some extensions (but not started)

I need do several tests before publish it
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QApache 2.4.38 + PHP 7.2.16 ] WebServer with PHP and PECL

Post by QNAP_Stephane »

seems running on 4.4.x FW as well...

think to publish it soon... need to fix 2 or 3 little things

i cannot assure that update from previous version will runs, may be a complete reinstall will be better
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QApache 2.4.38 + PHP 7.2.16 ] WebServer with PHP and PECL

Post by QNAP_Stephane »

pre-release x64 version downloadable at :

http://www.qoolbox.fr/Qapache_2438.7216 ... 4.qpkg.zip

Code: Select all

All libs and extension updated to latest version
move to OpenSSL 1.1.1b (branch)
fixed Qapache do not start on x73 series (due to mod_ssl)
php core updated to 7.2.17RC1

extension added :

gender
igbinary
lzf
seaslog
taint
xmldiff
xmlreader
xmlwriter

Known issue

libsodium extension error

---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
User avatar
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.38 + PHP 7.2.16 ] WebServer with PHP and PECL

Post by Toxic17 »

Thanks Stephane. So TLS 1.3 now supported?

btw received error in installing via cli.

Code: Select all

[/share/Public] # sh Qapache_2438.72161_x86_64.qpkg
Install QNAP package on TS-NAS...
./
./built_info
./qinstall.sh
./package_routines
./qpkg.cfg
19200+1 records in
19200+1 records out
471287244 bytes (449.5MB) copied, 2.494594 seconds, 180.2MB/s
460241+1 records in
460241+1 records out
471287244 bytes (449.5MB) copied, 2.495593 seconds, 180.1MB/s
Firmware check is fine.
Link service start/stop script: Qapache.sh
Set QPKG information in /etc/config/qpkg.conf
/usr/bin/perl exists
/etc/ssl/ca-bundle.crt exists
share htdocs exists in your share
file index.html exists in your share htdocs
file test.php exists in your share htdocs
directory htdocs/cgi-bin exists in your share
Apache admin exists in htdocs
Generating a RSA private key
...............+++++
................+++++
writing new private key to '/share/CACHEDEV1_DATA/.qpkg/Qapache/etc/server.key'
-----
PHP Warning:  PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /opt/Qapache/lib/extensions/no-debug-zts-20170718/sodium.so (/opt/Qapache/lib/libsodium.so.23: undefined symbol: randombytes_getrandom), /opt/Qapache/lib/extensions/no-debug-zts-20170718/sodium.so.so (/opt/Qapache/lib/extensions/no-debug-zts-20170718/sodium.so.so: cannot open shared object file:No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'rar' already loaded in Unknown on line 0
All settings correct for using Composer
Downloading...

Composer (version 1.8.4) successfully installed to: /share/CACHEDEV1_DATA/.qpkg/Qapache/bin/composer
Use it: php /opt/Qapache/bin/composer

[/share/Public] # shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[/share/Public] #
new beta is running am just checking log files.

ok.

duplicate entry in php.ini of:

extension=rar.so

it maybe worth checking your own log files.
Regards Simon

Qnap Downloads
MyQNap.Org Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-673A QuTS hero h5.1.2.2534 • TS-121 4.3.3.2420 • APC Back-UPS ES 700G
Network: VM Hub3: 500/50 • UniFi UDM Pro: 3.2.9 • UniFi Network Controller: 8.0.28
USW-Aggregation: 6.6.61 • US-16-150W: 6.6.61 • 2x USW Mini Flex 2.0.0 • UniFi AC Pro 6.6.62 • UniFi U6-LR 6.6.62
UniFi Protect: 2.11.21/8TB Skyhawk AI • 3x G3 Instants: 4.69.55 • UniFi G3 Flex: 4.69.55 • UniFi G5 Flex: 4.69.55
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QApache 2.4.38 + PHP 7.2.16 ] WebServer with PHP and PECL

Post by QNAP_Stephane »

not sure for TLS 1.3 but at least latest openssl branch and release is embedded

will check libsodium and rar in next final version when php 7.2.17 will be officialy released
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
Post Reply

Return to “Community Apps”