How Can I Setup Logrotate To Rotate Domlogs?

Jun 30, 2008

i have a little issue with the domlogs folder.

I should empty this files but i don't know if it is possible to do without reboot Apache.

a) how can i setup logrotate to rotate domlogs?
And if it is possible:

b) how can i setup logrotate to rotate domlogs without restart apache?

I have already setup whm-> tweak settings to delete old domain's access logs after stats run and the whm is setup to generate statistics every 20 hours.

But every day the site is slowly because the domlogs are too big.

View 6 Replies


ADVERTISEMENT

Domlogs 2 Copies?

Apr 1, 2008

This I noticed after updating the cpanel/webhost manager to v 11.x

There are not 2 copies of the access log, both updating live, the first one which was always there is at

/usr/local/apache/domlogs/account.com

and the second one at:

/usr/local/apache/domlogs/account/account.com

Does anyone know why there is a need to keep and update 2 log files and how I can go back 1 access log?

View 5 Replies View Related

Domlogs Cancellation

Jan 28, 2007

I want to close this /usr/local/apache/domlogs/ logs for all domain how can I do?

View 7 Replies View Related

Large Apache Domlogs

Jun 18, 2009

to delete and reset the domlogs files from Apache server, as they have become too large, but I want to keep a record of the past few years website stats.

I could download the domlogs files (they look like MS-DOS applications) but once I have I am not sure how to read them, is there some off server application that could open these files? I currently view stats in awstats from cPanel, but the size of the files is causing problems with updating now.

The only thing I can think of doing is taking screenshots of the relevant stats that I want to keep, before deleting the files, but was thinking there must be a better solution than that.

View 5 Replies View Related

Rotating Apache Domlogs For 7 Days

Dec 19, 2007

I've been trying to get the domlogs to rotate and be held for 7 days but have been unsuccessful. Someone came up with this code a while back but it goes a little funky and creates backups of backups domain.com.1.gz.1.gz.1.gz etc. Does anyone know whats wrong with this rotate script?

Code:
/usr/local/apache/domlogs/* {
daily
compress
missingok
rotate 7
sharedscripts
postrotate
/etc/init.d/httpd restart > /dev/null
endscript
}
thewird

View 0 Replies View Related

Rotating Apache Domlogs For 7 Days

Aug 23, 2007

Is there any way to rotate apache domlog files but only keep them for 7 days?

View 11 Replies View Related

Rotate Log

Jul 27, 2007

what the purpose of rotating log files is and how often should I do it?

Reason I ask is I installed Logview (www.logview.org) on my server today, and noticed it was there. I also noticed my mail log was 850 megs, which is a lot in my opinion.

View 2 Replies View Related

Apache Logrotate

Jun 22, 2009

This is our logrotate definition for Apache's logs folder:

Code:
/var/log/httpd/*log {
rotate 5
missingok
notifempty
size=100M
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}
Yet, while it does truncate logs in five, we seem to have fairly different sizes: 182M, 168M, 968M (!)... It seems to be ignoring "size=100M",

View 2 Replies View Related

Disable Logrotate

Oct 25, 2009

is it possible to disable log rotate? I can't seem to find the cron under my weeklys or dailys nor monthlys unless it's named "mad-db" but is there a way to make it say yearly? or just disable it all together? I say this because the script I use has a function already to clear the logs and when log rotate runs it kills all processes going by the script

View 8 Replies View Related

Rotate Logs

Feb 13, 2007

I have Apache making seperate log files for each of my virtual hosts and putting them in /home/vhostname/log. Rotatelogs makes a new log every 24 hours, but the logs quickly add up and since the sites are fairly busy the logs are at times over a gb. Is there any way to make rotatelogs delete the log files after two days? Or should I just use newsyslog?

View 2 Replies View Related

Sudden Awstats Domlogs Permission Denied Error

May 4, 2007

so after successfully installing and testing litespeed last night along on alternate port 1080 on my cpanel setup, I try to look at my cpanel's awstats this morning and:

Error: Couldn't open server log file "/usr/local/apache/domlogs/example.net" : Permission denied

(awstats has worked fine for 5 weeks now)

Googling for this shows other people with similar problem in the past but unfortunately no answers

I tried chmod -R 644 /usr/local/apache/domlogs
and looks like the owners are still correct

I'm at a loss and really screwed if I can't easily fix soon... any ideas?

(as a side note, litespeed has stopped working properly too but I've killed it for now)

View 3 Replies View Related

Change Frequency Of Logrotate

Jul 21, 2008

In /etc/logrotate.conf

I have the following:

Quote:

daily
rotate 7
create
compress
include /etc/logrotate.d
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 4
}

How can I keep my logs until the 18th of every month?

Would:
monthly
rotate 18

View 6 Replies View Related

Logrotate Cron Not Working

Jun 19, 2007

I recently purchased a new dedicated server, since I have had this server (8 days) I have being receiving the following email:

Quote:

/etc/cron.daily/logrotate:

error: error accessing /var/log/httpd: No such file or directory
error: httpd:1 glob failed for /var/log/httpd/*log

View 9 Replies View Related

/etc/resolv.conf Rotate

Sep 16, 2007

how to set up /etc/resolv.conf to use the rotate option.

I've tried:
options rotate
options timeout:2
nameserver X.X.X.X
nameserver X.X.X.X

Yes using NSLOOKUP and DIG both always return results from the first name server if it is up (no rotation) and when it is down, the timeout is the default 5 seconds (not the 2 that I specified) before going to the second name server.

View 1 Replies View Related

Changing Access_log Filename In Logrotate

Aug 4, 2008

how to rename access logs according to Week Number?

I notice that 1&1 do this, producing a file like "access.log.31.gz".
I'd like the access log to be in this format: access_log_[domain-name]_[Week-Number].gz, or if domain-name is not possible: access_log_[Week-Number].gz

Here's my current logrotate script for access_log:

Code:
/home/default/muro.co.uk/user/logfiles/access_log {
missingok
rotate 8
weekly
postrotate
/bin/kill -USR1 `cat /var/run/httpd.pid`
endscript
}

View 4 Replies View Related

Plesk 12.x / Linux :: Logrotate For Modsecurity

Aug 1, 2014

I want to create logrotate in logrotate.d for modsecurity log.

I find following code, but it don't works.

Code:
/var/log/modsec_audit.log {
rotate 7
compress
missingok
notifempty
sharedscripts
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}

View 1 Replies View Related

Doubt About Csf :: Check /etc/cron.daily/logrotate

Nov 1, 2009

i need information about this option 'Check /etc/cron.daily/logrotate for /tmp noexec workaround', there are in the server check, of the csf test, someone can explain to me about this function? should do it?

the actually state is 'warning'.

View 12 Replies View Related

Plesk 12.x / Linux :: After Mod Security Logrotate New Log Is Empty

Jul 6, 2014

Plesk 12 on Centos 6.5

I added the following to my /etc/logrotate.conf

/var/log/modsec_audit.log {
missingok
daily
rotate 4
compress
}

I'm not exactly sure if the above is the correct syntax, but the result was that two days later my current modsec_audit.log was Gzipped and a new modsec_audit.log was created.

The problem is that nothing was logged to this new file.

From the Plesk 12 control panel I turned off mod security and then turned it back on again and hey presto, the new logfile started to log events.

This leaves the problem of why nothing was recorded when the file was created.

View 2 Replies View Related

Plesk 11.x / Linux :: Maillog Didn't Rotate?

Aug 17, 2014

I'm working with OS CentOS 6.4 (Final) Panel version 11.0.9 Update #61 and using qmail as my default mail server.

Now I checked my maillog (/usr/local/psa/var/log/maillog) but It didn't maintenance daily as usual.

View 12 Replies View Related

Plesk 12.x / Linux :: Error During Automatic Backup - Unable To Rotate Dump

Jun 20, 2014

Ii got the following error during automatic Backup:

Unable to rotate dump: The dump rotation is failed with code '1' at /opt/psa/admin/bin/plesk_agent_manager line 1041.

I used Plesk Version 12.0.18. The Backup is created, but i following this error Message.

View 8 Replies View Related

Plesk 12.x / Linux :: FTP Backup Fails Error - Unable To Rotate Dump

Dec 12, 2014

On our Centos 6.5 Vps with Plesk 12.0.18 the scheduled backup to a personal repository ftp fails every time with this error:

ERROR: () Unable to rotate dump: The dump rotation is failed with code '126' at /usr/local/psa/admin/bin/plesk_agent_manager line 1041.

ERROR: () Can't upload file 'clients/vorrei-cloud/domains/vorrei.org/backup_vorrei.org_info_1412130307.xml' to ftp. Error code: 1

On the target server there are nothing.

View 1 Replies View Related

Plesk 12.x / Linux :: Unable To Rotate Dump - The Dump Rotation Is Failed With Code 121

Feb 4, 2015

I have enabled the backup rotation of some websites to my "Personal FTP Repository", the problem is that Plesk is unable to do it due this error:

Code:
Unable to rotate dump: The dump rotation is failed with code '121' at /usr/local/psa/admin/bin/plesk_agent_manager line 1041.

I read here [URL] .... that it should be solved but I have the version 12.0.18 Update #33, why does it persist?

View 5 Replies View Related

Coppermine "crop And Rotate" Issue

Aug 2, 2008

After moving my sites to a my own dedicated server I have some problems with the "crop and rotate" at my coppermine gallery. I get this error:

"Critical error
There was an error while processing a database query"

And this is the error message I got when I enabled the debug mode:


While executing query "UPDATE cpg149_pictures
SET pheight = ,
pwidth = ,
filesize = 4096,
total_filesize = 221121
WHERE pid = '4581'" on 0

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
pwidth = ,
' at line 2

Some serveral people already tried to fix it but it didn't work.

View 1 Replies View Related

Dedicated Or Reseller Setup With Virtualization Or Decent Chroot Setup

Jul 31, 2008

As my clients' needs expand, they're asking for chroot ssh/sftp setup. I'm currently on a dedicated Linux setup but don't really have the time to set up a whole new box with full virtualization or investigate a full chroot solution (baby on the way), and to be honest it would be less hassle to move to a new provider than worry about down time with sites.

What I'm looking for:

- linux hosting
- hosting for 30+ accounts, some with several domains
- at least 6 IP addresses for SSL certs
- each account in a full chroot environment (ssh/sftp/ftp) so they can't poke around each others' files, or each account set up in a virtual machine setup (ie: openvz)
- maildir
- spamassassin
- php 5, mysql, perl 5.8.8
- suexec apache would be nice

View 3 Replies View Related

DNS Setup And FTP Setup [LXAdmin/HyperVM]

Aug 1, 2008

I have learnt it is harder to setup than I initially expected (since I have just moved from a shared hosting service). I am in need of some help setting up my DNS servers, as I am very confused. Here is most of the info I know:

1) I am running HyperVM

2) I've installed LXAdmin

3) I own the domain (purchased from xeodomains.com) runemart.com

4) My VPS hostname is: vps.runemart.com

5) I know my IP

6) My host has said:

'For VPS customers that have a HyperVM login you can now host forward DNS on the DNS servers rdns1.vaserv.com (US)rdns2.vaserv.com (UK'

And I am unsure what this means/how to do it.

I am not sure if I need some more information to set up my DNS, however I am sure that I can get it if I do.

Now, my questions begin. Firstly, I need to point my domain - runemart.com - somewhere. I believe I need to set up my DNS via HyperVM or LXAdmin so that they are something like: ns1.runemart.com and ns2.runemart.com. Though, is this correct? Am I able to set up my own actual domain name servers, or will my domain have to point at something like rdns2.vaserv.com?

If anyone can assist me in this I would be very greatful, as I am waiting to get my website running. This is all I will ask for now, I will take it one step at a time =).

View 14 Replies View Related

NAS Setup

Jul 10, 2009

I am currently researching and evaluating Network Attached Storage systems and was wondering whether anyone out there has had previous experiences (good or bad) with any particular setup?

I am particularly curious to know:

1- what kind of a performance hit I can expect when data is stored on a NAS and accessed via ethernet over iSCSI as opposed to regular SATA or SCSI.

2- what pre-built NAS system would you recommend for a system that requires about 8 TB of disk space for file data and needs to have 100% uptime? I've been looking at: [url]

However I don't know what sort of limitations this hardware offers as far as simultaneous disk reads/writes go.

View 14 Replies View Related

VPN Setup

Apr 27, 2009

I need to setup a vpn for a customer so they can access a development server. I'm running a Tomcat server and an Oracle database that they would need access to, both port 80(or 8080) and port 1521. This needs to be secured as there is customer data that needs to be protected.

This server will be part of our existing servers we rent from Pacificrack. I really would appreciate any suggestions as the best way to do this, short of buying my own cisco or checkpoint firewall with vpn.

View 2 Replies View Related

How To Setup SAN

Nov 1, 2009

how to setup SAN either on Windows or Linux?

View 3 Replies View Related

VPS And VPN Setup

Apr 22, 2009

We like to setup VPS and VPN accounts on our new server Centos 5.2,

Any recommendations for appropriate programs and web hosting panels?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved