Related Content
Solving Query Performance Problems With The MySQL Slow Query Log
MySQL's slow query log is a key component in your MySQL administration setup. Whilst normal logging can help you in terms of tracking down issues with your database system, the slow query log can help you track down issues in your database setup before they become problematic.
Creating An Authentication System With PHP and MariaDB
Using frameworks to handle the authentication of your PHP application is perfectly fine to do, and normally encouraged. They abstract away all of the complexity of managing users and sessions that need to work in order to allow your application to function.
Don't Validate And Format In A Single Function
I wanted to impart a piece of advice to do with validation and formatting of user input, although I've never seen anyone suggest it. I guess it would come under the single responsibility principle so it might seem obvious to some people.
Allowing Cached HTTPS Traffic From Drupal With Varnish And Pound
Turning Off Apache Basic Authentication For A Single Directory
When setting up staging sites or similar I often add a simple Apache authentication check in order to stop everyone from viewing the site. This is also useful in stopping search engine spiders from accessing a site with testing content on it, which generally causes trouble. It isn't amazingly secure, but it keeps almost everyone out.
IE8 Downloading docx Files As zip On Apache
I recently built a Drupal site on an Apache server setup and everything seemed fine until someone running IE8 tried to download a .docx file. For some reason IE8 insisted that this file was a .zip file and would open it as such, causing a bit of confusion as to what the problem was.
Comments
Submitted by Jamie Bicknell on Mon, 04/20/2009 - 19:01
PermalinkSubmitted by Anonymous on Tue, 05/18/2010 - 10:27
PermalinkSubmitted by Anonymous on Fri, 01/21/2011 - 14:44
PermalinkHi Phil,
It's Christmas eve and I am sipping eggnog searching keywords "Apache logs MySQL". I just found this article! Please checkout my more complete version. Merry Christmas!
Imports Apache Access & Error logs into MySQL Schema of tables, functions & views designed to normalize data. Consolidate logs from multiple Servers and unlimited Domains with audit trail & error logging.
https://github.com/WillTheFarmer/ApacheLogs2MySQL
Submitted by Will Raymond on Tue, 12/24/2024 - 22:34
PermalinkThanks Will! That's a pretty comprehensive little application. Nice one!
I haven't added logs to mysql for a few years. If I remember correctly I used this system to import a bunch of logs into mysql format so that I could search them. Indeed, if you look at the filenames I was still using Windows at the time, hence the need for a solution of any kind that Windows just couldn't do.
Have you heard of Logstash (https://www.elastic.co/logstash)? That's pretty much the equivalent of this system now, although it does take a bit of setting up to get working.
Submitted by philipnorton42 on Tue, 12/24/2024 - 22:54
PermalinkAdd new comment