[ Apache73 ][2454.73330] Apache WebServer with PHP 7.3 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
OneCD
Guru
Posts: 12039
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [ Apache73 ] [2446.7326 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by OneCD »

QNAP_Stephane wrote: Sun Jan 17, 2021 4:30 am Guess it is issue with repo and/or hosting...
Same problem here. :(

Stephane, are you in contact with Cris? I haven't been able to get hold of him. No response to any of my messages.

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

Re: [ Apache73 ] [2446.7326 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by QNAP_Stephane »

15 days ago.. I sent message today ... Let see..

Envoyé de mon MI 9 en utilisant Tapatalk

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

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
OneCD
Guru
Posts: 12039
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [ Apache73 ] [2446.7326 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by OneCD »

Image

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
clawfinger
Starting out
Posts: 15
Joined: Sat Mar 30, 2013 8:33 am

Re: [ Apache73 ] [2446.7326 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by clawfinger »

Still no improvements on my end...

It seems using wget NAS side is a lot more reliable (tho still not 100%), could there be some sort of issue with using a 3rd Party Repo via Qnap App Center and how Qnap Club uses a CDN redirect:

Code: Select all

$ wget https://www.qnapclub.eu/en/qpkg/model/download/472259/SortMyQPKGs_201206.qpkg 
--2021-01-30 14:16:32--  https://www.qnapclub.eu/en/qpkg/model/download/472259/SortMyQPKGs_201206.qpkg
Resolving www.qnapclub.eu (www.qnapclub.eu)... 37.187.75.121
Connecting to www.qnapclub.eu (www.qnapclub.eu)|37.187.75.121|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://cdn.qnapclub.eu/qpkg_artifacts/SortMyQPKGs_201206/SortMyQPKGs_201206.qpkg [following]
--2021-01-30 14:16:33--  https://cdn.qnapclub.eu/qpkg_artifacts/SortMyQPKGs_201206/SortMyQPKGs_201206.qpkg
Resolving cdn.qnapclub.eu (cdn.qnapclub.eu)... 151.139.243.10
Connecting to cdn.qnapclub.eu (cdn.qnapclub.eu)|151.139.243.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 39622 (39K)
Saving to: ‘SortMyQPKGs_201206.qpkg’

SortMyQPKGs_201206.qpkg                              100%[======================================================================================================================>]  38.69K  --.-KB/s    in 0.001s  

2021-01-30 14:16:33 (54.2 MB/s) - ‘SortMyQPKGs_201206.qpkg’ saved [39622/39622]
User avatar
Toxic17
Ask me anything
Posts: 6469
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ Apache73 ] [2446.7326 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by Toxic17 »

Perhaps start a discussion in a new thread might be better.


Sent from my iPhone 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
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

Re: [ Apache73 ] [2446.7326 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by QNAP_Stephane »

updated

Code: Select all

PHP core to 7.3.27
OpenSSL to 1.1.1i
Curl to 7.74.0
Sqlite to 3.34.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

----------------------------------------------------------------------------------------------------------------------------
vag1290
New here
Posts: 2
Joined: Sat Feb 27, 2021 6:21 pm

Re: [ Apache73 ] [2446.7327 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by vag1290 »

I`m too trying to send Mails from my php script.. but this is not working.
Can somebody help me with that?

this is the code i`m using in /etc/config/ssmtp/ssmtp.conf

------------
mailhub = smtp.gmail.com:587
FromLineOverride= YES
AuthUser = mymail@gmail.com
AuthPass = mypass
UseTLS= YES
UseSTARTTLS = YES
------------

this is the code in my php.ini
------------
SMTP = 127.0.0.1
smtp_port = 587
sendmail_path = /usr/sbin/sendmail -t -i
------------

and this is my script..
---------------------
$headers = "From: maymail@gmail.com";
$to_email = "yourmail@gmail.com";
$subject = "Simple Email Test via PHP";
$body = "testtest";

if (mail($to_email, $subject, $body, $headers, "mymail@gmail.com")) {
echo "Email successfully sent to $to_email";
echo $headers;
} else {
echo "Email sending failed";
}
---------------------

I`m getting the "email successfully....." but the mail never lands on the reciepients inbox/spam.
Also I`ve enabled that option through google for allowing 3rd party apps etc..

Any help please?
vag1290
New here
Posts: 2
Joined: Sat Feb 27, 2021 6:21 pm

Re: [ Apache73 ] [2446.7327 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by vag1290 »

ok.. no help needed. Fixed my problem with 2 crucial steps.

1. changed the settings in etc/config/ssmtp/ssmtp.config
------------
FromLineOverride=YES
UseSTARTTLS=YES
root=mymail@gmail.com
mailhub=smtp.gmail.com:587
AuthUser=mymail@gmail.com
AuthPass = mypass (after testing ssmtp through terminal window it changed to "enAuthPass = (a string of my password) "
------------

2. Changed php.ini
-----------
[mail function]
SMTP = 127.0.0.1
smtp_port = 587
sendmail_path = /usr/sbin/ssmtp -t -i
-----------
and after this change restart web server.
I asume that you already have enabled the option of gmail to give access to less secure apps.. etc.
yanuk
Know my way around
Posts: 164
Joined: Mon Feb 08, 2016 9:45 am

Re: [ Apache73 ] [2446.7327 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by yanuk »

i seem to be unable to stop the service using Apache74.sh stop because when i use Apache74.sh start it will say PID is already running. I need to lsof find the pid then kill it.
Running the .sh start works this way.

Is it just me? Anyone can help me to find what's wrong?
TS451
TS453
TVS-682
User avatar
Toxic17
Ask me anything
Posts: 6469
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ Apache73 ] [2446.7327 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by Toxic17 »

I use a script that calls it from init.d when renewwing my certificate. I ten reload apache like so:

/etc/init.d/Apache74.sh restart

though stop, start, restart should all work.

does

/etc/init.d/Apache74.sh stop

and

/etc/init.d/Apache74.sh start

do the same thing and fail on 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
yanuk
Know my way around
Posts: 164
Joined: Mon Feb 08, 2016 9:45 am

Re: [ Apache73 ] [2446.7327 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by yanuk »

Yups. When restart didn't work, i used stop. waited for about a minute, then start but it says PID already running. So i used stop again. went for lunch and came back. Issues start. but still got PID still running. Had to kill it. I'm using Apache73 at the moment by the way.
TS451
TS453
TVS-682
User avatar
Toxic17
Ask me anything
Posts: 6469
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [ Apache73 ] [2446.7327 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by Toxic17 »

yanuk wrote: Thu Apr 15, 2021 12:12 pm Yups. When restart didn't work, i used stop. waited for about a minute, then start but it says PID already running. So i used stop again. went for lunch and came back. Issues start. but still got PID still running. Had to kill it. I'm using Apache73 at the moment by the way.
I honestly dont know what to say then as Apache74 just works.

Code: Select all

[/share/CACHEDEV1_DATA/.qpkg/Apache74] # ./Apache74.sh stop
############

Apache74: Doing some export first
############

Apache74: Apache stopping...

Apache74: Removing expired ca-certificates...
/etc/ssl/certs/spi-cacert-2008.pem expired on 20180511! Removing...
/etc/ssl/certs/CA_Disig.pem expired on 20160322! Removing...
/etc/ssl/certs/Juur-SK.pem expired on 20160826! Removing...
/etc/ssl/certs/Sonera_Class_2_Root_CA.pem expired on 20210406! Removing...
/etc/ssl/certs/NetLock_Express_=Class_C=_Root.pem expired on 20190220! Removing...
/etc/ssl/certs/PSCProcert.pem expired on 20201225! Removing...
/etc/ssl/certs/UTN_USERFirst_Hardware_Root_CA.pem expired on 20190709! Removing...
/etc/ssl/certs/Microsec_e-Szigno_Root_CA.pem expired on 20170406! Removing...
/etc/ssl/certs/AddTrust_Public_Services_Root.pem expired on 20200530! Removing...
/etc/ssl/certs/Sonera_Class_1_Root_CA.pem expired on 20210406! Removing...
/etc/ssl/certs/Buypass_Class_2_CA_1.pem expired on 20161013! Removing...
/etc/ssl/certs/Deutsche_Telekom_Root_CA_2.pem expired on 20190709! Removing...
/etc/ssl/certs/QuoVadis_Root_CA.pem expired on 20210317! Removing...
/etc/ssl/certs/NetLock_Notary_=Class_A=_Root.pem expired on 20190219! Removing...
/etc/ssl/certs/AddTrust_Low-Value_Services_Root.pem expired on 20200530! Removing...
/etc/ssl/certs/UTN_USERFirst_Email_Root_CA.pem expired on 20190709! Removing...
/etc/ssl/certs/AddTrust_External_Root.pem expired on 20200530! Removing...
/etc/ssl/certs/DST_ACES_CA_X6.pem expired on 20171120! Removing...
/etc/ssl/certs/Certplus_Class_2_Primary_CA.pem expired on 20190706! Removing...
/etc/ssl/certs/ApplicationCA_-_Japanese_Government.pem expired on 20171212! Removing...
/etc/ssl/certs/IGC_A.pem expired on 20201017! Removing...
/etc/ssl/certs/TURKTRUST_Certificate_Services_Provider_Root_2007.pem expired on 20171222! Removing...
/etc/ssl/certs/Staat_der_Nederlanden_Root_CA_-_G2.pem expired on 20200325! Removing...
/etc/ssl/certs/NetLock_Business_=Class_B=_Root.pem expired on 20190220! Removing...
/etc/ssl/certs/Equifax_Secure_eBusiness_CA_1.pem expired on 20200621! Removing...
/etc/ssl/certs/Equifax_Secure_Global_eBusiness_CA.pem expired on 20200621! Removing...
/etc/ssl/certs/Staat_der_Nederlanden_Root_CA.pem expired on 20151216! Removing...
/etc/ssl/certs/TÜBİTAK_UEKAE_Kök_Sertifika_Hizmet_Sağlayıcısı_-_Sürüm_3.pem expired on 20170821! Removing...
/etc/ssl/certs/GeoTrust_Global_CA_2.pem expired on 20190304! Removing...
/etc/ssl/certs/AddTrust_Qualified_Certificates_Root.pem expired on 20200530! Removing...
/etc/ssl/certs/EBG_Elektronik_Sertifika_Hizmet_Sağlayıcısı.pem expired on 20160814! Removing...
/etc/ssl/certs/Equifax_Secure_CA.pem expired on 20180822! Removing...
[/share/CACHEDEV1_DATA/.qpkg/Apache74] #

Code: Select all

[/share/CACHEDEV1_DATA/.qpkg/Apache74] # ./Apache74.sh start
############

Apache74: Doing some export first
############

Apache74: Create Symlink in /opt
############

Apache74: export QPKG PATH to NAS PATH
############

Apache74: Where is Web share according smb.conf

Apache74: Found System on /share/CACHEDEV1_DATA/Web
############

Apache74: Create CA Certificates if not present in /etc/ssl

Apache74: Check if Perl is in PATH to generate cacert script

Apache74: /usr/bin/perl exist already

Apache74: Check if /etc/ssl/ca-bundle.crt exists already if not we generate ca-certificates

Apache74: /etc/ssl/ca-bundle.crt no action required
############

Apache74: Create htdocs in Web share if it is not existing

Apache74: htdocs exists in your Web share no action

Apache74: exporting HTDOCS path to /share/CACHEDEV1_DATA/htdocs
############

Apache74: Preparing web admin if necessary

Apache74: Apache admin exists in htdocs
############

Apache74: Check if MyQnapCloud Lets Encrypt/SSL certificate exists

Apache74: MyQnapCloud Lets Encrypt/SSL certificate not found, i am using self-signed certificate from QTS

Apache74: Creating Self Signed certificates

Apache74: server.crt file exists
############

Apache74: Installing composer and add it to NAS PATH

Apache74: composer exists in Apache, I relink it ti NAS PATH
############

Apache74: Apache starting...
[/share/CACHEDEV1_DATA/.qpkg/Apache74] #

Code: Select all

[/share/CACHEDEV1_DATA/.qpkg/Apache74] # ./Apache74.sh restart
############

Apache74: Doing some export first
############

Apache74: Doing some export first
############

Apache74: Apache stopping...

Apache74: Removing expired ca-certificates...
############

Apache74: Doing some export first
############

Apache74: Create Symlink in /opt
############

Apache74: export QPKG PATH to NAS PATH
############

Apache74: Where is Web share according smb.conf

Apache74: Found System on /share/CACHEDEV1_DATA/Web
############

Apache74: Create CA Certificates if not present in /etc/ssl

Apache74: Check if Perl is in PATH to generate cacert script

Apache74: /usr/bin/perl exist already

Apache74: Check if /etc/ssl/ca-bundle.crt exists already if not we generate ca-certificates

Apache74: /etc/ssl/ca-bundle.crt no action required
############

Apache74: Create htdocs in Web share if it is not existing

Apache74: htdocs exists in your Web share no action

Apache74: exporting HTDOCS path to /share/CACHEDEV1_DATA/htdocs
############

Apache74: Preparing web admin if necessary

Apache74: Apache admin exists in htdocs
############

Apache74: Check if MyQnapCloud Lets Encrypt/SSL certificate exists

Apache74: MyQnapCloud Lets Encrypt/SSL certificate not found, i am using self-signed certificate from QTS

Apache74: Creating Self Signed certificates

Apache74: server.crt file exists
############

Apache74: Installing composer and add it to NAS PATH

Apache74: composer exists in Apache, I relink it ti NAS PATH
############

Apache74: Apache starting...
[/share/CACHEDEV1_DATA/.qpkg/Apache74] #
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: [ Apache73 ] [2446.7327 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by QNAP_Stephane »

think it is due to the MPM module started (if i remember)... i fixed that in Apache80 already
but need to double check for Apache74
---------------------------------------------------------------------------------------------------------------------------

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: [ Apache73 ] [2446.7328 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by QNAP_Stephane »

updated to php core 7.3.28
update openssl to 1.1.1k
---------------------------------------------------------------------------------------------------------------------------

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

----------------------------------------------------------------------------------------------------------------------------
yanuk
Know my way around
Posts: 164
Joined: Mon Feb 08, 2016 9:45 am

Re: [ Apache73 ] [2446.7327 ] Apache WebServer with PHP 7.3 and PECL extensions

Post by yanuk »

Toxic17 wrote: Fri Apr 16, 2021 2:39 am
yanuk wrote: Thu Apr 15, 2021 12:12 pm Yups. When restart didn't work, i used stop. waited for about a minute, then start but it says PID already running. So i used stop again. went for lunch and came back. Issues start. but still got PID still running. Had to kill it. I'm using Apache73 at the moment by the way.
I honestly dont know what to say then as Apache74 just works.

yups.. but this is Apache73. I'll try out the latest update and see what happens.
TS451
TS453
TVS-682
Post Reply

Return to “Community Apps”