Linux and Windows IT Support  

We make IT Support easy!

Windows, Apple and Linux IT support and services.

For Software and Web Development.

Login or Register  

If you wish to contribute an article, please login or register.

Who's Online  

We have 255 guests online

Parsing Apache access log files using PHP

php-logoThis is a bit dated, but I still come back to it. A small script (using regex) that parses apache log files. The data breakdown required:

IP ADDRESS - -
Server Date / Time [SPACE]
"GET /path/to/page
HTTP/Type Request"
Success Code
Bytes Sent To Client
Referer
Client Software

Friday, 24 February 2012 13:34
 

Exchange 2010 Error: Unable to mount database

exchange2010Q. My Exchange server crashed and I'm trying to mount the database, with no luck.

This is the error that I get:

 

--------------------------------------------------------
Microsoft Exchange Error
--------------------------------------------------------
Failed to mount database 'Mailbox Database'.
Mailbox Database 0610509261
Failed
Error:
Couldn't mount the database that you specified. Specified database: Mailbox Database; Error code: An Active Manager operation failed. Error: The database action failed. Error: Operation failed with message: MapiExceptionCallFailed: Unable to mount database. (hr=0x80004005, ec=-515)
. [Database: Mailbox Database, Server: server.domain.local].

An Active Manager operation failed. Error: The database action failed. Error: Operation failed with message: MapiExceptionCallFailed: Unable to mount database. (hr=0x80004005, ec=-515)
. [Database: Mailbox Database, Server: server.domain.local]

An Active Manager operation failed. Error: Operation failed with message: MapiExceptionCallFailed:
. [Server: server.domain.local]

MapiExceptionCallFailed: Unable to mount database. (hr=0x80004005, ec=-515)

Tuesday, 20 December 2011 09:34
   

Iterate through Hash of Hashes

perl logoHere's how you would iterate through multidimensional hashes in Perl:

Create a hash first:

#!/usr/bin/perl
use warnings;
use strict;

my %HoH = (
    flintstones => {
        husband   => "fred",
        wife   => "wilma",
        pal   => "barney",
    },
    jetsons => {
        husband   => "george",
        wife      => "jane",
        "his boy" => "elroy",  # Key quotes needed.
    },
    simpsons => {
        husband   => "homer",
        wife      => "marge",
        kid       => "bart",
    },
);

Tuesday, 20 December 2011 09:10
   

Connecting one system to multiple networks

Q. I have a Linux server that connects to the external network and internal. Both network cards have a gateway. How can I set it up, so that it can access both networks?

A. You would need to set up source routing. This can be done fairly easily, following those steps:

Open up /etc/iproute2/rt_tables, add those two at the bottom: 

Monday, 28 November 2011 15:17
   

DNS Memory consumption on Windows 2008 R2

Windows-Server-2008-R2Q. I did a fresh install of Windows 2008 R2 and my DNS memory consumption is going through the roof. If I reboot, it's ok briefly, but then it goes up again. How can I stop it?

A. There are a lot of discussions about DNS high memory utilization on Windows 2008 R2 floating around. A lot of them point to disabling EDNS, which does not decrease the memory usage. The real problem is in fact due to the ports that DNS opens up: 2500 UDP IPv4 and 2500 UDP IPv6. This is a nice and round number for a busy production DNS server, however, for an internal DNS in a small office this is way too much.

Wednesday, 16 November 2011 08:32
   

Multiple IP adresses for network device

Q. I am using Ubuntu Linux and I would like to know how to create alias for eth0 so that I can have multiple IP address?

A. To create alias for eth0 use ifconfig command. It is use to configure a network interface and aliases.

Assuming that your eth0 IP is 192.168.1.10 and you would like to create an alias eth0:0 with IP 192.168.1.11. Type the following command:

Tuesday, 08 November 2011 15:25
   

Find out if processor is 32bit or 64 (Linux)

Q. How can I find out if my processor is 64 bit or 32, under linux.

A. Open shell and type:

cat /proc/cpuinfo

You will get an output, most likely of more than one CPU. Let's just pick one and look at it:

Thursday, 03 November 2011 07:14
   

Page 7 of 19

<< Start < Prev 7 8 9 10 11 12 Next > End >>
   
Copyright © 1999 - 2018 Virtual Helpme | Managed IT Solutions Specialized for Your Business | Original Template: Allrounder