Page 3 of 50

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Sun Sep 11, 2016 8:29 pm
by CylonCenturion
QNAP_Stephane wrote:x64 version added for true x64 system (or FW 4.3.x )

all libs updated + php 7.0.10
Thanks,
But i am clueless how to use it in combination with
1- phpmyadmin
2- spotweb.

Both apps requesting either a path or complaining that there is no access to whatever dir.

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Thu Sep 15, 2016 12:58 pm
by winniecoffee
I was successfully install Qapache package (Qapache_2.4.23.0_x86.qpkg).

After editing /opt/Qapache/etc/httpd.conf and want to restart it from ssh client.

I accidentally execute command below:
/opt/Qapache/Qapache.sh restart
(error message shows up)

Now I couldn't see /opt/Qapache in my folder

(p.s. /opt folder only contains one file -- nasconfig_fs.img.tgz)

What does Qapache.sh do in QNAP system?
And what should I do right now?! (Can I reinstall package?)
Please help me out! Thank you


-------- Solution Update (2016/9/15)--------

I add back symbolic link:

Code: Select all

ln -sf /share/CACHEDEV1_DATA/.qpkg/Qapache /opt/Qapache
Start Qapache service:

Code: Select all

/opt/Qapache/bin/httpd -f /opt/Qapache/etc/httpd.conf -k start
Work again!!!

Hope this also help others if done the same thing as I did. XD

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Mon Sep 26, 2016 1:11 am
by CarpeDiem
Tout dabord, merci Stéphane !!!
I installed the package and finally a version of apache and php updated on my NAS, FINALLY !
but when I try to connect using https on port 448, nothing, no error, nothing like if the server is actually not listening the port, any idea ?

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Fri Oct 14, 2016 4:28 pm
by dkorbee
I installed the "Apache 2.4.23 + PHP 7.0.10 + PECL Extension" on my TS-653 Pro with firmware v4.2.2 build 20160901
Unfortunately I cannot connect to the Qapache webserver after (re)starting Qapache App.

When I try to start the Qapache service from CLI I get the following error:

[~] # ln -sf /share/CACHEDEV1_DATA/.qpkg/Qapache /opt/Qapache
[~] # /opt/Qapache/bin/httpd -f /opt/Qapache/etc/httpd.conf -k start
/opt/Qapache/bin/httpd: error while loading shared libraries: librt.so.1: wrong ELF class: ELFCLASS32

I think it has something to do with files for the wrong architecture.

I installed the x64 version on my TS-653 Pro, which should be a true x64 system. Or am I wrong?

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Fri Oct 14, 2016 6:08 pm
by QNAP_Stephane
you wrong, unless you have firmware 4.3 ;)

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Mon Oct 17, 2016 1:24 am
by iamklaus
Same problem here! Exact the same messages!
dkorbee wrote:I installed the "Apache 2.4.23 + PHP 7.0.10 + PECL Extension" on my TS-653 Pro with firmware v4.2.2 build 20160901
Unfortunately I cannot connect to the Qapache webserver after (re)starting Qapache App.

When I try to start the Qapache service from CLI I get the following error:

[~] # ln -sf /share/CACHEDEV1_DATA/.qpkg/Qapache /opt/Qapache
[~] # /opt/Qapache/bin/httpd -f /opt/Qapache/etc/httpd.conf -k start
/opt/Qapache/bin/httpd: error while loading shared libraries: librt.so.1: wrong ELF class: ELFCLASS32

I think it has something to do with files for the wrong architecture.

I installed the x64 version on my TS-653 Pro, which should be a true x64 system. Or am I wrong?

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Mon Oct 17, 2016 1:27 am
by QNAP_Stephane
same problem, same answer ...

;)

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Wed Oct 19, 2016 2:58 am
by dkorbee
@QNAP_Stephane: So you say that 64 bit capable QNAP NAS like TS-653 PRO will be a TRUE 64 bit system only from QTS firmware 4.3, is that right ?

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Thu Oct 20, 2016 12:54 am
by QNAP_Stephane
dkorbee wrote:@QNAP_Stephane: So you say that 64 bit capable QNAP NAS like TS-653 PRO will be a TRUE 64 bit system only from QTS firmware 4.3, is that right ?
YES !!! ;)

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Wed Oct 26, 2016 6:10 pm
by DJCMBear
I have finally fully switched my server over to Qapache ( thanks for the work you put in to create it ), I noticed there was a mod_http2.so file but wasn't included in the config file, after I included it and setup the correct protocols I don't see my requests being upgraded to h2 or h2c, has http2 been fully added or is that why it wasn't included due to no support currently?

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Wed Oct 26, 2016 6:13 pm
by QNAP_Stephane
mmmm no idea ... dont know how setup this

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Wed Oct 26, 2016 6:51 pm
by DJCMBear
QNAP_Stephane wrote:mmmm no idea ... dont know how setup this
I will do some more research into it and see what I come up with, if I do find anything that works I will post back here for a future release, however I am not sure how long it will take, hopefully you come across something yourself when you bring out a new release if I haven't responded in time.

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Wed Oct 26, 2016 9:07 pm
by DJCMBear
I did some research and it turns out in order to get the mod_http2 module to work with apache, the nghttp2 c library needs to be installed ( https://nghttp2.org/ ).

I myself wouldn't know where to begin with qnaps packaging system but if you could find a way to package it with the Qapache package everyone would be able to
convert their web servers to use the http2 protocol over http1.1, would it be possible to get a version of the php 7.0.9 version of the Qapache package with this included?

If this works maybe in all future releases you can include http2 for the modern web, I so can't wait for qnap to publish QTS 4.3 for the consumer so I can start using the 64bit version.

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Thu Oct 27, 2016 1:27 am
by QNAP_Stephane
should be include.. look at the phpinfo() on the Curl module nghttp2 flag is set YES (fox 86 and x64 version)

Re: [ QApache 2.4.23 + PHP 7.0.9 ] WebServer and more

Posted: Thu Oct 27, 2016 4:16 am
by DJCMBear
Can I be cheeky and ask if you could create a qpkg/ipkg/opkg for the v1.16.0 of https://nghttp2.org/ I tried myself on my server and I can't seem to make it work, I went through the configure, make and make install process using gcc and still nothing, If I can get libnghttp2 installed and working on my server, and have Qapache see it is installed I can do the rest myself, I haven't compiled many things on servers without a walkthrough, with a qnap it is much harder due to the busybox restrictions.

I have a TVS-871, not sure if that information is needed at all for you to compile it, that's if you will.