[ 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
CylonCenturion

Re: [ QApache 2.4.27 + PHP 7.1.8 ] WebServer and more

Post by CylonCenturion »

Toxic17 wrote:
CylonCenturion wrote:Where is php.ini located?
I need to edit that file, for the sacke of owncloud.

Code: Select all

The PHP OPcache is not properly configured. For better performance we recommend to use following settings in the php.ini:
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
/share/CACHEDEV1_DATA/.qpkg/Qapache/etc

restart QApache to allow changes to be reloaded.
Thans Simon! :D
Regards, Evert
chandlerbing
Starting out
Posts: 17
Joined: Tue Feb 07, 2017 5:45 am

Re: [ QApache 2.4.27 + PHP 7.1.8 ] WebServer and more

Post by chandlerbing »

Is there any chance that the php modules from this qpkg (the *.so files) would work with the built-in QNAP Web server if copied over to the correct directory?

I'm desperately trying to stick to the built-in server so my colleagues can use QTS to configure virtual hosts. However, compiling new PHP extensions seems to be a real issue on these NAS's.
User avatar
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.27 + PHP 7.1.8 ] WebServer and more

Post by Toxic17 »

Just use the vhosts conf file in the extras folder for virtual hosts

/share/CACHEDEV1_DATA/.qpkg/Qapache/etc/extra/httpd-vhosts.conf

then in httpd.conf enable the new file by removing the ~ on this line:

Code: Select all

# Virtual hosts
Include etc/extra/httpd-vhosts.conf
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
chandlerbing
Starting out
Posts: 17
Joined: Tue Feb 07, 2017 5:45 am

Re: [ QApache 2.4.27 + PHP 7.1.8 ] WebServer and more

Post by chandlerbing »

Thanks - I'm aware of that, I was just hoping that I could get away with sticking on the current web server as my needs aren't very complex. I jsut want to know if I can uset eh PHP modules here with the m=built-in server instead - but I'm guessing the answer is no due to different PHP versions?
chandlerbing
Starting out
Posts: 17
Joined: Tue Feb 07, 2017 5:45 am

Re: [ QApache 2.4.27 + PHP 7.1.8 ] WebServer and more

Post by chandlerbing »

Sorry for so many questions, but I can't seem to get into the web admin page. The /Apache page is blank and I don't see any files in the htdocs share I created.
User avatar
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.27 + PHP 7.1.8 ] WebServer and more

Post by Toxic17 »

chandlerbing wrote:Sorry for so many questions, but I can't seem to get into the web admin page. The /Apache page is blank and I don't see any files in the htdocs share I created.
are you using the default port of 88 ?

https://nas-ip-address:88
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
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.27 + PHP 7.1.8 ] WebServer and more

Post by Toxic17 »

chandlerbing wrote:Thanks - I'm aware of that, I was just hoping that I could get away with sticking on the current web server as my needs aren't very complex. I jsut want to know if I can uset eh PHP modules here with the m=built-in server instead - but I'm guessing the answer is no due to different PHP versions?

unless you re-write the virtual hosts gui page as they are coded to the internal Apache.
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
chandlerbing
Starting out
Posts: 17
Joined: Tue Feb 07, 2017 5:45 am

Re: [ QApache 2.4.27 + PHP 7.1.8 ] WebServer and more

Post by chandlerbing »

Toxic17 wrote:
chandlerbing wrote:Sorry for so many questions, but I can't seem to get into the web admin page. The /Apache page is blank and I don't see any files in the htdocs share I created.
are you using the default port of 88 ?

https://nas-ip-address:88
Yeah, completely default options... it's strange. The web server does seem to be working on that port, too. I was also able to easily configure SSL and that works too. At this point it's not a big concern, and I'm going to start configuring QApache to match my old server before trying to make the ports take over on 80 & 443. Thanks!
User avatar
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.27 + PHP 7.1.8 ] WebServer and more

Post by Toxic17 »

make sure the Web Server (built in) is disabled however if your wanting to use 80/443

personally I use 88/448 and port forward like so:

WAN port 80 -> LAN 88 (ip address of NAS)
WAN port 443 -> LAN 448 (ip address of NAS)
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
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.27 + PHP 7.1.8 ] WebServer and more

Post by Toxic17 »

BTW Stephane.

PHP 7.1.9 will be released on 31 Aug 17
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
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.27 + PHP 7.1.9 ] WebServer and more

Post by Toxic17 »

Stephane - PHP 7.1.9 has been released:

Code: Select all

31 Aug 2017
Core:
Fixed bug #74947 (Segfault in scanner on INF number).
Fixed bug #74954 (null deref and segfault in zend_generator_resume()).
Fixed bug #74725 (html_errors=1 breaks unhandled exceptions).
Fixed bug #75063 (Main CWD initialized with wrong codepage).

cURL:
Fixed bug #74125 (Fixed finding CURL on systems with multiarch support).

Date:
Fixed bug #75002 (Null Pointer Dereference in timelib_time_clone).

Intl:
Fixed bug #74993 (Wrong reflection on some locale_* functions).

Mbstring:
Fixed bug #71606 (Segmentation fault mb_strcut with HTML-ENTITIES encoding).
Fixed bug #62934 (mb_convert_kana() does not convert iteration marks).
Fixed bug #75001 (Wrong reflection on mb_eregi_replace).

MySQLi:
Fixed bug #74968 (PHP crashes when calling mysqli_result::fetch_object with an abstract class).

OCI8:
Expose oci_unregister_taf_callback() (Tianfang Yang)

Opcache:
Fixed bug #74980 (Narrowing occurred during type inference).

phar:
Fixed bug #74991 (include_path has a 4096 char limit in some cases).

Reflection:
Fixed bug #74949 (null pointer dereference in _function_string).

Session:
Fixed bug #74892 (Url Rewriting (trans_sid) not working on urls that start with "#").
Fixed bug #74833 (SID constant created with wrong module number).
SimpleXML:
Fixed bug #74950 (nullpointer deref in simplexml_element_getDocNamespaces).

SPL:
Fixed bug #75049 (spl_autoload_unregister can't handle spl_autoload_functions results).
Fixed bug #74669 (Unserialize ArrayIterator broken).
Fixed bug #74977 (Appending AppendIterator leads to segfault).
Fixed bug #75015 (Crash in recursive iterator destructors).

Standard:
Fixed bug #75075 (unpack with X* causes infinity loop).
Fixed bug #74103 (heap-use-after-free when unserializing invalid array size).
Fixed bug #75054 (A Denial of Service Vulnerability was found when performing deserialization).

WDDX:
Fixed bug #73793 (WDDX uses wrong decimal seperator).

XMLRPC:
Fixed bug #74975 (Incorrect xmlrpc serialization for classes with declared properties).
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.27 + PHP 7.1.9 ] WebServer and more

Post by QNAP_Stephane »

x64 updated with

Code: Select all

php core updated to 7.1.9
Mongod Extension
Yaml Extension
RabbitMqt Extension (amqp.so)
if you are hurry, please consider to download it from qnapclud.eu.... i am still in upload on my host for few hours (shoub be finish at 14h french time)
---------------------------------------------------------------------------------------------------------------------------

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.27 + PHP 7.1.9 ] WebServer and more

Post by Toxic17 »

Website updated to 719 and working fine.

Thank You..
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
obi77
Starting out
Posts: 10
Joined: Sat Nov 06, 2010 8:32 pm

Re: [ QApache 2.4.27 + PHP 7.1.9 ] WebServer and more

Post by obi77 »

I had 2.4.27.718 running and tried to update but got this error "[App Center] App install failed due to file format error."

Then I deinstalled QApache, restart my NAS and tried to install - the same error. Any ideas?
TS-251, 8GB RAM, QTS 5.x
User avatar
Toxic17
Ask me anything
Posts: 6477
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ QApache 2.4.27 + PHP 7.1.9 ] WebServer and more

Post by Toxic17 »

Did you download the file manually or automatically. You can only install the qpkg which is inside the zip file.

It is also recommended when upgrading to backup the files you need from an older Qapache install then remove the package from the app center. Then install the new version, stop the app, restore the config files and then start the application.

Sent from my ONEPLUS A3003 using Tapatalk
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
Post Reply

Return to “Community Apps”