Phoscon Server läuft auf diesem Server auf Port 80 und funktioniert!
Kann alles nur ein Port-Problem sein?
Nachdem ich SOGo auf meinem debian-server installiert hatte, stellte ich fest, dass die Darstellung der Start-Webseite nicht korrekt war. Ich vermutete, dass es durch das nicht installierte PHP verursacht werden könnte und installierte nach dieser Anleitung:
Code: Alles auswählen
I N S T A L L A T I O N
Quelle: https://www.itzgeek.com/how-tos/linux/debian/how-to-install-php-7-3-7-2-7-1-on-debian-10-debian-9-debian-8.html
apt update
apt install -y curl wget gnupg2 ca-certificates lsb-release apt-transport-https
wget https://packages.sury.org/php/apt.gpg
apt-key add apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php7.list
apt update
apt-get update
apt-get upgrade
Code: Alles auswählen
M Y S Q L E X T E N S I O N S
/etc/init.d/mysql status
/etc/init.d/mysql stop
apt install -y php7.4-mysql
Code: Alles auswählen
D E I N S T A L L A T I O N
Quelle: https://www.davidkehr.com/turnkey-linux-php-7-deinstallieren/
apt purge php7.*
apt-get autoremove --purge
whereis php
rm -rf /etc/php
Code: Alles auswählen
N E U I N S T A L L A T I O N
apt install php php-fpm
Code: Alles auswählen
C H E C K
Quelle: https://www.thegeekdiary.com/how-to-check-the-php-version-on-linux/
# php --version
# php -v
# rpm -qa | grep php
# apt list --installed | grep php
# echo "<?php phpinfo();?>" > /var/www/html/phpinfo.php
http://server/phpinfo.php
http://192.168.1.100/phpinfo.php
http://127.0.0.1/phpinfo.php
Code: Alles auswählen
E R G E B N I S (A U S Z U G)
PHP 7.4.11 (cli) (built: Oct 18 2020 19:44:48) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.11, Copyright (c), by Zend Technologies
Code: Alles auswählen
F E H L E R C O D E S
root@debian-server:~# systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:
Active: failed (Result: exit-code) since Thu 2020-10-22 11:14:17 CEST; 1h 26m
Docs: https://httpd.apache.org/docs/2.4/
Process: 27641 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAIL
Okt 22 11:14:17 debian-server apachectl[27641]: AH00558: apache2: Could not reli
Okt 22 11:14:17 debian-server apachectl[27641]: (98)Address already in use: AH00
Okt 22 11:14:17 debian-server apachectl[27641]: (98)Address already in use: AH00
Okt 22 11:14:17 debian-server apachectl[27641]: no listening sockets available,
Okt 22 11:14:17 debian-server apachectl[27641]: AH00015: Unable to open logs
Okt 22 11:14:17 debian-server apachectl[27641]: Action 'start' failed.
Okt 22 11:14:17 debian-server apachectl[27641]: The Apache error log may have mo
Okt 22 11:14:17 debian-server systemd[1]: apache2.service: Control process exite
Okt 22 11:14:17 debian-server systemd[1]: apache2.service: Failed with result 'e
Okt 22 11:14:17 debian-server systemd[1]: Failed to start The Apache HTTP Server
Code: Alles auswählen
nano /etc/apache2/sites-enabled/000-default.conf
....
<VirtualHost *:80>
nano /etc/apache2/ports.conf
Code: Alles auswählen
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
Code: Alles auswählen
Creating config file /etc/php/7.4/fpm/php.ini with new version
NOTICE: Not enabling PHP 7.4 FPM by default.
NOTICE: To enable PHP 7.4 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.4-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Created symlink /etc/systemd/system/multi-user.target.wants/php7.4-fpm.service → /lib/systemd/system/php7.4-fpm.service.
php7.4 (7.4.11-6+0~20201018.31+debian10~1.gbpdc1a93) wird eingerichtet ...
php-fpm (2:7.4+79+0~20201020.27+debian10~1.gbp95ec92) wird eingerichtet ...
php (2:7.4+79+0~20201020.27+debian10~1.gbp95ec92) wird eingerichtet ...
Trigger für man-db (2.8.5-2) werden verarbeitet ...
Trigger für systemd (241-7~deb10u4) werden verarbeitet ...
Trigger für php7.4-cli (7.4.11-6+0~20201018.31+debian10~1.gbpdc1a93) werden verarbeitet ...
Trigger für php7.4-fpm (7.4.11-6+0~20201018.31+debian10~1.gbpdc1a93) werden verarbeitet ...
NOTICE: Not enabling PHP 7.4 FPM by default.
NOTICE: To enable PHP 7.4 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.4-fpm
NOTICE: You are seeing this message because you have apache2 package installed.[/quote]
Daher habe ich folgendes als su ausgeführt
[codw]a2enmod proxy_fcgi setenvif[/quote]
und
[code]a2enconf php7.4-fpm[/quote]
Hier noch die letzten Fehlercodes aus dem LOG:
[quote]
[Sun Sep 13 00:01:02.418206 2020] [mpm_event:notice] [pid 791:tid 1$(Debian) configured -- resuming normal operat$
[Sun Sep 13 00:01:02.418261 2020] [core:notice] [pid 791:tid $504] AH00094: Command line: '/usr/sbin/apache2'
[Sun Sep 13 08:51:56.576874 2020] [mpm_event:notice] [pid 791:tid $AH00491: caught SIGTERM, shutting down
Code: Alles auswählen
nano access.log.1
192.168.1.21 - - [30/Jun/2020:19:02:08 +0200] "GET / HTTP/1.1" 200 3380 "-" "Mo$
192.168.1.21 - - [30/Jun/2020:19:02:08 +0200] "GET /icons/openlogo-75.png HTTP/$
192.168.1.21 - - [30/Jun/2020:19:02:08 +0200] "GET /favicon.ico HTTP/1.1" 404 4$