Hallo,
Vielen Dank erst einmal an
botswanabub , llutz
und hyle.
nach dem Statement apache2ctl -S war auch noch keine PHP-Datei lauffähig.
Also habe ich eben den raspberry neu aufgesetzt, um den vermutlich 'einfacheren' Weg von hyle
zu beschreiten.
-> apache und php wurde mit
installiert.
Das Ergebnis danach sieht fast identisch zu den ehemaligen Problemen aus:
pi@raspberrypi:~ $ apache2
[Tue May 19 23:38:16.141558 2020] [core:warn] [pid 20862] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot
-> keine Verbesserung
##########
pi@raspberrypi:~ $ systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:
Active: active (running) since Tue 2020-05-19 23:35:58 CEST; 25min ago
Docs: https://httpd.apache.org/docs/2.4/
Main PID: 20361 (apache2)
Tasks: 7 (limit: 4915)
Memory: 7.3M
CGroup: /system.slice/apache2.service
├─20361 /usr/sbin/apache2 -k start
├─20363 /usr/sbin/apache2 -k start
├─20364 /usr/sbin/apache2 -k start
├─20365 /usr/sbin/apache2 -k start
├─20366 /usr/sbin/apache2 -k start
├─20367 /usr/sbin/apache2 -k start
└─20660 /usr/sbin/apache2 -k start
Mai 19 23:35:58 raspberrypi systemd[1]: Starting The Apache HTTP Server...
Mai 19 23:35:58 raspberrypi apachectl[20357]: AH00557: apache2: apr_sockaddr_inf
Mai 19 23:35:58 raspberrypi apachectl[20357]: AH00558: apache2: Could not reliab
Mai 19 23:35:58 raspberrypi systemd[1]: Started The Apache HTTP Server.
lines 1-20/20 (END)
-> keine Verbesserung
##########
pi@raspberrypi:~ $ apache2ctl -S
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33 not_used
Group: name="www-data" id=33 not_used
Doch die Ausgabe einer php-Datei funktioniert nun endlich !
<?php
phpinfo();
?>
liefert:
im Laufe des Tages werde ich wiringpi, 433Utils etc installieren und schauen, ob die Schaltersteuerung über php-Seiten funktioniert.
- verursacht die fehlende o.g. Config variable ${APACHE_RUN_DIR} vielleicht noch Probleme?
- wo und wie wird sie am besten formuliert?