Page 2 of 7

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Posted: 18 Nov 2021, 06:17
by outkastm
Image

strange, that means the apache binary is missing.
Try to install again the app

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Posted: 18 Nov 2021, 06:49
by Roccia7
outkastm wrote: 18 Nov 2021, 06:17 Image

strange, that means the apache binary is missing.
Try to install again the app
I tried 3 times, also with admin account. But it is installed, i can see folder and files

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Posted: 18 Nov 2021, 07:20
by outkastm
i don't understand why when you run

Code: Select all

/usr/local/apache24/sys/bin/httpd -f
you get

Code: Select all

No such file or directory
As example if you type

Code: Select all

/usr/local/apache24/sys/bin/httpd -v
normally you should get

Code: Select all

[admin@TNAS ~]$ /usr/local/apache24/sys/bin/httpd -v
Server version: Apache/2.4.51 (Unix)
Server built:   Oct 27 2021 00:42:12
we can try a teamviewer if you want

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Posted: 19 Nov 2021, 05:24
by Roccia7
outkastm wrote: 15 Nov 2021, 04:59 that means the server has never started and the log files are missing
Could you connect with SSH and run :

Code: Select all

/usr/local/apache24/sys/bin/httpd -f /mnt/appdata/MOD_CONFIG/apache24/httpd.conf -k start
What message do you get ?
Thanks a lot for your time! I retried the first command you gave me (first time didn't work) but now i recived this message:

Code: Select all

httpd: Syntax error on line 199 of /mnt/appdata/MOD_CONFIG/apache24/httpd.conf: Cannot load libexec/libphp7.4.so into server: /usr/local/apache24/sys/lib/libkrb5.so.3: symbol k5_dir_filenames, version krb5support_0_MIT not defined in file libkrb5support.so.0 with link time reference
I hope this help

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Posted: 19 Nov 2021, 05:53
by outkastm
ok, now run the script to start the app, add sudo if you connect to SSH with administrator account.

Code: Select all

[admin@TNAS ~]$ sudo /etc/init.d/apache24 start
Password:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
apache start
Can you access the server at http://yournasip:89 ?

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Posted: 19 Nov 2021, 06:01
by Roccia7
outkastm wrote: 19 Nov 2021, 05:53 ok, now run the script to start the app, add sudo if you connect to SSH with administrator account.

Code: Select all

[admin@TNAS ~]$ sudo /etc/init.d/apache24 start
Password:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
apache start
Can you access the server at http://yournasip:89 ?
Ok it partially work. This is the new messaage

Code: Select all

                         Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
apache start
chown: invalid user: ‘www-data’
AH00543: httpd: bad user name www-data
[root@TNAS-220 ~]#
At now i can't Connect to that link

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Posted: 19 Nov 2021, 06:12
by outkastm
That should be the main issue, the user www-data on which the apache app should run is not available on your machine.
Normally this is a user that came already with the TOS. What is your TOS version ?

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Posted: 19 Nov 2021, 06:15
by Roccia7
outkastm wrote: 19 Nov 2021, 06:12 That should be the main issue, the user www-data on which the apache app should run is not available on your machine.
Normally this is a user that came already with the TOS. What is your TOS version ?
I have tos 4.2.17. Bit i boght My Nas with tos 2.x and never delete that user

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Posted: 19 Nov 2021, 06:19
by outkastm
i've sent you a private mesage

Re: [ apache24 (PHP 7) ][ 2.4.51.1 ] Web Server

Posted: 19 Nov 2021, 19:58
by outkastm
up to 2.4.51.1
php up to 7.4.26
added the option to create automatically the user www-data if is missing