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
ADVERTISEMENT
Nov 4, 2014
Is there any possibility to change the Frequency of the Wordpress Update Notification Mails?
It's very annoying for our Customers to get those Mails every day ... Once a week would be more than enough ...
View 4 Replies
View Related
Aug 6, 2007
Just a general question regarding the frequency which you all reboot your linux servers.
Mine has been up for 178 days, and is running sweet as a nut (touch wood). I was just wondering if it's worth giving it a reboot anytime soon, or if not, how long to give it before rebooting?
View 14 Replies
View Related
Jun 6, 2009
I have a website that runs 17 cron jobs...4 every minute...most every 5 minutes...the remaining few every hour or so. Can anyone please refer me to a host that allows this? The best I've found thus far is host for web but they require every five minutes.
View 1 Replies
View Related
May 13, 2007
I have 3 servers and use cPAnel which I will continue to do so as I see they have the greatest lifespan compared to the rest.
However, could anyone advise what will be the most resource-saving and easiest way to backup all customers data in case of failure?
How often do you guys backup?
Care to share your experience?
View 4 Replies
View Related
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
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
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
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
View Related
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
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
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
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
Feb 21, 2015
I have a client on a dedicated IP, today we needed to downgrade the web hosting plan. As the web hosting plan puts users on a default shared IP, this plan change also changed the dedicated IP to the shared one causing some propagation issues for a small period of time.
I have contacted WHMCS about this asking if they had a way of changing the clients plan but keeping the IP address intact as this could lead to some very undesirable outcomes. They explained that it is not their fault and to contact Parallels.
I know I can change the plan directly in Plesk however by initiating the plan change via WHMCS, everything is automated.
View 1 Replies
View Related
Feb 5, 2008
Has anyone helped clients transition from one domain to another? Maybe dissolving a partnership or renaming their company... so a new domain name has been registered and a new website created.
2 Issues:
#1 Using .htaccess 301 redirect
We used the following command line in their old website's htaccess file
Redirect 301 / [url]
The goal was to get people try to visit any page of their old website (i.e. OldWebsite.com/contact.html) redirected to their new website (i.e. NewWebsite.com/contact.html). Isn't that supposed to change the address bar's URL, too? For some reason, I visit their old site and I seem to be redirected to their new website but the address bar still has their old domain name? Something is going on???
#2 Having their new company name for 2 years now. People can enter her new company name in Google, MSN or Yahoo. Her new company name appears in the search results but has the old domain name associated with it. We are trying to get rid of any reference to that old domain name? What's the easiest way to do this? So what people see in search engines is:
New Company
Short Meta Description
www.OldDomain.com
What steps did I miss in this transition?
What steps do I have to take on their old website/old web server to control it's appearance on search engines and make sure people get to the new website?
View 2 Replies
View Related
May 17, 2009
A client of mine just recently asked for a new IP. His subscription near to expiry date.
He considering to renew but only will renew if I can give him a new IP. Not to buy another but instead a new IP to replace the old one. If it helps, he use the vps of his to run proxy, a socks proxy perhaps.
I am familiar with proxies and have quite an experienced running several group of successful proxies thus asking for an IP probably means his old IP is more than 50% blocked.
What do you think? Should I just change his IP?
View 10 Replies
View Related
Apr 24, 2008
We are moving to a new rack at our DC. Now the IP addresses will change.
BUT.. we have a mailserver running, and all users are pointed at the current name "mailserver.domain.com" which itself is pointing to the old IP.
So far so good...
BUT we need to move that server to the new rack, and so we need to change the IP. But if we change the IP in the DNS, it will take till 24 hours for all the providers to propogate the new IP. For those users, the mailserver will be offline.
How can we fix that properly? So that no-one has any serious downtime?
Anyone got a clue on how to do so?
View 1 Replies
View Related
Dec 9, 2008
root@linux [~]# lynx -dump [url]
Your ip is: 10.20.30.40
i want to change this ip to: 10.20.30.41 when i execute: lynx -dump [url]
i dont know how to do it.
View 1 Replies
View Related
Aug 7, 2007
I have a problem that am not able to connect with mssql_connect() function to MSSql server.
Error is: undefined function mssql_connect().
On local this problem is get solved by uncomment extension=mssql_php.dll and extension=mssql_pdo_php.dll line by removing ";" in front of it.
::But how do i same on the online server?.
::If possible with coding or is thr any other way to do this plz let me know?
::If thr is a way to change .htaccess file to make this change or any better solution with .htaccess..
::If thr ia a way to change the path for php.ini and we put our php.ini file in other folder and access that rather than php.ini on server.
View 2 Replies
View Related
Jan 26, 2007
One of my clients are wanting to use a 3rd party spam screening service, which is supposed to only require a change of their MX entry, but it's not working for me.
When I change the MX, and send a message to the account, I get the following message kicked back at me.
Quote:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
receiver@theirdomain.com
SMTP error from remote mail server after RCPT TO:<receiver@theirdomain.com>:
host mail.mailroute.net [199.89.0.201]: 554 5.7.1 <receiver@theirdomain.com>:
Relay access denied
------ This is a copy of the message, including all the headers. ------
Return-path: <me@mydomain.com>
Received: from d142-179-125-92.bchsia.telus.net ([142.179.125.92]:62140 helo=WorkLaptop)
by server.mydomain.com with esmtp (Exim 4.63)
(envelope-from <me@mydomain.com>)
id 1HAZU5-0000Rk-8c
for receiver@theirdomain.com; Fri, 26 Jan 2007 16:23:49 -0600
From: "Work" <me@mydomain.com>
To: <receiver@theirdomain.com>
Subject: Test
Date: Fri, 26 Jan 2007 14:23:49 -0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0045_01C74155.999394C0"
X-Mailer: Microsoft Office Outlook, Build 11.0.5510
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
Thread-Index: AcdBmJ0b1GRT8lMDSveqOjg5CgqmkA==
This is a multi-part message in MIME format.
I know this has something to do with my mail server only trying to send the message once, and not again. I'm setup with RHEL w/cPanel.
View 4 Replies
View Related
Apr 13, 2008
i have changed the nameservers in one of my domains and now on it is loading from new server but only when i type mydomain.com.. When i type www.mydomain.com my site stills loading for the old server...it have passed 12 hours from the time i made the change...it is something else i must do to have my site also available from the new server when someones type www.mydomain.com ?
View 3 Replies
View Related
Oct 28, 2009
I am teetering on the edge of over using my shared account and have decided it is time to move on to a VPS. This has been a long time coming, but the economy has held me back and now I am running out of options. I have looked at several hosts and just wanted some recommendations. Since this is the first time to run a VPS, I assume a managed VPS is better for me. I am currently looking at KnownHost.com and VPS.net since they are both well reviewed here. I would just like recommendation on what to consider based on my wants.
I do not need much horse power behind the server as I have just pushed passed 20meg of ram at my current host; about max for them. I need a LAMP setup (PHP5, MySQL 5) for 4-5 sites of which only two get any real traffic, the others are just family blogs.
So this is what I think I need, please feel free to make suggestions on hosts or other considerations.
1. 256meg of RAM.
2. 5-10 gig of space
3. CentOS
4. Control Panel - Have used CPanel
5. Less than 200 gig of bandwidth.
6. 2 IPs.
7. Can use Wordpress MU
View 14 Replies
View Related
Oct 1, 2009
How do I change start of authority (SOA) info, specifically I need to change the email listed?
View 1 Replies
View Related
Apr 16, 2009
i want to change my cpanel ip ( Lisence cpanel )
i get new lisence for another ip but now , when type /usr/local/cpanel/cpkeyclt get before lisence .
how can i change cpanel ip from ssh ?
View 7 Replies
View Related
Apr 17, 2009
i want to changing my ssh port from 22 to other .
so i have edit ssh_config and change 22 to for example 9000 .
and add 9000 in TCP_IN and TCP_OUT on my csf Config and delete 22 from them
and restart ssh .
but my ssh isnt login with 9000 and no effect .
View 6 Replies
View Related
May 23, 2009
I need a host that can change the php.ini for me. I'm pretty sure no shared hosting would do that. so I'm looking for a VPS option. can you pls advise me if a VPS host would change the php.ini for me ?
View 11 Replies
View Related
Jul 12, 2009
Is it possible to change DNS to a subdomain when the domain is hosted in a VPS?
What about for a dedicated server or a shared hosting?
View 8 Replies
View Related
Feb 6, 2009
my site is wplemon.com
how to change MX record for google e-mail(Premium)
and how to reset?
View 4 Replies
View Related
Apr 27, 2009
well i have this whm box.
I added a pair of new nameservers.
and then tried to delete the old nameservers .
Removing Nameserver Ip 11.11.112.11
The ip 11.11.112.11 is now ready for re-use as a different nameserver
then i click on nameservers and i see old ones again :/
what i done was change it in /etc/nameserverips
again when i click on whm / Nameserver IPs I see old nameservers!
View 9 Replies
View Related
Feb 1, 2008
I have a server with /var too small, then i move /var/lib/mysql to another location, i've changed in /etc/my.cnf.
Quote:
datadir=/home/mysqldir
socket=/home/mysqldir/mysql.sock
I can start / stop mysql but mysql & eximstats in WHM failed. I've try :
Quote:
mysql -vv
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
View 3 Replies
View Related