[ 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
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

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

Post by outkastm »

Image

strange, that means the apache binary is missing.
Try to install again the app
Roccia7
Posts: 62
Joined: 05 Mar 2020, 05:02
Italy

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

Post 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
TNAS F2-220
TOS 5.0.176
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

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

Post 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
Roccia7
Posts: 62
Joined: 05 Mar 2020, 05:02
Italy

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

Post 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
TNAS F2-220
TOS 5.0.176
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

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

Post 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 ?
Roccia7
Posts: 62
Joined: 05 Mar 2020, 05:02
Italy

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

Post 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
TNAS F2-220
TOS 5.0.176
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

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

Post 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 ?
Roccia7
Posts: 62
Joined: 05 Mar 2020, 05:02
Italy

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

Post 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
TNAS F2-220
TOS 5.0.176
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

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

Post by outkastm »

i've sent you a private mesage
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

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

Post 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
Post Reply