[ Apache74 ][ 2454.7433 ] Apache WebServer with PHP 7.4 and PECL extensions

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [Apache74 ][ 2448.74220 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by QNAP_Stephane »

updated to php core 7.4.22
---------------------------------------------------------------------------------------------------------------------------

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

----------------------------------------------------------------------------------------------------------------------------
OutRager
New here
Posts: 2
Joined: Tue May 07, 2013 5:16 am

Re: [Apache74 ][ 2448.74220 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by OutRager »

I'm facing some issues.

Installed the package and the server works.

But when I try to use composer the issues starts piling up. I tried to create a project (laravel) with composer, but it gave me and curl 77 error, something regarding certificates. I then decided to restart the Apache74, to see if that would solve the issue. When I restarted, the log showed me that there were an issue with the downloading of certdata.txt, but I managed to solve this issue, by adding --secure-protocol=TLSv1_2 to the wget part of Apache74.sh.

The next error that I'm facing, and haven't been able to solve yet, is when all the tempfile.crt should be moved to 'certs/NEWFILENAME.crt' it fails all of them, with this message:

Code: Select all

mv: cannot move 'tempfile.crt' to 'certs/NAME.pem': Bad address
And the last error before it exists:

Code: Select all

cat: 'certs/*.pem': No such file or directory
cp: cannot stat 'certs/*.pem': No such file or directory
Not sure how to solve this, so hope someone could assist me here.
User avatar
Toxic17
Ask me anything
Posts: 6469
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [Apache74 ][ 2448.74220 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by Toxic17 »

the "no such file or directory" error sounds like you are calling the command from the wrong directory.

you only shows the command but not what folder your ran it from.
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
OutRager
New here
Posts: 2
Joined: Tue May 07, 2013 5:16 am

Re: [Apache74 ][ 2448.74220 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by OutRager »

Toxic17 wrote: Wed Aug 18, 2021 3:43 am the "no such file or directory" error sounds like you are calling the command from the wrong directory.

you only shows the command but not what folder your ran it from.
Not sure which command you are referring to, but the "Apache74.sh" script should be callable from wherever. The code inside the Apache74.sh is from the creator, so I assume that is setup correctly.

But what would be the "right" place to call this script?
raidforsaving
Easy as a breeze
Posts: 279
Joined: Mon Jul 14, 2014 9:14 am

Re: [Apache74 ][ 2448.74220 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by raidforsaving »

Stephane - Is OpenSSL 1.1.1L in the latest update?
Model name: TS-653D
Firmware version: 4.5.3.1697 build 20210611
Volumes: EXT4, Encrypted volume
Previous: TS-651 dead by CPU bug
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [Apache74 ][ 2448.74220 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by QNAP_Stephane »

only inside Apache80 ... Apache73 et 74 was released before OpenSSL 1.1.1l was out

will try to update asap both
---------------------------------------------------------------------------------------------------------------------------

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: [Apache74 ][ 2448.74231 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by QNAP_Stephane »

Code: Select all

update to php 7.4.23
update to openssl 1.1.1l 
---------------------------------------------------------------------------------------------------------------------------

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

----------------------------------------------------------------------------------------------------------------------------
raidforsaving
Easy as a breeze
Posts: 279
Joined: Mon Jul 14, 2014 9:14 am

Re: [Apache74 ][ 2448.74231 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by raidforsaving »

QNAP_Stephane wrote: Thu Sep 02, 2021 6:49 pm

Code: Select all

update to php 7.4.23
update to openssl 1.1.1l 
Thanks!
Model name: TS-653D
Firmware version: 4.5.3.1697 build 20210611
Volumes: EXT4, Encrypted volume
Previous: TS-651 dead by CPU bug
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [Apache74 ][ 2448.74231 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by QNAP_Stephane »

you are welcome
---------------------------------------------------------------------------------------------------------------------------

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

----------------------------------------------------------------------------------------------------------------------------
cbadoud
Starting out
Posts: 14
Joined: Sun Jul 30, 2017 12:28 am

Re: [Apache74 ][ 2448.74231 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by cbadoud »

My NAS is compatible to QTS 5.0, but I'm hesitating to update because of Apache74. Does it work with the new firmware?
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [Apache74 ][ 2448.74231 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by QNAP_Stephane »

yes it works .. i am actually updating to Apache 2.4.50 ... and testing on QTS 5 all works
---------------------------------------------------------------------------------------------------------------------------

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: 6469
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [Apache74 ][ 2448.74231 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by Toxic17 »

QNAP_Stephane wrote: Fri Oct 08, 2021 6:08 pm yes it works .. i am actually updating to Apache 2.4.50 ... and testing on QTS 5 all works
Stephane. 2.4.50?? Apache httpd 2.4.51 Released 2021-10-07 - security patch which leaves 2.4.49 and 2.4.50 vulnerable

Code: Select all

Changes with Apache 2.4.51

  *) SECURITY: CVE-2021-42013: Path Traversal and Remote Code
     Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete
     fix of CVE-2021-41773) (cve.mitre.org)
     It was found that the fix for CVE-2021-41773 in Apache HTTP
     Server 2.4.50 was insufficient.  An attacker could use a path
     traversal attack to map URLs to files outside the directories
     configured by Alias-like directives.
     If files outside of these directories are not protected by the
     usual default configuration "require all denied", these requests
     can succeed. If CGI scripts are also enabled for these aliased
     pathes, this could allow for remote code execution.
     This issue only affects Apache 2.4.49 and Apache 2.4.50 and not
     earlier versions.
     Credits: Reported by Juan Escobar from Dreamlab Technologies,
     Fernando Muñoz from NULL Life CTF Team, and Shungo Kumasaka

  *) core: Add ap_unescape_url_ex() for better decoding control, and deprecate
     unused AP_NORMALIZE_DROP_PARAMETERS flag.
     [Yann Ylavic, Ruediger Pluem, Stefan Eissing, Joe Orton]
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: [Apache74 ][ 2450.74240 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by QNAP_Stephane »

Damned... all compiled yesterday :(

recompiling all Apache series once again , thanks for the notification
---------------------------------------------------------------------------------------------------------------------------

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

----------------------------------------------------------------------------------------------------------------------------
raidforsaving
Easy as a breeze
Posts: 279
Joined: Mon Jul 14, 2014 9:14 am

Re: [Apache74 ][ 2450.74240 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by raidforsaving »

Fortunately, it doesn't seem like you ever released a 2.4.49 or 50 version for this specific app. Correct?
Model name: TS-653D
Firmware version: 4.5.3.1697 build 20210611
Volumes: EXT4, Encrypted volume
Previous: TS-651 dead by CPU bug
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [Apache74 ][ 2450.74240 ] Apache WebServer with PHP 7.4 and PECL extensions

Post by QNAP_Stephane »

yes indeed
---------------------------------------------------------------------------------------------------------------------------

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”