I have apache rotate the logs daily and keep them in the users home directory in /logs/, however; these logs pile up over time and I need to delete them by hand. What is the best way to automate deletion of these log files? For example, i'd like to delete the logs after 7 days of logging. Can I do this with newsystemlog or somethign similar? Or do I need a shell script?
I've had a problem a couple of times where there is a bad ftp connection to a host. A trace reveals that there is a node timing out. What is a good way to work around this. Web based ftp client or other solution?
I was checking my business server's IIS errors logs when I ran across the following error:
2007-05-19 08:21:10 00.000.000.00 2243 00.000.000.000 80 HTTP/1.1 GET
/w00tw00t.at.ISC.SANS.DFind 400 - Hostname -
Additional information about the those responsible for the hack attempts are as follows
(retrieved from domaintools.com):
CustName: ----------------(hidden by me) Address: Private Address City: Plano StateProv: TX PostalCode: 75075 Country: US RegDate: 2005-08-27 Updated: 2005-08-27
Apparently this person was trying to use the dfind hacker tool to find vulnerabilities on my server. The IP address belongs to AT&T Yahoo; and I've already contacted them by email. I believe that subsequent hack attempts have originated from this IP, however, the IP address has been masked by the use of proxies. I think that this may be someone I know because the IP is only about an hours drive from me. I'm starting to suspect a disgruntled former client who has friends living where that IP's from.
Has anyone here had any similar experiences?
What do you think AT&T Yahoo's response will be?
Is there anything else I can do or should not do?
I am also considering reimaging my server because of system issues but I am concerned that would erase any information needed for investigative purposes. I have saved my log files, though, on a CD but I'm thinking that AT&T Yahoo or whoever investigates this needs the server as it is.
I have a spider that is saving a few images files everyday on my servers. Due to the fact that the images are dynamically created the spider is not only saving them without an extention, but also using charachters from the link to create those file names.
I end up with:
0&Y=0 1&Y=0 2&Y=0 3&Y=0 .... and so on.
(there is no problems browsing those image files
What I need is to copy those files or move them to file names with an extention (png) for protection reasons.
I failed using cp, mv in doing so. it seams that the OS doesn't see those files as files.
We've been seeing sluggish performance on our mail gateways, and so I started doing some digging in the logs. It looks like we are filling up with messages like:
2007-05-16 12:22:16 Connection from [xx.xx.xx.xx] refused: too many connections
We have our max connections set to 20 (total, not host-specific) in exim4. So I started tailing the logs, and sure enough, we are getting bombarded with requests to email@example.com coming from all over the map. The requests are getting denied of course, but that doesn't help the connection issue since they are consuming all of them, preventing real mail (for the most part) from getting through.
What is the proper way to deal with something like this? I could certainly just up the max connections value from 20 to 40 or 50 or whatever, but I'm not sure what kind of performance impact that will have on the rest of the traffic going through our gateways.
Since the spam attempts are coming from all over the place, it doesn't seem like I can just firewall out a few addresses and be done with it.
This particular rack is a cluster of web and database servers behind two gateway boxes, which handle the mail traffic (so this problem is on the gateways, the actual mail server itself sits behind the gateways and never actually sees these fake emails).
I've been pretty happy with my servers with theplanet/ev1servers for the past, err, 5 years. But the OSes were out of date and it seemed like I could stand to get some significantly improved hardware for what I'm paying now (or, comparable hardware for a lot less).
I put in a RFQ from ThePlanet to see what I could do as far as upgrading my current server, hoping for something a little better than buying a new server while the old one is up and moving everything over, and also hopefully avoiding re-paying a one-time fee I had for a secondary hard drive.
Now I have no problem whatsoever with the result -- that my only option is to buy a new server, they won't migrate my HDs, and they won't upgrade my current server, and they won't give me any kind of credit for the second hard drive or let me transfer it to a new server. I get where they're coming form, even though it might make sense to figure out something a little better for a customer of 5 years that's dropped about $25k over that time period.
The problem is their sales staff. I'm surprised that theplanet (at least theplanet I remember from when I signed up) would have sales people so apathetic and basically useless.
Getting information I requested in my initial ticket took back-and-forth with a sales rep over the span of over 24 hours (and I still haven't really gotten an answer on one part, about my secondary hard drive). Actually looking at the ticket now, the initial response was over 24 hours after I opened a ticket (and it was opened during working hours).
Heck, the first two responses didn't even include a price for the hardware he wanted me to buy, just if I wanted to proceed and buy it.
Figuring it beats waiting I did one of their instant chats and before answering my questions I was told to be sure to give the guy credit for the servers I order. In fact, him telling me his contact information and to choose him were the only complete sentences I got, and roughly 80% of the communication I received.
I haven't needed support on my server recently, so I can't speak to if this is the quality of their support department now. I don't think I'll be around to find out though.
I couldn't keep my mouth shut (technically fingers). A customer wanted to upgrade servers and he needed a way to move the data across. Since I don't allow hard drives to be swapped, they have to do it manually all by themselves. I generally allow up-to 4 days for them to transfer data and make DNS changes, etc. But this time, I offered help! I agreed to move the data (darn me) and it just came out of me, involuntarily.
God knows what just happened... but in a positive way, customer is extremely happy!
Both servers are on cPanel - with root access (duh)
200 odd files which total to 25 GB
1 database about 100 MB in size (no biggie)
I was planning on using one of my Windows 2003 servers (via remote desktop) to download the 25 GB and upload the 25 GB, but that sounds like a waste of resources and time.
I've just uploaded my website files onto the server, the website is working fine, but I'm not sure my files are 'arranged' right. I uploaded my images in a folder, but all the rest of the files are 'loose' along with the index file. If I go to either of my domain names, the website appears, which is ok for now, but I only really intended it to under one domain name, so there may be problems if I want another site up there. I think my files should be in a folder. Is this right? Should the index file be in the same folder, or should it be outside the folder with the links changed accordingly. I've been emailing my hosting service, and they 've been trying to help, but I feel a bit thick because I don't really understand what they're saying. Could someone tell me in very plain english how the files should be arranged?
i just bought php file management script, its running smoothly, the only problem was i cant upload big file ( > 1 Gigs ) using that script, then i ask the developer and he said it shouldnt be a problem since he sold that software before people and he never got a problem like that.
OS : Slamd64 apache 2.2.10 php 5.2.8
i tried to changed post_max_size = 1900M upload_max_filesize = 1500M
im in the midst of doing my school final year project and i done some codings of asp pages but when i tried to upload to a linux server, i can only view the webpage with codes instead of the gui interface....i tried to upload my files to free asp host but same thing i cant view my webpages...
to upload this files online and present it to my teachers for grading...
the files are here [url]I hope i can find a free host dun need domain name with free ftp to upload these files and work properly...