ispCP - Board - Support
Apache - Logs für User - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega International Area (/forum-22.html)
+--- Forum: German Corner (/forum-26.html)
+--- Thread: Apache - Logs für User (/thread-6412.html)

Pages: 1 2


Apache - Logs für User - chems - 04-16-2009 12:26 AM

Hallo liebe Leute Smile

Ich habe eine Frage zu den Apache-Logs. Diese werden derzeit nicht nur für den host, sondern auch für alle Domains angelegt, dies klappt soweit.

Mich verwundert jedoch, warum die Logs nicht in den "Log - Verzeichnissen" der separaten User landen.

Ich nutze ISPCP 1.0 stable release auf einem Debian-Lenny.


RE: Apache - Logs für User - BeNe - 04-16-2009 12:55 AM

Sind denn welche unter unter /var/log/apache2/users/ ?
Es gibt einen extra CronJob der das erledigt:
Code:
# customer logs
@daily root /var/www/ispcp/engine/tools/ispcp-httpd-logs-mngr &>/var/log/ispcp/ispcp-httpd-logs-mngr.log
Was passiert wenn Du den manuell ausführst bzw. was steht in der /var/log/ispcp/ispcp-httpd-logs-mngr.log bei Dir drin ?

Greez BeNe


RE: Apache - Logs für User - chems - 04-16-2009 03:37 AM

Also, als ich den Befehl manuell ausführte, wurde dies sofort ausgeführt und die User haben nun die Logs in ihren Verzeichnissen.

Die ISPCP-httpd-logs-mngr.log ist jedoch leider leer Sad


RE: Apache - Logs für User - BeNe - 04-16-2009 03:54 PM

Also wenn das funktioniert dann ist was mir deiner Cron nicht OK ?!
Was sagt denn das Syslog zum Cronablauf, irgendwelche Fehler ?

Greez BeNe


RE: Apache - Logs für User - chems - 05-28-2009 08:38 AM

Also in der Syslog steht natürlich der aufgerufene Befehl. Also ausgeführt wird er erstmal.

Interessanter wird es dann in den ispcp-logs, hier mal kleine Beispiele:

/var/log/ispcp-backup-all-mngr.log:
Code:
/bin/sh: root: command not found

/var/log/ispcp-backup-ispcp-mngr.log:
Code:
/bin/sh: root: command not found

Das gleich auch in den Dateien:
  • ispcp-dsk-quoat.log
  • ispcp-httpd-logs-mngr.log
  • ispcp-srv-traff.log
  • ispcp-vrl-traff-correction.log
  • ispcp-vrl-traff.log

Die einzelnen Traffic-Logs der Seiten sind jedoch mit den Werten der übermittelten Daten gefüllt.

Interessant ist ja, dass die Befehle ausgeführt werden, wenn ich diese per Hand auf der Kommandozeile ausführe.

Meine Perl-Version ist die 5.10.0-19

Ich habe auch sicherheitshalber meinen Cronjob mit dem eines Freundes verglichen, es ist alles identisch von den Einträgen.


RE: Apache - Logs für User - BeNe - 05-29-2009 06:48 PM

Und bei einem ls bekommst Du das gleich ergebniss ?
Code:
# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Jan 23 07:13 /bin/sh -> bash

Greez BeNe


RE: Apache - Logs für User - chems - 05-31-2009 12:56 AM

Jap, dasselbe Ergebnis habe ich auch, die Berechtigungen sind genau gleich.


RE: Apache - Logs für User - chems - 06-03-2009 07:34 AM

Keiner mehr irgendwie eine Idee ?


RE: Apache - Logs für User - BeNe - 06-03-2009 05:05 PM

Poste bitte mal deine ispCP Cron - vielleicht ist da ja was falsch.

Greez BeNe


RE: Apache - Logs für User - chems - 06-08-2009 06:59 AM

Code:
# delayed tasks START.

# Quota
@daily root /var/www/ispcp/engine/quota/ispcp-dsk-quota &>/var/log/ispcp/ispcp-dsk-quota.log

# Traffic
0,30    *    *    *    *  root /var/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log
0,30    *    *    *    *  root /var/www/ispcp/engine/traffic/ispcp-vrl-traff &>/var/log/ispcp/ispcp-vrl-traff.log
15,45    *    *     *    *  root /var/www/ispcp/engine/traffic/ispcp-vrl-traff-correction &>/var/log/ispcp/ispcp-vrl-traff-correction.log

# customer logs
@daily root /var/www/ispcp/engine/tools/ispcp-httpd-logs-mngr &>/var/log/ispcp/ispcp-httpd-logs-mngr.log

# Backup
@daily root /var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log
@daily root /var/www/ispcp/engine/backup/ispcp-backup-ispcp noreport &>/var/log/ispcp/ispcp-backup-ispcp-mngr.log

# Remove config backups older than seven days
@daily root find /etc/ispcp/*/backup/* -maxdepth 0 -type f -mtime +7 -print | egrep '.*\.[0-9]+$' | xargs -r /bin/rm

# Remove Daemon Logs older than 14 days (except .gz files)
@daily root find /var/log/ispcp/* -maxdepth 1 -type f -mtime +14 -print | egrep '.*\.gz$' | xargs -r /bin/rm

# AWStats
15    */6    *    *    *    root /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl >/dev/null 2>&1

# Rootkit Hunter
0     */12    *    *    *    root /usr/bin/rkhunter  --cronjob --createlogfile /var/log/rkhunter.log >/dev/null 2>&1

# Chkrootkit
0     */12    *    *    *    root /usr/sbin/chkrootkit &> /var/log/chkrootkit.log

# Look for and purge old sessions every 30 minutes
0,30    *    *    *    *  root   /var/www/ispcp/engine/tools/ispcpphptemp.sh >/dev/null 2>&1

# [xxx.de] backup task START.
05    03    *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 2 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [xxx.de] backup task START.
05    03     *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 3 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [xxx.de] backup task START.
05    03    *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 5 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [xxx.de] backup task START.
05    03    *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 6 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [xxx.de] backup task START.
05    03    *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 9 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [xxx.de] backup task START.
05    03    *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 10 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [xxx.de] backup task START.
05    03    *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 11 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [xxx.de] backup task START.
05    03    *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 12 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [xxx.de] backup task START.
05    03    *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 13 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [xxx.de] backup task START.
05    03    *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 14 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [xxx.de] backup task START.
05    03    *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 15 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [xxx.de] backup task START.
05    03    *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 16 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [xxx.de] backup task START.
05    03    *    *    *  /var/www/ispcp/engine/backup/ispcp-bk-task xxx.de 17 &>/var/log/ispcp/bk-task-xxx.de.log
# [xxx.de] backup task END.

# [{DMN_NAME}] backup task START.
# [{DMN_NAME}] backup task END.

# [{DMN_NAME}]:{CRONJOB_ID} custom task START.
# [{DMN_NAME}]:{CRONJOB_ID} custom task END.

# [{DMN_NAME}] AWStats static tasks START.
# [{DMN_NAME}] AWStats static tasks END.

# delayed tasks END.


Hinweis: Die Domainnamen habe ich aus datenschutzrechtlichen Gründen mal mit xxx.de verfälscht.