Page 6 of 7

Re: [ apache24 (PHP 7) ] Web Server

Posted: 16 Mar 2023, 02:34
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?

Re: [ apache24 (PHP 7) ] Web Server

Posted: 04 Apr 2023, 14:49
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 :) ?

Re: [ apache24 (PHP 7) ] Web Server

Posted: 04 Apr 2023, 21:07
by outkastm
Will look, I see you have a TOS4...

Re: [ apache24 (PHP 7) ] Web Server

Posted: 04 Apr 2023, 21:20
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

Re: [ apache24 (PHP 7) ] Web Server

Posted: 12 Sep 2023, 02:24
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.png
start log.png

Re: [ apache24 (PHP 7) ] Web Server

Posted: 12 Sep 2023, 03:36
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"

Re: [ apache24 (PHP 7) ] Web Server

Posted: 12 Sep 2023, 04:13
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! :)

Re: [ apache24 (PHP 7) ] Web Server

Posted: 14 Sep 2023, 01:48
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.

Re: [ apache24 (PHP 7) ] Web Server

Posted: 15 Sep 2023, 18:02
by outkastm
Check that these lines are correct in httpd-ssl.conf

Image

Re: [ apache24 (PHP 7) ] Web Server

Posted: 16 Sep 2023, 01:35
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.