Läuft mein apache zweimal?

gammla

Member
Hallo!
Mir kommt da auf dem Server etwas komisch vor!

Kurz die Eckdaten:
Suse 10.2 mit SA24

Hier erstmal die Ausgabe von "ps aux":
Code:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0    740   288 ?        Ss   Apr13   0:01 init [3]
root         2  0.0  0.0      0     0 ?        S    Apr13   0:00 [migration/0]
root         3  0.0  0.0      0     0 ?        SN   Apr13   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S<   Apr13   0:00 [events/0]
root         5  0.0  0.0      0     0 ?        S<   Apr13   0:00 [khelper]
root         6  0.0  0.0      0     0 ?        S<   Apr13   0:00 [kthread]
root         9  0.0  0.0      0     0 ?        S<   Apr13   0:00 [kblockd/0]
root        10  0.0  0.0      0     0 ?        S<   Apr13   0:00 [kacpid]
root       133  0.0  0.0      0     0 ?        S<   Apr13   0:00 [cqueue/0]
root       134  0.0  0.0      0     0 ?        S<   Apr13   0:00 [kseriod]
root       176  0.0  0.0      0     0 ?        S    Apr13   0:00 [pdflush]
root       177  0.0  0.0      0     0 ?        S    Apr13   0:00 [pdflush]
root       178  0.0  0.0      0     0 ?        S<   Apr13   0:00 [kswapd0]
root       179  0.0  0.0      0     0 ?        S<   Apr13   0:00 [aio/0]
root       430  0.0  0.0      0     0 ?        S<   Apr13   0:00 [kpsmoused]
root       784  0.0  0.0      0     0 ?        S<   Apr13   0:00 [ata/0]
root       785  0.0  0.0      0     0 ?        S<   Apr13   0:00 [ata_aux]
root       905  0.0  0.0      0     0 ?        S<   Apr13   0:00 [md1_raid1]
root       917  0.0  0.0      0     0 ?        S<   Apr13   0:01 [kjournald]
root       961  0.0  0.1   1932   624 ?        S<s  Apr13   0:00 /sbin/udevd --daemon
root      1310  0.0  0.0      0     0 ?        S<   Apr13   0:00 [khubd]
root      1850  0.0  0.0      0     0 ?        S<   Apr13   0:00 [md0_raid1]
100       2199  0.0  0.1   3552   920 ?        Ss   Apr13   0:00 /usr/bin/dbus-daemon --system
root      2208  0.0  0.1   1584   536 ?        Ss   Apr13   0:00 /sbin/acpid
root      2237  0.0  0.1   1824   648 ?        Ss   Apr13   0:00 /sbin/resmgrd
root      2283  0.0  0.3   3252  1716 ?        Ss   Apr13   0:00 /usr/sbin/polkitd
101       2294  0.0  0.7   5280  3772 ?        Ss   Apr13   0:00 /usr/sbin/hald --daemon=yes
root      2295  0.0  0.2   2952  1100 ?        S    Apr13   0:00 hald-runner
root      2660  0.0  0.2   3020  1212 ?        S    Apr13   0:00 /usr/lib/hal/hald-addon-cpufreq
101       2667  0.0  0.1   2028   900 ?        S    Apr13   0:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root      2816  0.0  0.0   1616   256 ?        Ss   Apr13   0:00 /sbin/dhcpcd -C -H -D -K -N -t 999999 -h h1385133 -c /etc/sysconfig/network/scripts/dhcpcd-h
root      2964  0.0  0.1   2108   656 ?        Ss   Apr13   0:00 /sbin/syslog-ng -a /var/lib/named/dev/log
root      2972  0.0  0.1   1720   532 ?        Ss   Apr13   0:00 /sbin/klogd -c 1 -x -x
root      3003  0.0  0.0   1580   420 ?        S    Apr13   0:00 /usr/sbin/courierlogger -pid=/var/run/authdaemon.courier-imap/pid -start /usr/lib/courier-au
root      3004  0.0  0.1   3532   832 ?        S    Apr13   0:00 /usr/lib/courier-authlib/authdaemond
root      3007  0.0  0.2   2636  1280 ?        S    Apr13   0:00 /bin/sh /usr/bin/mysqld_safe --mysqld=mysqld --user=mysql --pid-file=/var/lib/mysql/mysqld.p
root      3009  0.0  0.2   5712  1396 ?        Ss   Apr13   0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
root      3069  0.0  0.0   3532   364 ?        S    Apr13   0:00 /usr/lib/courier-authlib/authdaemond
root      3070  0.0  0.0   3532   364 ?        S    Apr13   0:00 /usr/lib/courier-authlib/authdaemond
root      3071  0.0  0.0   3532   364 ?        S    Apr13   0:00 /usr/lib/courier-authlib/authdaemond
root      3072  0.0  0.0   3532   364 ?        S    Apr13   0:00 /usr/lib/courier-authlib/authdaemond
root      3073  0.0  0.0   3532   364 ?        S    Apr13   0:00 /usr/lib/courier-authlib/authdaemond
mysql     3075  0.1  3.1  91764 16372 ?        Sl   Apr13   1:07 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/my
root      3078  0.0  0.0   1580   332 ?        S    Apr13   0:00 /usr/sbin/courierlogger -pid=/var/run/imapd.pid -start -name=imapd /usr/lib/courier-imap/cou
root      3079  0.0  0.0   1680   504 ?        S    Apr13   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup -noidentl
root      3094  0.0  0.0   1580   332 ?        S    Apr13   0:00 /usr/sbin/courierlogger -pid=/var/run/imapd-ssl.pid -start -name=imapd-ssl /usr/lib/courier-
root      3104  0.0  0.0   1676   500 ?        S    Apr13   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup -noidentl
root      3121  0.0  0.0   1576   416 ?        S    Apr13   0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d.pid -start -name=pop3d /usr/lib/courier-imap/cou
root      3122  0.0  0.1   1680   528 ?        S    Apr13   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup -noidentl
root      3141  0.0  0.0   1576   328 ?        S    Apr13   0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d-ssl.pid -start -name=pop3d /usr/lib/courier-imap
nobody    3144  0.0  0.0   1632   432 ?        Ss   Apr13   0:00 /sbin/portmap -i 127.0.0.1
root      3152  0.0  0.0   1680   504 ?        S    Apr13   0:00 /usr/lib/courier-imap/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup -noidentl
root      3221  0.0  0.0      0     0 ?        S<   Apr13   0:00 [kondemand/0]
root      3225  0.0  0.1   3572   992 ?        S    Apr13   0:00 /usr/sbin/vsftpd
named     3234  0.0  0.5  30912  3020 ?        Ssl  Apr13   0:00 /usr/sbin/named -t /var/lib/named -u named
root      3238  0.0  0.1   2304   976 ?        Ss   Apr13   0:00 /usr/sbin/xinetd
ntp       3276  0.0  0.2   4552  1312 ?        Ss   Apr13   0:00 /usr/sbin/ntpd -p /var/lib/ntp/var/run/ntp/ntpd.pid -u ntp -i /var/lib/ntp
root      3294  0.0  0.2 106568  1080 ?        Ssl  Apr13   0:00 /usr/sbin/nscd
mail      3301  0.0  0.2   8520  1316 ?        Ss   Apr13   0:00 /usr/sbin/exim -bd -q30m
root      3319  0.0  0.1   1972   580 ?        Ss   Apr13   0:00 /usr/sbin/cron
root      3365  0.0  1.4  55068  7604 ?        Ss   Apr13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.sa24.conf -DSSL -DMAILMAN
sa24      3375  0.0  0.7  55068  3772 ?        S    Apr13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.sa24.conf -DSSL -DMAILMAN
sa24      3376  0.0  0.7  55068  3760 ?        S    Apr13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.sa24.conf -DSSL -DMAILMAN
sa24      3377  0.0  0.7  55068  3760 ?        S    Apr13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.sa24.conf -DSSL -DMAILMAN
sa24      3378  0.0  0.7  55068  3760 ?        S    Apr13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.sa24.conf -DSSL -DMAILMAN
sa24      3382  0.0  0.7  55068  3760 ?        S    Apr13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.sa24.conf -DSSL -DMAILMAN
root      3386  0.0  5.5  31448 28520 ?        Ss   Apr13   0:00 /usr/sbin/spamd -d -q -x -L -u spamd -r /var/run/spamd.pid
spamd     3390  0.0  5.3  31448 27304 ?        S    Apr13   0:00 spamd child
spamd     3391  0.0  5.2  31448 27200 ?        S    Apr13   0:00 spamd child
root      3399  0.0  0.1   2056   636 tty1     Ss+  Apr13   0:00 /sbin/mingetty --noclear tty1
root      3403  0.0  0.1   2056   640 tty2     Ss+  Apr13   0:00 /sbin/mingetty tty2
root      3404  0.0  0.1   2060   640 tty3     Ss+  Apr13   0:00 /sbin/mingetty tty3
root      3408  0.0  0.1   2056   636 tty4     Ss+  Apr13   0:00 /sbin/mingetty tty4
root      3410  0.0  0.1   2060   640 tty5     Ss+  Apr13   0:00 /sbin/mingetty tty5
root      3416  0.0  0.1   2056   636 tty6     Ss+  Apr13   0:00 /sbin/mingetty tty6
root      3428  0.0  0.0   1584   500 ttyS0    Ss+  Apr13   0:00 /sbin/agetty -L 57600 ttyS0 vt102
root      3471  0.0  0.0      0     0 ?        S<   Apr13   0:00 [kauditd]
root     10749  0.0  0.3   4416  1736 ?        S    Apr13   0:00 /usr/sbin/powersaved -d -f /var/run/acpid.socket -v 3
root     11767  0.0  1.5  55644  7804 ?        Ss   Apr13   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL -DMAILMAN
root     11768  0.0  0.0   1632   452 ?        S    Apr13   0:00 /usr/local/sa24/cronolog/cronolog --symlink=/usr/local/sa24/logfiles/pestalozzischule-lamper
root     11769  0.0  0.0   1636   460 ?        S    Apr13   0:00 /usr/local/sa24/cronolog/cronolog --symlink=/usr/local/sa24/logfiles/schule-ratgeber.de/acce
root     11770  0.0  0.0   1636   456 ?        S    Apr13   0:00 /usr/local/sa24/cronolog/cronolog --symlink=/usr/local/sa24/logfiles/rehmann-software.de/acc
wwwrun   15989  0.0  0.9  56044  4956 ?        S    09:59   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL -DMAILMAN
501      16029  0.2  3.0  26784 15912 ?        S    10:05   0:30 /srv/www/cgi-bin/php5
root     17772  0.0  0.5   9428  2800 ?        Ss   12:53   0:00 sshd: root@pts/0
root     17787  0.0  0.3   4280  1944 pts/0    Ss   12:54   0:00 -bash
wwwrun   18413  0.1  0.9  55908  4824 ?        S    12:56   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL -DMAILMAN
wwwrun   18430  0.0  0.9  55908  4800 ?        S    12:58   0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL -DMAILMAN
root     18470  0.0  0.1   2484   864 pts/0    R+   13:01   0:00 ps aux

Wenn ich mir das nun genau anschaue, macht es den Anschein, dass hier zwei Apache Dienste laufen. Zumindest, weil sie mit unterschiedlichen httpd.conf geladen werden.
Einmal
Code:
 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.sa24.conf -DSSL -DMAILMAN
und zum anderen
Code:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL -DMAILMAN

Beide werden wohl mit unterschiedlichen Konfigurationen geladen, woraus ich ableite, dass auch zwei Apache Dienste gestartet sind.
Sehe ich das richtig?

Wenn ich mir in yast die geladenen Dienste anschaue, finde ich auch zwei gestartete Apaches:

Code:
apache2            │Ja   │ │ │ │ │3│5│ │ │Apache 2.2 httpd
 │apache2.sa24       │Ja   │ │ │ │ │3│5│ │ │Apache2 httpd

Ist das denn normal?
Beide benutzen dei gleiche server-tuning.conf....
Habe ich dadurch den Vorteil, dass ich den "www-run" Apache von den modulen her ander konfigurieren kann, als den SA24 Apache?
Bzw. ist es nicht ausreichend, wenn ein Apache läuft?

Ich hoffe ihr könnt Licht ins Dunkle bringen!

Gruß,

gammla
 
Ich weiss nicht genau wie es bei SA24 ist, aber bei Plesk läuft beispielsweise ein Apache für das Plesk, der nur dies bedient, und einer für die Webseiten. Es könnte natürlich sein, dass auch SA24 einen eigenen Apache hat.

Das würde dann heissen, dass du den Apache von SA24 und den anderen für deine Webauftritte unterschiedliche konfigurieren kannst. Das ist ja mit unter auch der Sinn hinter dieser Sache.

Gruß Mordor
 
Ok, denke mal das da tatsächlich zwei apache Dienste laufen!
Der eine wird dann "nur" für die SA24 Umgebung sein, bei dem ssl etc benötigt wird!

Das Problem ist, dass ich den Apache Dienst für die normale Webseite ganz gerne anders konfigurieren würde. Ich brauche z.B. kein ssl und etliche andere Module nicht.

Hier der Verzeichnisinhalt von /etc/sysconfig

Code:
-rw-r--r-- 1 root root 31216 Mar  5  2007 SuSEfirewall2
-rw-r--r-- 1 root root   571 Mar  5  2007 amavis
-rw-r--r-- 1 root root  9435 Apr 12 12:43 apache2
-rw-r--r-- 1 root root  9411 Mar  5  2007 apache2.sa24.orig
-rw-r--r-- 1 root root   809 Apr 12 12:39 autofs
-rw-r--r-- 1 root root   522 Mar  5  2007 autoinstall
-rw-r--r-- 1 root root  1139 Apr 12 12:40 backup
-rw-r--r-- 1 root root    20 Feb  9  2007 bluetooth
-rw-r--r-- 1 root root  1389 Apr 12 12:40 boot
-rw-r--r-- 1 root root   545 Feb  9  2007 bootloader
-rw-r--r-- 1 root root   505 Feb  9  2007 bootsplash
-rw-r--r-- 1 root root    25 Apr 12 12:39 clamav-milter
-rw-r--r-- 1 root root   998 Apr 12 12:40 clock
-rw-r--r-- 1 root root  2982 Mar  5  2007 console
-rw-r--r-- 1 root root  3197 Apr 12 12:40 cron
-rw-r--r-- 1 root root   431 Apr 12 12:44 cups
-rw-r--r-- 1 root root   117 Feb  9  2007 displaymanager
-rw-r--r-- 1 root root   924 Mar  5  2007 exim
-rw-r--r-- 1 root root   781 Mar  5  2007 fam
-rw-r--r-- 1 root root  1325 Apr 12 12:41 fetchmail
drwxr-xr-x 4 root root  4096 Feb  9  2007 hardware
-rw-r--r-- 1 root root   390 Feb  9  2007 ide
-rw-r--r-- 1 root root  1143 Feb  9  2007 joystick
-rw-r--r-- 1 root root  3223 Apr 12 12:40 kernel
-rw-r--r-- 1 root root  2958 Feb  9  2007 keyboard
-rw-r--r-- 1 root root  3155 Apr 12 12:40 language
-rw-r--r-- 1 root root   842 Feb  9  2007 ldap
-rw-r--r-- 1 root root    19 Feb  9  2007 locate
-rw-r--r-- 1 root root   417 Mar  5  2007 lvm
-rw-r--r-- 1 root root   783 Apr 12 12:40 mail
-rw-r--r-- 1 root root  2490 Apr 10 22:29 mailman
-rw-r--r-- 1 root root  2492 Mar  5  2007 mailman.sa24.orig
-rw-r--r-- 1 root root   895 Mar 27  2007 mdadm
-rw-r--r-- 1 root root  1398 Feb  9  2007 mouse
-rw-r--r-- 1 root root  1922 Apr 12 12:43 named
-rw-r--r-- 1 root root  1025 Apr 12 12:41 net-snmp
drwxr-xr-x 6 root root  4096 Mar  5  2007 network
-rw-r--r-- 1 root root   193 Apr 12 12:40 news
-rw-r--r-- 1 root root  1095 Feb  9  2007 nfs
-rw-r--r-- 1 root root  2833 Mar  5  2007 ntp
-rw-r--r-- 1 root root   184 Mar  8  2007 portmap
-rw-r--r-- 1 root root  9125 Feb  9  2007 postfix
drwxr-xr-x 2 root root  4096 Mar  5  2007 powersave
-rw-r--r-- 1 root root  1289 Apr 12 12:40 proxy
-rw-r--r-- 1 root root   281 Feb  9  2007 saslauthd
-rw-r--r-- 1 root root  1950 Apr 12 12:37 scpm
drwxr-xr-x 2 root root  4096 Feb  9  2007 scripts
-rw-r--r-- 1 root root   336 Feb  9  2007 scsidev
-rw-r--r-- 1 root root  1080 Apr 12 12:40 security
-rw-r--r-- 1 root root   379 Feb  9  2007 services
-rw-r--r-- 1 root root   356 Apr 12 12:40 shutdown
-rw-r--r-- 1 root root  1188 Feb  9  2007 sound
-rw-r--r-- 1 root root   293 Apr 12 12:43 spamd
-rw-r--r-- 1 root root   281 Mar  5  2007 spamd.sa24.orig
-rw-r--r-- 1 root root   162 Apr 12 12:42 ssh
-rw-r--r-- 1 root root    44 Feb  9  2007 suse_register
-rw-r--r-- 1 root root  1723 Apr 12 12:40 suseconfig
-rw-r--r-- 1 root root   936 Mar  5  2007 svnserve
-rw-r--r-- 1 root root   313 Apr 12 12:40 sw_management
-rw-r--r-- 1 root root  1639 Apr 12 12:40 sysctl
-rw-r--r-- 1 root root  1479 Apr 12 12:41 syslog
-rw-r--r-- 1 root root  8009 Feb  9  2007 ulimit
-rw-r--r-- 1 root root   432 Apr 12 12:40 windowmanager
-rw-r--r-- 1 root root  1121 Feb  9  2007 ypbind

Normalerweise ändere ich ja in folgender Datei die zu ladenen Module:
Code:
-rw-r--r-- 1 root root  9435 Apr 12 12:43 apache2
Auf welche Datei greift denn dann der Apache Dienst von SA24 zu?
Könnte das diese hier sein?
Code:
-rw-r--r-- 1 root root  9411 Mar  5  2007 apache2.sa24.orig

Oder verwenden die beiden Dienste doch die "gleiche" Konfiguration, was natürlich zur Folge hätte, dass ich für meine "Webseiten" nicht gebrauchte Module mit laden müsste?

Bzw. wie kann ich rausfinden, auf welche Konfiguration der Apache von SA24 zugreift?

Viele Grüße,

gammla
 
Ich denk mal, dass die beiden Apache zwei unterschiedliche Konfigs verwenden. Es würde ja keinen Sinn machen, wenn dich dein Admin-Tool in der Konfiguration deiner Webseiten ausbremsen würde.

Aber probiers doch einfach aus. Speichere die orginale Konfig einfach als sicherheitskopie, und bearbeite sie dann. Wenn irgendwas nicht funktioniert, kannst du sie ja wieder zurückspielen.

Gruß Mordor
 
Hallo!
Mir kommt da auf dem Server etwas komisch vor!

Kurz die Eckdaten:
Suse 10.2 mit SA24

[..]
Beide werden wohl mit unterschiedlichen Konfigurationen geladen, woraus ich ableite, dass auch zwei Apache Dienste gestartet sind.
Sehe ich das richtig?
[..]
Ist das denn normal?
[..]
Gruß,
:D
gammla

gammla, wie schon von den anderen hier vermutet nutzt SA24 für seine Admin-Oberfläche DEFINITIV eine eigene Apache-Instanz, das ist so gewollt!

Hintergrund:

Wird durch falsche Konfigurationseinträge - u.U. auch via SA24 - mal eine ungültige Konfigurationsdatei für den "normalen" Apache Webserver geschrieben und dieser dann neu gestartet, so verweigert er u.U. seinen Dienst komplett.

Würde die SA24-Oberfläche ebenfalls über den gleichen Apache laufen, so wäre eine Korrektur über die Weboberfläche von SA24 nicht mehr möglich, was einem Selbstaussperren gleich käme. So hat SA24 aber seinen "eigenen Apache" und diese Gefahr besteht nicht.

Plesk geht in der Tat den gleichen Weg, während Confixx nur einen Apache nutzt, Confixx macht aber vor dem Apache-Restart einen Konfigurationstest, um ein "Selbstabschießen" zu vermeiden. Immerhin. :rolleyes:

Ich persönlich bevorzuge Confixx - preiswert (wenn auch nicht kostenlos), ohne Domain Limits und ich kann das Basissystemen und die erforderlichen Daemons (SMTP, POP3, IMAP, FTP....) selbst auswählen und muß sie mir nicht vom Admin-Tool (á la Plesk Autoinstaller) oder vom Provider xy (als Vorinstallation wie bei SA24/VISAS) vorschreiben lassen. Das erleichtert dann auch die Fehlersuche wenn was klemmt - ein selbst aufgesetztes System kennt man eben genau! :D Als Basis dient bei uns CentOS - ein kostenloser Red Hat Enterprise Linux Clone.

Gruß

MAS
 
Back
Top