Apache :: How To Display SSL / TLS Errors In Log Files
Feb 28, 2014
I have installed Apache httpd and setup a SSL/TLS connection. SSL/TLS is working without a problem. I can clearly see httpS address in browser.
What I have found out that if browser gets some SSL/TLS error like trying to establish SSL/TLS connection with old protocol and web server refuses connection there is no error in SSL/TLS log recorded. I would like that every SSL/TLS attempt with error is recorded in ssl_error.log file. How to define settings in Apache config files to enable SSL/TLS error logging?
After upgrade to Parallels plesk v 12.0.18 update #5 we were getting a blank screen. We have managed to get logged into the server but have errors - plus all the websites are down with a 404 error Apache Server at gardenbuildings.domainame.co.uk Port 443.
On the Plesk management it is showing: New configuration files for the Apache web server were not created due to the errors in configuration templates:
mkdir: cannot create directory `/var/www/vhosts/system/domainname.com/conf': No such file or directory mktemp: failed to create file via template `/var/www/vhosts/system/domainname.com/conf/httpd.conf.XXXXXX': No such file or directory Can not create temporary file .
Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.
Also when trying to resolve the issues and generating all configuration files I am getting this error:
I have a problem in PHP Errors Log/Display in PHP 5.4.15 FastCGI
In my configuration "C:Program Files (x86)ParallelsPleskAdditionalPleskPHP54php.ini"
error_reporting = E_ALL & ~E_NOTICE display_errors = On display_startup_errors = On log_errors = On log_errors_max_len = 1024
In my Plesk Web Panel Settings For the domain
error_reporting 32767 <- For 5.4.x display_errors on log_errors on
I made a PHP error in test file
Code:
<?php echo eeeee; ?>
It should give me error in line 2 [ Display & Log ] the error. but it don't do anyone of them it gave me 500 Internal Server Error and it's not logging the error to the directories
C:inetpubvhostsDomain.comstatisticslogs OR C:Program Files (x86)ParallelsPleskadminlogsphp_error.log
C:Program Files (x86)ParallelsPleskadminlogsphp_error.log <--- Successfully logging Errors Like [14-Dec-2013 13:12:07 UTC] rrdtool execution failed: ERROR: fetching cdp from rra
I tried to add ac new subscription and this failed.No I have an inconsistent subscription and get the following error: New configuration files for the Apache web server were not created due to the errors in configuration templates:
Template processing failed: file = /opt/psa/admin/ conf/ templates/ default/domainVhost.php, error = Template_Exception: No data. file: /opt/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Variable_Exception: No data. file: /opt/psa/admin/plib/Template/Variable/AbstractCachedData.php line: 67 code: 0. Detailed error descriptions were sent to you by email.click here to generate broken configuration files once again or here to generate all configuration files.
I am trying to display a page, from the content site, through an iFrame, on the Moodle site, and am getting a console.log error message of "Refused to display 'http://subdomain.myCompany.com/index.php' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'."
I have been doing a lot of reading and it sounds like the X-Frame-Options is deprecated and that I should be controlling things through Content-Security-Policy and frame-ancestors. How do I allow content from a sub-domain to load into an iFrame on my moodle site?
On our production service, we've been getting numerous malformed POST requests to some of our CGI scripts that are showing up as 500 errors in our logs. They are malformed in the sense that the actual content length doesn't match the Content-Length specified in the request.
Here's the most trivial example I can come up with that reproduces the problem for us:
In addition to the 500 error in the access log, we see the corresponding error in the error log:
(70014)End of file found: Error reading request entity data
Based on the nature of the POST request and the error response, it does appear that Apache is doing the right thing here.
The POST never actually makes it as far as the script being targeted (/some_valid_alias in the above example); in other words, Apache returns 500 to the client, writes the error to the error log and never executes the script.
Is there a way to capture/avoid internal Apache errors like 70014, and return some other HTTP status besides 500 (like 403)? It's particularly annoying in our case, because our server sends us an email for all 500 errors.
So far, our best "defense" against these 500 errors is to disallow POST for these aliases, which normally just ignore the POST data anyway (when the request is not malformed):
Whenever am trying to post anything there server load increse upto 90 and Post takes so much time to publish.
and at that time sometime am getting this error
Error establishing the database connection
Here is the screenshot of the Cpanel stats:
[url]
and am getting these error in my apache error logs
[Wed Oct 28 19:46:19 2009] [error] [client 222.103.225.163] File does not exist: /usr/local/apache/htdocs/webadmin [Wed Oct 28 19:46:19 2009] [error] [client 222.103.225.163] File does not exist: /usr/local/apache/htdocs/myadmin [Wed Oct 28 19:46:18 2009] [error] [client 222.103.225.163] File does not exist: /usr/local/apache/htdocs/mysql [Wed Oct 28 19:46:18 2009] [error] [client 222.103.225.163] File does not exist: /usr/local/apache/htdocs/mysqlmanager [Wed Oct 28 19:46:17 2009] [error] [client 222.103.225.163] File does not exist: /usr/local/apache/htdocs/sqlmanager [Wed Oct 28 19:46:17 2009] [error] [client 222.103.225.163] File does not exist: /usr/local/apache/htdocs/admin [Wed Oct 28 19:46:16 2009] [error] [client 222.103.225.163] File does not exist: /usr/local/apache/htdocs/PMA [Wed Oct 28 19:46:16 2009] [error] [client 222.103.225.163] File does not exist: /usr/local/apache/htdocs/web [Wed Oct 28 19:46:16 2009] [error] [client 222.103.225.163] File does not exist: /usr/local/apache/htdocs/db [Wed Oct 28 19:46:15 2009] [error] [client 222.103.225.163] File does not exist: /usr/local/apache/htdocs/phpMyAdmin [Wed Oct 28 19:46:15 2009] [error] [client 222.103.225.163] File does not exist: /usr/local/apache/htdocs/phpmyadmin
I am sorry. We are not able to resolve the File Does Not Exist errors for you. You have to do it own.
The unique errors that you have today for Apache are as follows:
client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind File does not exist: /usr/local/apache/htdocs File does not exist: /usr/local/apache/htdocs/501.shtml File does not exist: /usr/local/apache/htdocs/images, referer: [url] File does not exist: /usr/local/apache/htdocs/jailbreak-iphone-3-0-1-with-redsn0w File does not exist: /usr/local/apache/htdocs/robots.txt Invalid method in request x16x03x01 Invalid method in request x80bx01x03x01 # Invalid URI in request alt="Follow%20via%20FreiendFFeed"%20title="Follow%20via%20FriendFeed"%20border="0"%20height="16"%20width="16"%20/>Home Top%20StuffiPhoneWindows%207FirefoxVistaTipsWordpressSubscribeSitemapAdvertise xc2xa0xc2xa0xc2xa0Vertical1240899%20=%20false;ShowAdHereBanner1240899%20=%20true;RepeatAll1240899%20=%20false;NoFollowAll1240899%20=%20false;Ban nerStyles1240899%20=%20new%20Array(%20%20%20%20"a{display:block;font-size:11px;color: HTTP/1.1 PHP Fatal error: Call to a member function get() on a non-object in /home/technob2/public_html/wp-includes/cache.php on line 93 PHP Fatal error: Call to a member function get() on a non-object in /home/technob2/public_html/wp-includes/cache.php on line 93, referer: [url] PHP Fatal error: Call to a member function get() on a non-object in /home/technob2/public_html/wp-includes/cache.php on line 93, referer: [url] PHP Fatal error: Call to a member function get() on a non-object in /home/technob2/public_html/wp-includes/cache.php on line 93, referer: [url] PHP Fatal error: Call to a member function get() on a non-object in /home/technob2/public_html/wp-includes/cache.php on line 93, referer: [url] request failed: error reading the headers
I would advise that you resolve as many of these errors as you are able.
As to what caused the load on your server, I can't say. There is nothing in your logs to indicate the source of the problem. During the 1PM period when your server overloaded last there were only 29 errors in Apache. The errors that occurred during this time would not cause excessive load.
I have installed a script to monitor your server. If this load issue occurs again within one week or before your next reboot, whichever comes first, we should be able to determine the source from the script's logs in /var/log/sys-snap.sh.
It seems with the latest version of 2.2.24 I've had to change the ProxyPass address in http-virtualhosts to the actual address of the web server itself (Websphere / tomcat) and not the reversproxy (Apache). It seems like originally we had it looking like this more or less: ProxyPass / ajp://localhost:8009 but now have ProxyPass / ajp://webserverip:8009 and it's working that way. Which way is correct and if this isn't the correct way how do I fix this? I was getting 503 errors when it was connected to localhost (along with ajp errors) but I was able to telnet to the webserver on 8009 successfully.
I used a little vServer with ubuntu (turnkey) and use logwatch to be informed by email about any errors. I'm confused about the following errors from Apache:
--------------------- httpd Begin ------------------------ Requests with error response codes 404 Not Found http://translate.google.com/gen204: 1 Time(s) http://www.teddybrinkofski.com/ip_json.php: 1 Time(s) 503 Service Unavailable http://www.google.com/: 1 Time(s) ---------------------- httpd End -------------------------
These errors are definetly not from my own code. I have checked that mod_proxy is disabled and i disabled also CONNECT like here described: [URL] ....
What does these errors mean and how can i disabled this?
So I've got a problem where a small percentage of incoming requests are resulting in "400 bad request" errors and I could really use some input. At first I thought they were just caused by malicious spiders, scrapers, etc. but they seem to be legitimate requests.
I'm running Apache 2.2.15 and mod_perl2.
The first thing I did was turn on mod_logio and interestingly enough, for every request where this happens the request headers are between 8000-9000 bytes, whereas with most requests it's under 1000. Hmm.
There are a lot of cookies being set, and it's happening across all browsers and operating systems, so I assumed it had to be related to bad or "corrupted" cookies somehow - but it's not.
I added "%{Cookie}i" to my LogFormat directive hoping that would provide some clues, but as it turns out half the time the 400 error is returned the client doesn't even have a cookie. Darn.
Next I fired up mod_log_forensic hoping to be able to see ALL the request headers, but as luck would have it nothing is logged when it happens. I guess Apache is returning the 400 error before the forensic module gets to do its logging?
By the way, when this happens I see this in the error log:
request failed: error reading the headers
To me this says Apache doesn't like something about the raw incoming request, rather than a problem with our rewriting, etc. Or am I misunderstanding the error?
I'm at a loss where to go from here. Is there some other way that I can easily see all the request headers? I feel like that's the only thing that will possibly provide a clue as to what's going on.
How can i prevent error 302 in my site? for example, this [URL] .... is showing a status 200
But this same [URL] .... is showing me a status 302 (note the lack of forward slash)
Every folder in my site is showing this 302 error, so i tried to do a redirect in order to fix this, but its not working.
I think its the htaccess doing this kind of redirects in my hole site but I am new to this file, so i dont know how to fix this. Rules in my htaccess are here:
(I cant write into htaccess, but I can see the content of the file)...
I'm noticed I was getting bounced email errors from a company I was sending email through and I further investigated this by running a dnsreport on my domain.
Turns out that it fails at Acceptance of NULL <> sender, Acceptance of postmaster address, and Acceptance of abuse address. The domain that I ran a test on is using a new IP that I had recently added to my Direct Admin server. None of the other domains on my server are having issues like this.
Is is possible that I need to do something to enable these new IP addresses in exim? I mean, exim obviously responds to that IP address, but it seems to be having some issues with it.
to open EML files on apache webserver, actually when I load an eml (outlook email message) by using an URL, it shows the email code, it is not pasing it correctly.
What libraries (apache or system) do I need installed to parse this kind of files?
My server is with Centos OS. I have a cache directory which has tons of scrap files. I am unable to delete it. rm -rf dirname gives an error.Is there any way to remove this directory quickly.
how can i hide all files and directories in public_html so when using apps suck Flash Get Site Explorere and similar software it will not show any file or directories in public_html.
I have a client that is certain someone is trying to hack her web-portal. I need to set up something that will alert me on suspicious activity on the server. For example someone fiddling with requests trying to make SQL / shell .. injection and similar threats.
Does any tool (for example bash script with grep) exist that would parse the raw apache logs and report if something is suspicious. Apache logs don't show the POST data so I am talking to admin to setup dump_io apache mod that enables this.
Or am I going into wrong direction here and there is whole another way to do this? I searched the web and forums for anything like this and didn't find anything.
I have moved my sites from old server with Apache 1.3 to new one with Apache 2.2.4. Since that time, the error log is full of these lines:
Code: [Wed Jul 04 05:36:32 2007] [error] [client 212.47.9.194] File does not exist: /home/domain/public_html/russia [Wed Jul 04 05:36:39 2007] [error] [client 212.47.9.194] File does not exist: /home/domain/public_html/russia [Wed Jul 04 05:36:45 2007] [error] [client 213.192.18.2] File does not exist: /home/domain/public_html/italy [Wed Jul 04 05:36:57 2007] [error] [client 83.8.104.181] File does not exist: /home/domain/public_html/mexico The access logs show even more accesses, so sometimes the same page is ok, sometimes it is logged here. The strange thing is that these files (pages) exist! They are accessible through the browser without any problem.
Do you have any idea where could be the problem? It would helped me lot, I am unable to find any real problem now, when error log is full of these.
My OS is Ubuntu 6.06. I use mod_rewrite through .htaccess. I can provide list of apache modules, if it helps.