Hallo allerseits. Ich schon wieder.
Auf meinem Linux Server läuft 16.04 mit installiertem Apache2, mysql und php. Außerdem sind noch Samba, phpmyadmin und Webmin installiert.
Apache2 meldet sich bei Aufruf der ipadresse, phpmyadmin und auch Webmin funktionieren einwandfrei. Ich habe eine Datenbank namens owncloud erstellt. Der Aufruf von 192.168.178.34/owncloud bringt nach der installation aber nur einen 404 Fehler. Also nicht gefunden.
Ich habe das ignoriert und habe mir erstmal ein SSL Zertifikat besorgt:
1 | sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt |
Dieses habe ich in der etc/apache2/sites-available/default-ssl.conf hinterlegt und die Standardeinträge habe ich mit # deaktiviert. Die default-ssl.conf habe ich mittels sudo a2ensite default-ssl.conf aktiviert.
Ein anschließender Neustart von Apache bringt mir: Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
Mit der Fehlermeldung kann ich aber nichts anfangen:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | administrator@srv1:~$ systemctl status apache2.service apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: active (running) (Result: exit-code) since So 2019-01-13 14:24:28 CET; 5 Docs: man:systemd-sysv-generator(8) Process: 22109 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 28026 ExecReload=/etc/init.d/apache2 reload (code=exited, status=1/FAILU Process: 26600 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS Tasks: 6 Memory: 16.5M CPU: 636ms CGroup: /system.slice/apache2.service ├─26616 /usr/sbin/apache2 -k start ├─27706 /usr/sbin/apache2 -k start ├─27707 /usr/sbin/apache2 -k start ├─27708 /usr/sbin/apache2 -k start ├─27709 /usr/sbin/apache2 -k start └─27710 /usr/sbin/apache2 -k start Jan 13 15:16:57 srv1 systemd[1]: Reloading LSB: Apache2 web server. Jan 13 15:16:57 srv1 apache2[28026]: * Reloading Apache httpd web server apache2 Jan 13 15:16:58 srv1 apache2[28026]: * Jan 13 15:16:58 srv1 apache2[28026]: * The apache2 configtest failed. Not doing an Jan 13 15:16:58 srv1 apache2[28026]: Output of config test was: Jan 13 15:16:58 srv1 apache2[28026]: apache2: Syntax error on line 219 of /etc/apac Jan 13 15:16:58 srv1 apache2[28026]: Action 'configtest' failed. Jan 13 15:16:58 srv1 apache2[28026]: The Apache error log may have more information Jan 13 15:16:58 srv1 systemd[1]: apache2.service: Control process exited, code=exit Jan 13 15:16:58 srv1 systemd[1]: Reload failed for LSB: Apache2 web server. |
Das log habe ich gefunden.
1 2 3 4 | [Sun Jan 13 15:08:35.738087 2019] [mpm_prefork:notice] [pid 26616] AH00171: Graceful restart requested, doing restart 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 [Sun Jan 13 15:08:35.776048 2019] [mpm_prefork:notice] [pid 26616] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations [Sun Jan 13 15:08:35.776067 2019] [core:notice] [pid 26616] AH00094: Command line: '/usr/sbin/apache2' |
nachdem ich mit a2dissite die default-ssl.conf wieder außer Betrieb genommen habe läuft auch der Apache wieder sauber hoch. Nur leider verstehe ich das Problem noch nicht bzw funktioniert owncloud leider immer noch nicht.
Ich hoffe es hat jemand Zeit für mein Problem und kann mir helfen. Ich bin ehrlich gesagt schon froh daß ich es geschafft habe den Apache wieder zum laufen zu bringen.
Gruß Martin
Moderiert von Cruiz:
Dieses Thema ist verschoben worden. Bitte beachte die als wichtig markierten Themen („Welche Themen gehören hier her und welche nicht?“)!