[ apache24 (PHP 7) ] Web Server

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
User avatar
sanctimon
Posts: 98
Joined: 14 Nov 2021, 06:57

Re: [ apache24 (PHP 7) ] Web Server

Post by sanctimon »

Hello, I have restarted my machine and almost all okm apps have stopped working. Trying to figure it out one by one, starting with Apache.

I have a fresh install off a new download. Apache refuses to start. Log file reports:

Code: Select all

<br />
<b>Warning</b>:  fopen(/usr/local/apache24/bin/error_log): failed to open stream: No such file or directory in <b>/usr/www/modules/apache24/www/5.php</b> on line <b>83</b><br />

Code: Select all

/usr/local/apache24/sys/bin/httpd -f /mnt/appdata/MOD_CONFIG/apache24/httpd.conf -k start
gives:

Code: Select all

httpd: Syntax error on line 81 of /mnt/appdata/MOD_CONFIG/apache24/httpd.conf: Can't locate API module structure `authnz_fcgid_module' 
in file /usr/local/apache24/sys/libexec/mod_authnz_fcgi.so: /usr/local/apache24/sys/libexec/mod_authnz_fcgi.so: 
undefined symbol: authnz_fcgid_module
and

Code: Select all

/etc/init.d/apache24 start
gives

Code: Select all

/etc/init.d/apache24: line 28: 27221 Segmentation fault      ter_curl -k --etag-compare $CERT_PATH/etag.txt --etag-save 
$CERT_PATH/etag.txt -o $CERT_PATH/cacert.pem --remote-name https://curl.se/ca/cacert.pem > /dev/null 2>&1

httpd: Syntax error on line 81 of /mnt/appdata/MOD_CONFIG/apache24/httpd.conf: Can't locate API module structure
`authnz_fcgid_module' in file /usr/local/apache24/sys/libexec/mod_authnz_fcgi.so: 
/usr/local/apache24/sys/libexec/mod_authnz_fcgi.so: undefined symbol: authnz_fcgid_module
Any ideas?
User avatar
Grundvardv
Posts: 3
Joined: 04 Apr 2023, 14:43

Re: [ apache24 (PHP 7) ] Web Server

Post by Grundvardv »

Hello everyone :)

I have exactly the same problem as @sanctimon's. I have the F4-220 with TOS4, freshly installed, and I installed Apache24 app, but it never started. Errors are the same as in the post above...
I'd be very interested if someone has an idea. @outkastm maybe :) ?
User avatar
outkastm
Posts: 1191
Joined: 29 Dec 2020, 23:52

Re: [ apache24 (PHP 7) ] Web Server

Post by outkastm »

Will look, I see you have a TOS4...
User avatar
Grundvardv
Posts: 3
Joined: 04 Apr 2023, 14:43

Re: [ apache24 (PHP 7) ] Web Server

Post by Grundvardv »

Thanks !
Indeed, since it's recommended to backup the data, before installing TOS5 from TOS4, and I don't have a solution to backup all of them, I remain with the last TOS4 release, for now. I installed apache24 TOS4 2.4.54.1 x86_64.tpk
User avatar
brunix86
Posts: 59
Joined: 12 Oct 2021, 21:51
Italy

Re: [ apache24 (PHP 7) ] Web Server

Post by brunix86 »

{L_BUTTON_AT}outkastm
Hi, I just installed for first time Apache24 (2.4.57.1) and it won't start. I didn't change any config and I have TOS 5.1.67 (installed from scratch some days ago). Below you can see the error and start logs. Could you gently check what's wrong? Thanks!
Error Log
Error Log
Start Log
Start Log
My NAS Environment
  • TNAS F4-423
  • TOS 5.1.123-00529 (8GB System Partition)
  • 2x RAM Terramaster 4GB DDR4 2133 MHZ
  • 2x HDD WD RED PLUS 4TB CMR [RAID1]
  • UPS Tecnoware ERA PLUS 1100 [770 W]
Play your console games on PC!
User avatar
outkastm
Posts: 1191
Joined: 29 Dec 2020, 23:52

Re: [ apache24 (PHP 7) ] Web Server

Post by outkastm »

Edit httpd-ssl.conf from the menu Configuration File in app WebUI.

Change this line

Code: Select all

SSLCertificateKeyFile "/etc/nginx/ssl/tnas.link.key"
to

Code: Select all

SSLCertificateKeyFile "/etc/nginx/tnas.link.key"
User avatar
brunix86
Posts: 59
Joined: 12 Oct 2021, 21:51
Italy

Re: [ apache24 (PHP 7) ] Web Server

Post by brunix86 »

outkastm wrote: 12 Sep 2023, 03:36 Edit httpd-ssl.conf from the menu Configuration File in app WebUI.

Change this line

Code: Select all

SSLCertificateKeyFile "/etc/nginx/ssl/tnas.link.key"
to

Code: Select all

SSLCertificateKeyFile "/etc/nginx/tnas.link.key"
Now it works fine!
Thanks! :)
My NAS Environment
  • TNAS F4-423
  • TOS 5.1.123-00529 (8GB System Partition)
  • 2x RAM Terramaster 4GB DDR4 2133 MHZ
  • 2x HDD WD RED PLUS 4TB CMR [RAID1]
  • UPS Tecnoware ERA PLUS 1100 [770 W]
Play your console games on PC!
User avatar
jositodc
Posts: 7
Joined: 14 Sep 2023, 01:35

Re: [ apache24 (PHP 7) ] Web Server

Post by jositodc »

{L_BUTTON_AT}outkastm

Hello good:
I have followed the entire thread and I have done the same as you indicate and everything above, I already have Nextcloud working, but I can't get Apache to work.
I leave you the screenshots of what it keeps telling me and it doesn't start no matter how hard I try. Can you help me please?
Excuse my English, it is a translator, I am from Spain.
Attachments
Start Log
Start Log
Error Log
Error Log
View Logs - Google Chrome.jpg (24.09 KiB) Viewed 3495 times
User avatar
outkastm
Posts: 1191
Joined: 29 Dec 2020, 23:52

Re: [ apache24 (PHP 7) ] Web Server

Post by outkastm »

Check that these lines are correct in httpd-ssl.conf

Image
User avatar
jositodc
Posts: 7
Joined: 14 Sep 2023, 01:35

Re: [ apache24 (PHP 7) ] Web Server

Post by jositodc »

{L_BUTTON_AT}outkastm

Thank you very much, I had reviewed everything and I had not seen that it was not correct, it was in both .key extension. Now it starts.
The question I have, why does Nextcloud keep telling me an invalid certificate? if everything is already correctly configured.
Attachments
Apache Ok
Apache Ok
Apache.jpg (21.25 KiB) Viewed 3434 times
invalid certificate
invalid certificate
Post Reply