Apache :: Preferred Method For Centralizing Logs
Mar 23, 2015Which method do you prefer for centralizing your logs: file monitoring or Pipe to Logger?
View 4 RepliesWhich method do you prefer for centralizing your logs: file monitoring or Pipe to Logger?
View 4 RepliesI have mod_security setup in WHM and am seeing a lot of these entries for various IP's.
Access denied with code 406 (phase 1). Match of "rx ^((?:(?:POS|GE)T|OPTIONS|HEAD))$" against "REQUEST_METHOD" required. [id "960032"] [msg "Method is not allowed by policy"] [severity "CRITICAL"]
i tried recompile Apache to install
--curl
--curl ssl
--mcrypt
by running /scripts/easyapache
then i get the error below. Can anyone help me out? i really dont know what todo here.
Checking Update System........Your operating system's rpm update method (yum) was not able to locate the glibc package. This is an indication of an improper set up. You must correct this error before you can proceed.
since i take server i got a lot of errors on my apche logs when i post this command on my shell:-
Code:
tail -f /usr/local/apache/logs/error_log
will coming a lot & fast error and not stop until i stop the apache:-
Code:
[Fri May 29 11:37:52 2009] [error] [client 77.167.228.165] File does not exist: /usr/local/apache/htdocs/40E80014354C4C30365047322020202020202020202020206C0000004D6600000001760000005CEB000530E1E8EEF4
[Fri May 29 11:37:52 2009] [error] [client 89.215.36.123] File does not exist: /usr/local/apache/htdocs/40E80014202020202020465032443031324B3842364842456C000000446600000001760000005CEB000530797F848A
[Fri May 29 11:37:52 2009] [error] [client 93.185.179.132] File does not exist: /usr/local/apache/htdocs/40E800006C000001596600000001760000005CEB0005307587A8B4
every thing is ok but i need to remove this error and i can't under stand from where comming ! "/usr/local/apache/htdocs"
I'm sure this question has been asked before, but I'm looking for a nice and simply way of breaking up log files into smaller chunks.
I've been running apache2 on a VPS for the past few months and one of the access.log files is now 700mb big... bit of a waste of space. I'm currently just doing:
CustomLog /var/www/logs/domain.com/access.log combined
ErrorLog /var/www/logs/domain.com/error.log
In my apache config.
Is there any easy way of telling apache to just keep the last week or months worth of logs?
I use linux server with Cpanel control panel.
default default apache logs folder is in /usr/local/apache/logs/error_log
I want to monitor errors . How can I have an error log file for each individual domain?
How can I extract a list of visitor ip addresses from apache logs for a cpanel account?
are there any tools that will do a whois lookup for all the IP's?
I've just taken a look at the raw apache logs on my cpanel machine here:-
/usr/local/cpanel/logs/access_log
And there are many hundreds of these:-
127.0.0.1 - - [06/03/2008:21:55:22 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:21:55:22 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:22:03:42 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:22:03:42 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:22:12:02 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:22:12:02 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:22:20:22 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:22:20:22 -0000] "GET / HTTP/1." 401 0 "" ""
what is happening to my server to generate these log entries?
I suspect that somebody is trying to do SQL injections on one of my websites. Is the POST information that is send using forms logged anywhere so I can read it in the same way I can read the GET requests in Apache logs?
View 6 Replies View RelatedSometimes when I try to restart Apache 2.4 using the supplied ApacheMonitor.exe I get this error. Then, I have to "taskkill /f /im httpd.exe" or wait like 30 sec before trying to start Apache again.
View 1 Replies View RelatedI have configure my Apache to create rotated logs for every periodic time. It worked fine with my local PC, but when it is being configured on to a server system, the actual error.log file is not being update, only the rotated logs are created. If i remove the Error Log command from httpd.conf for Error Log Rotation, again it works fine as usual.
View 1 Replies View RelatedI need to disable apache access logs. I commented out the access log path in /etc/httpd/conf/httpd.conf and restarted the server but it's still logging access.
View 3 Replies View Relatedi have apache 2 and centos with plesk . when i see my apache error log it shows me :
[Fri Dec 19 05:56:35 2008] [error] [client ::1] Directory index forbidden by Options directive: /var/
www/html/
I'm trying to configure an custom access_log file for an custom file called "extra.php"
How I can make an log file that's log only "extra.php" ....
I'm trying to configure Apache logs to split logs files for every virtual host on the server
for example: {site1 .com} => copy access_log to /home/site1/public_html/logs {site2 .com} => copy access_log to /home/site2/public_html/logs .. {site3 .com} => copy access_log to /home/site3/public_html/logs
i want to also to make sure is the logs files updated in the real time
operating system is CentOs6, with Apache and cPanel
is it possiable to delete these files in the server access_logs and errors_logs
View 1 Replies View RelatedWhat's your preferred Linux Distro for hosting?
From the web hosting company point of view that is.
I have been online since 95 and I've got a lot of information I could help others with regarding web development and interface design.
One thing I'm terrible at is System Administration, but I'm getting better and my first step is to pick a reliable operating system for both the webservers and the database servers. Would anyone be willing to answer the following questions or point me to a thread that already discusses these?
A little background, our site has 200k members, 30k active and is growing by about 5k a week. We still run MySQL 4.0.27 on the DB servers and they are running FC2. The webservers are Apache 1.3.37 and PHP 4.4.2 running FC2 and FC4 as well.
My questions
1. What OS would you prefer to upgrade to for the web servers? and a
"few" reasons why?
2. What OS would you prefer to upgrade to for the database servers?
and a "few" reasons why?
We currently have a managed server at a datacenter in Ontario, and the provider had always charged us in USD. This is fine with us, as most of our revenue is in USD and then we're not subject to currency risk.
Now that the Canadian dollar has reached parity and then exceeded the USD, I'm wondering more about this policy. Is it typical that datacenters in Canada price in USD, or is our provider the exception? They list prices on their site only in USD, despite being a Canadian company and only having facilities in Canada.
How can I configure a domain in plesk panel in order to show the domain with www (www.domain.tld)
Is the propertie "Preferred domain" in plesk 11.5 but in plesk 11.0.9 does not exist. How can I configure this?
If a create a subscription on a plesk Server through the API don't know how to specify the preferred domain and it's always set to domain.tld. I would like to set it to none for all.
My xml request:
Code:
<packet version="1.6.3.0">
<webspace>
<add>
[Code].....
Is it possible to set default value for 'Preferred domain' in domain hosting panel ?
For example we want for each new created domain + aliases to be redirected to www.domain.tld, so 'Preferred domain: www.domain.tld'
I'm receiving the following error whenever I try to edit any hosting settings
Unable to determine preferred php handler id
I've found the article for this on the Linux KB (which states to raise a support ticket) but nothing on Windows.
I am running Windows Server 2012 R2 with Plesk 12.0.18
Is there a way to change the default value of the "Preferred domain" option in the hosting settings of domains in Plesk 11.5? When ever i create a new subscription/domain it just defaults to the value of "domain.ltd" and i have to go into the hosting settings and manually change it to "None". Is there a way i can set it to use the "None" option every time i create new subscriptions or domains?
View 14 Replies View RelatedAfter upgrade plesk 11 to 11.5 there is a new feature in domain hosting settings which is called "Preferred domain"
We can not change the state of Preferred domain. It always remain domain.tld When we try to change it to "none" panel says "Information: The settings were successfully updated."
When we check hosting settings again Preferred domain section is domain.tld . due to that reason we r having lots of diffuculties. Lots web page down due to web.config file has redirection.
What is best method to secure the tmp?
1. /tmp mounted as noexec,nosuid?
2. creating /usr/tmp directory?
I was wondering what is the best backup method for 2 servers with over 3TB of data? Need the best backup solutions so if something happens sites are easy to get back online.
View 14 Replies View RelatedI have problem on my server that is when I try to download backup or when I try to upload vb froums producet I recive this message:
Method Not Allowed
The requested method GET is not allowed for the URL /backup-11.4.2008_18-10-25_ashaq.tar.gz.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
so what should I do to solve this problem?