• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] XAMPP und systemd ... mal wieder

admine

Ultimate Guru
Hallo Leute,

vor einiger Zeit habe ich ja mit eurer Hilfe meinen xampp.service unter systemd zum Laufen bekommen:
http://forum.linux-club.de/viewtopic.php?f=116&t=116517&hilit=xampp

Inzwischen habe ich oS13.2 und der Service startet nicht mehr vollständig:
Code:
systemctl status xampp.service 
xampp.service - XAMPP
   Loaded: loaded (/etc/systemd/system/xampp.service; enabled)
   Active: active (running) since Sun 2015-01-11 11:42:54 CET; 3h 15min ago
  Process: 1182 ExecStart=/xampp/lampp/xampp start (code=exited, status=0/SUCCESS)
  Process: 1178 ExecStartPre=/bin/echo Starting xampp (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/xampp.service
           ├─1267 /bin/sh /opt/lampp/bin/mysqld_safe --datadir=/opt/lampp/var/mysql --pid-file=/opt/lampp/var/mysql/linux.pid
           ├─1506 proftpd: (accepting connections)
           └─1630 /opt/lampp/sbin/mysqld --basedir=/opt/lampp --datadir=/opt/lampp/var/mysql --plugin-dir=/opt/lampp/lib/mysql/plugin/ --user=mysql --log-error=/opt/...

Jan 11 11:42:41 linux echo[1178]: Starting xampp
Jan 11 11:42:48 linux xampp[1182]: Starting XAMPP for Linux 1.8.3-4...
Jan 11 11:42:54 linux xampp[1182]: XAMPP: Starting Apache...ok.
Jan 11 11:42:54 linux xampp[1182]: XAMPP: Starting MySQL...ok.
Jan 11 11:42:54 linux xampp[1182]: XAMPP: Starting ProFTPD...redirecting to systemctl start .service
Jan 11 11:42:54 linux xampp[1182]: ok.
Jan 11 11:42:54 linux proftpd[1506]: linux.aaa.bbb - ProFTPD 1.3.4c (maint) (built Wed Apr 9 2014 15:05:16 CEST) standalone mode STARTUP
So ist eine lokale Webseite nicht aufrufbar (kein httpd).
Gefunden im xampp error-log-Files:
Code:
[Sun Jan 11 11:42:54.001934 2015] [ssl:warn] [pid 1234] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Jan 11 11:42:54.015494 2015] [ssl:warn] [pid 1234] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 11 11:42:54.015755 2015] [suexec:notice] [pid 1234] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Sun Jan 11 11:42:54.082691 2015] [auth_digest:notice] [pid 1235] AH01757: generating secret for digest authentication ...
[Sun Jan 11 11:42:54.092049 2015] [auth_digest:error] [pid 1235] (17)File exists: AH01762: Failed to create shared memory segment on file /opt/lampp/logs/authdigest_shm.1235
[Sun Jan 11 11:42:54.092101 2015] [auth_digest:error] [pid 1235] (17)File exists: AH01760: failed to initialize shm - all nonce-count checking, one-time nonces, and MD5-sess algorithm disabled
[Sun Jan 11 11:42:54.092111 2015] [:emerg] [pid 1235] AH00020: Configuration Failed, exiting
In keinem anderen Log-File habe ich schlüssiges gefunden :( aber welche Konfiguration kann hier fehlen?
Ich kann den Service nach dem Booten restarten und alles läuft dann Bestens:
Code:
linux:~ # systemctl restart xampp.service 
linux:~ # systemctl status xampp.service 
xampp.service - XAMPP
   Loaded: loaded (/etc/systemd/system/xampp.service; enabled)
   Active: active (running) since Sun 2015-01-11 15:05:06 CET; 3s ago
  Process: 4506 ExecStart=/xampp/lampp/xampp start (code=exited, status=0/SUCCESS)
  Process: 4503 ExecStartPre=/bin/echo Starting xampp (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/xampp.service
           ├─4539 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
           ├─4570 /bin/sh /opt/lampp/bin/mysqld_safe --datadir=/opt/lampp/var/mysql --pid-file=/opt/lampp/var/mysql/linux.pid
           ├─4593 proftpd: (accepting connections)
           ├─4936 /opt/lampp/sbin/mysqld --basedir=/opt/lampp --datadir=/opt/lampp/var/mysql --plugin-dir=/opt/lampp/lib/mysql/plugin/ --user=mysql --log-error=/opt/...
           ├─4961 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
           ├─4963 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
           ├─4964 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
           ├─4965 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
           ├─4966 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
           └─4967 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP

Jan 11 15:05:05 linux echo[4503]: Starting xampp
Jan 11 15:05:05 linux xampp[4506]: Starting XAMPP for Linux 1.8.3-4...
Jan 11 15:05:06 linux xampp[4506]: XAMPP: Starting Apache...ok.
Jan 11 15:05:06 linux xampp[4506]: XAMPP: Starting MySQL...ok.
Jan 11 15:05:06 linux xampp[4506]: XAMPP: Starting ProFTPD...redirecting to systemctl start .service
Jan 11 15:05:06 linux proftpd[4593]: linux.aaa.bbb - ProFTPD 1.3.4c (maint) (built Wed Apr 9 2014 15:05:16 CEST) standalone mode STARTUP
Jan 11 15:05:06 linux xampp[4506]: ok.
Dann im error_log:
Code:
[Sun Jan 11 15:05:06.001655 2015] [ssl:warn] [pid 4538] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Jan 11 15:05:06.001838 2015] [ssl:warn] [pid 4538] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 11 15:05:06.002067 2015] [suexec:notice] [pid 4538] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Sun Jan 11 15:05:06.066412 2015] [auth_digest:notice] [pid 4539] AH01757: generating secret for digest authentication ...
[Sun Jan 11 15:05:07.001879 2015] [ssl:warn] [pid 4539] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sun Jan 11 15:05:07.001944 2015] [ssl:warn] [pid 4539] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 11 15:05:07.002184 2015] [lbmethod_heartbeat:notice] [pid 4539] AH02282: No slotmem from mod_heartmonitor
[Sun Jan 11 15:05:07.364105 2015] [mpm_prefork:notice] [pid 4539] AH00163: Apache/2.4.9 (Unix) OpenSSL/1.0.1g PHP/5.5.11 mod_perl/2.0.8-dev Perl/v5.16.3 configured -- resuming normal operations
[Sun Jan 11 15:05:07.364179 2015] [core:notice] [pid 4539] AH00094: Command line: '/opt/lampp/bin/httpd -E /opt/lampp/logs/error_log -D SSL -D PHP'
Was kann das Problem sein?
 

spoensche

Moderator
Teammitglied
Das SSL Zertifikat ist ein CA Zertifikat und kein Hostzertifikat. Ändere das mal.

Die Datei bzw. das Shared Memory Segment /opt/lampp/logs/authdigest_shm.1235 existiert bereits. Überprüfe vor dem nächsten Start ob die Datei schon existiert und lösche sie wenn sie existiert. Ist evtl. noch ein Zombie von einem vorherigen start am laufen?
 
OP
A

admine

Ultimate Guru
spoensche schrieb:
Die Datei bzw. das Shared Memory Segment /opt/lampp/logs/authdigest_shm.1235 existiert bereits. Überprüfe vor dem nächsten Start ob die Datei schon existiert und lösche sie wenn sie existiert. Ist evtl. noch ein Zombie von einem vorherigen start am laufen?
Ich hab da einige Files liegen:
Code:
ls -ltr /opt/lampp/logs/auth*
-rw-r--r-- 1 root root 8 Dec 29 12:53 /opt/lampp/logs/authdigest_shm.1478
-rw-r--r-- 1 root root 8 Dec 29 15:33 /opt/lampp/logs/authdigest_shm.1396
-rw-r--r-- 1 root root 8 Dec 30 09:39 /opt/lampp/logs/authdigest_shm.1230
-rw-r--r-- 1 root root 8 Dec 30 19:50 /opt/lampp/logs/authdigest_shm.1233
-rw-r--r-- 1 root root 8 Dec 31 09:34 /opt/lampp/logs/authdigest_shm.1235
-rw-r--r-- 1 root root 8 Jan  1 13:17 /opt/lampp/logs/authdigest_shm.1239
-rw-r--r-- 1 root root 8 Jan  2 15:16 /opt/lampp/logs/authdigest_shm.1234
-rw-r--r-- 1 root root 8 Jan  3 11:01 /opt/lampp/logs/authdigest_shm.1267
-rw-r--r-- 1 root root 8 Jan  3 11:15 /opt/lampp/logs/authdigest_shm.1238
-rw-r--r-- 1 root root 8 Jan  4 13:02 /opt/lampp/logs/authdigest_shm.3822
-rw-r--r-- 1 root root 8 Jan  5 17:10 /opt/lampp/logs/authdigest_shm.1240
-rw-r--r-- 1 root root 8 Jan  7 17:05 /opt/lampp/logs/authdigest_shm.1228
-rw-r--r-- 1 root root 8 Jan  8 16:21 /opt/lampp/logs/authdigest_shm.1232
-rw-r--r-- 1 root root 8 Jan  9 18:43 /opt/lampp/logs/authdigest_shm.2215
-rw-r--r-- 1 root root 8 Jan 11 15:05 /opt/lampp/logs/authdigest_shm.4539
:roll:
 

spoensche

Moderator
Teammitglied
Dafür das er nicht startet, sind das wirklich viele.;)

Stop Xampp mal und lösche händisch ggf. noch existierende *.shm Dateien. Danach startets du den Xampp und postest bitte ggf. aufgetretende Fehlermeldungen.
 
OP
A

admine

Ultimate Guru
spoensche schrieb:
Stop Xampp mal und lösche händisch ggf. noch existierende *.shm Dateien. Danach startets du den Xampp und postest bitte ggf. aufgetretende Fehlermeldungen.
Ich lösche die Files mal heute vorm shutdown und schau morgen nach dem Booten ... denn beim Restart des Service gab es ja keine Probleme. Er lief nur nicht fehlerfrei nach dem Booten.
 

drcux

Hacker
Warum installiert man sich so nen Rotz? Mit YaST ist das doch auch ohne den Quatsch mit ein paar Klicks erledigt...
 
Oben