Current time: 10-06-2024, 01:23 PM Hello There, Guest! (LoginRegister)


Post Reply 
Apache - Logs für User
Author Message
chems Offline
Junior Member
*

Posts: 46
Joined: Mar 2009
Reputation: 0
Post: #1
Apache - Logs für User
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.
04-16-2009 12:26 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Apache - Logs für User
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
04-16-2009 12:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
chems Offline
Junior Member
*

Posts: 46
Joined: Mar 2009
Reputation: 0
Post: #3
RE: Apache - Logs für User
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
04-16-2009 03:37 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: Apache - Logs für User
Also wenn das funktioniert dann ist was mir deiner Cron nicht OK ?!
Was sagt denn das Syslog zum Cronablauf, irgendwelche Fehler ?

Greez BeNe
04-16-2009 03:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
chems Offline
Junior Member
*

Posts: 46
Joined: Mar 2009
Reputation: 0
Post: #5
RE: Apache - Logs für User
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.
(This post was last modified: 05-28-2009 08:40 AM by chems.)
05-28-2009 08:38 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: Apache - Logs für User
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
05-29-2009 06:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
chems Offline
Junior Member
*

Posts: 46
Joined: Mar 2009
Reputation: 0
Post: #7
RE: Apache - Logs für User
Jap, dasselbe Ergebnis habe ich auch, die Berechtigungen sind genau gleich.
05-31-2009 12:56 AM
Find all posts by this user Quote this message in a reply
chems Offline
Junior Member
*

Posts: 46
Joined: Mar 2009
Reputation: 0
Post: #8
RE: Apache - Logs für User
Keiner mehr irgendwie eine Idee ?
06-03-2009 07:34 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #9
RE: Apache - Logs für User
Poste bitte mal deine ispCP Cron - vielleicht ist da ja was falsch.

Greez BeNe
06-03-2009 05:05 PM
Visit this user's website Find all posts by this user Quote this message in a reply
chems Offline
Junior Member
*

Posts: 46
Joined: Mar 2009
Reputation: 0
Post: #10
RE: Apache - Logs für User
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.
(This post was last modified: 06-08-2009 05:21 PM by BeNe.)
06-08-2009 06:59 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 5 Guest(s)