How to use terminal to access logs

NOTICE: You are seeing this message because you have apache2 package installed.
Created symlink /etc/systemd/system/multi-user.target.wants/php7.2-fpm.service → /lib/systemd/system/php7.2-fpm.service.
Setting up php7.2-curl (7.2.24-0ubuntu0.18.04.3) …

Creating config file /etc/php/7.2/mods-available/curl.ini with new version
Setting up php7.2-mbstring (7.2.24-0ubuntu0.18.04.3) …

Creating config file /etc/php/7.2/mods-available/mbstring.ini with new version
Setting up php7.2 (7.2.24-0ubuntu0.18.04.3) …
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
Processing triggers for libapache2-mod-php7.2 (7.2.24-0ubuntu0.18.04.3) …
Processing triggers for ureadahead (0.100.0-21) …
Processing triggers for systemd (237-3ubuntu10.39) …
Processing triggers for php7.2-cli (7.2.24-0ubuntu0.18.04.3) …
Processing triggers for php7.2-fpm (7.2.24-0ubuntu0.18.04.3) …
NOTICE: Not enabling PHP 7.2 FPM by default.
NOTICE: To enable PHP 7.2 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.2-fpm
NOTICE: You are seeing this message because you have apache2 package installed.

admin@nextcloud:~$ php -r ‘echo PHP_VERSION; echo “\n”
PHP Parse error: syntax error, unexpected end of file in Command line code on line 1
“n”

Do :
sudo systemctl start php7.2-fpm

its : php -r 'echo PHP_VERSION; echo “\n” ’
(you forgot the last character )

ok thats done

its running ?

admin@nextcloud:~$ sudo systemctl start php7.2-fpm
admin@nextcloud:~$

Its ok, your service is running
try to access to your site and if there is an error :
show error.log and nginx configuration

I do agree with devnull, that might be fine to read how to install a server in order to understand

same error

admin@nextcloud:~$ sudo systemctl start php7.2-fpm
admin@nextcloud:~$ show error.log and nginx configuration

Command ‘show’ not found, but can be installed with:

sudo apt install mailutils-mh
sudo apt install mmh
sudo apt install nmh

admin@nextcloud:~$

No… I said, show me error.log with in the file “error.log”

admin@nextcloud:~$ sudo tail -f /var/log/nginx/access.log
192.168.15.1 - - [31/Mar/2020:20:05:07 +0800] “GET / HTTP/1.1” 502 584 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”
192.168.15.1 - - [31/Mar/2020:20:05:07 +0800] “GET /favicon.ico HTTP/1.1” 502 584 “http://58.171.44.12/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”
192.168.15.5 - - [31/Mar/2020:20:05:12 +0800] “GET / HTTP/1.1” 502 584 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”
192.168.15.5 - - [31/Mar/2020:20:05:13 +0800] “GET /favicon.ico HTTP/1.1” 502 584 “http://192.168.15.15/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”
192.168.15.5 - - [31/Mar/2020:20:05:14 +0800] “GET / HTTP/1.1” 502 584 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”
192.168.15.5 - - [31/Mar/2020:20:05:14 +0800] “GET /favicon.ico HTTP/1.1” 502 584 “http://192.168.15.15/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”
192.168.15.5 - - [31/Mar/2020:20:05:14 +0800] “GET / HTTP/1.1” 502 584 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”
192.168.15.5 - - [31/Mar/2020:20:05:14 +0800] “GET /favicon.ico HTTP/1.1” 502 584 “http://192.168.15.15/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”
192.168.15.5 - - [31/Mar/2020:20:05:15 +0800] “GET / HTTP/1.1” 502 584 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”
192.168.15.5 - - [31/Mar/2020:20:05:15 +0800] “GET /favicon.ico HTTP/1.1” 502 584 “http://192.168.15.15/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”

admin@nextcloud:~$ sudo tail -f /var/log/nginx/error.log
[sudo] password for admin:
2020/03/31 20:05:07 [crit] 4285#4285: *14 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.1, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “58.171.44.12”
2020/03/31 20:05:07 [crit] 4285#4285: *14 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.1, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “58.171.44.12”, referrer: “http://58.171.44.12/
2020/03/31 20:05:12 [crit] 4285#4285: *20 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”
2020/03/31 20:05:13 [crit] 4285#4285: *20 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”, referrer: “http://192.168.15.15/
2020/03/31 20:05:14 [crit] 4285#4285: *20 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”
2020/03/31 20:05:14 [crit] 4285#4285: *20 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”, referrer: “http://192.168.15.15/
2020/03/31 20:05:14 [crit] 4285#4285: *20 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”
2020/03/31 20:05:14 [crit] 4285#4285: *20 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”, referrer: “http://192.168.15.15/
2020/03/31 20:05:15 [crit] 4285#4285: *20 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”
2020/03/31 20:05:15 [crit] 4285#4285: *20 connect() to unix:/run/php/php7.0-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.15.5, server: 192.168.0.214, request: “GET /favicon.ico HTTP/1.1”, upstream: “fastcgi://unix:/run/php/php7.0-fpm.sock:”, host: “192.168.15.15”, referrer: “http://192.168.15.15/

That is access.log
sudo tail -f /var/log/nginx/access.log

To display error.log, its
sudo tail -f /var/log/nginx/error.log

But, have you tried to reconnect ?

I really think that you need to understand how works Linux. You have many tutorials for beginners.

Devnull and i have come to the same point that i dont know enough and it seems far to hard to fix this system

I really thank you both for sticking with me i am a old bloke poking my nose into younger people stuff oh when it was so much simpler with batch files and dos

thanks again mate

do i need to delete this information that ive sent here ?

Ha ha its not so complicated but it is important to understand a minimum. Sorry I couldn’t help more.
I dont know for information